hamsci_psws.calcSun

The calcSun module

This subpackage contains methods for various solar calculations

Note

Source: http://www.esrl.noaa.gov/gmd/grad/solcalc/ Translated to Python by Sebastien de Larquier

Functions

calcAzEl(t, localtime, latitude, longitude, zone)

Calculate sun azimuth and zenith angle

calcEccentricityEarthOrbit(t)

Calculate the eccentricity of earth's orbit (unitless)

calcEquationOfTime(t)

Calculate the difference between true solar time and mean solar time (output: equation of time in minutes of time)

calcGeomMeanAnomalySun(t)

Calculate the Geometric Mean Anomaly of the Sun (in degrees)

calcGeomMeanLongSun(t)

Calculate the Geometric Mean Longitude of the Sun (in degrees)

calcHourAngleSunrise(lat, solarDec)

Calculate the hour angle of the sun at sunrise for the latitude (in radians)

calcMeanObliquityOfEcliptic(t)

Calculate the mean obliquity of the ecliptic (in degrees)

calcObliquityCorrection(t)

Calculate the corrected obliquity of the ecliptic (in degrees)

calcSolNoon(jd, longitude, timezone, dst)

Calculate time of solar noon the given day at the given location on earth (in minute)

calcSolNoonUTC(jd, longitude)

Calculate time of solar noon the given day at the given location on earth (in minute since 0 UTC)

calcSunApparentLong(t)

Calculate the apparent longitude of the sun (in degrees)

calcSunDeclination(t)

Calculate the declination of the sun (in degrees)

calcSunEqOfCenter(t)

Calculate the equation of center for the sun (in degrees)

calcSunRadVector(t)

Calculate the distance to the sun in AU (in degrees)

calcSunRiseSet(jd, latitude, longitude, ...)

Calculate sunrise/sunset the given day at the given location on earth (in minutes)

calcSunRiseSetUTC(jd, latitude, longitude)

Calculate sunrise/sunset the given day at the given location on earth (in minute since 0 UTC)

calcSunRtAscension(t)

Calculate the right ascension of the sun (in degrees)

calcSunTrueAnomaly(t)

Calculate the true anamoly of the sun (in degrees)

calcSunTrueLong(t)

Calculate the true longitude of the sun (in degrees)

calcTerminator(date, latitudes, longitudes)

Calculate terminator position and solar zenith angle for a given julian date-time within latitude/longitude limits

calcTimeJulianCent(jd)

Convert Julian Day to centuries since J2000.0.

getJD(date)

Calculate the julian date from a python datetime object.