I am a fledgling at best when it comes to programing. I am trying to acclimate myself with Python's date and time functions. Below is a program I wrote to calculate the Sun rise and set times for a given lat, long. What I am hoping to find out is if there is a way to obtain the Julian date from a given date input so I do not have to calculate the date ahead of time and input it as a parameter, and avoid having to, otherwise, add several lines just to make this happen myself? Also are there functions, as they have in excel, to convert between radians and degrees so I can avoid the lengthy lines of having to do the conversions within my code? Thanks
#parameter JD is today's current Julian Datedef SunRise(lat,lng,JD,y,m,d): import math from datetime import datetime import time from datetime import date nowMonday, August 13, 2012
Julian Date Conversion
Have a different question to ask? Start New Discussion Reply to this Discussion 12 Hours Ago 0
Labels:
Conversion,
Julian
Subscribe to:
Post Comments (Atom)



No comments:
Post a Comment