|
Practical Astronomy Algorithms in .NET/C#
|
Miscellaneous macro functions supporting the other classes. More...
Static Public Member Functions | |
| static double | HMStoDH (double hours, double minutes, double seconds) |
| Convert a Civil Time (hours,minutes,seconds) to Decimal Hours. | |
| static int | DecimalHoursHour (double decimalHours) |
| Return the hour part of a Decimal Hours. | |
| static int | DecimalHoursMinute (double decimalHours) |
| Return the minutes part of a Decimal Hours. | |
| static double | DecimalHoursSecond (double decimalHours) |
| Return the seconds part of a Decimal Hours. | |
| static double | CivilDateToJulianDate (double day, double month, double year) |
| Convert a Greenwich Date/Civil Date (day,month,year) to Julian Date. | |
| static double | JulianDateDay (double julianDate) |
| Returns the day part of a Julian Date. | |
| static int | JulianDateMonth (double julianDate) |
| Returns the month part of a Julian Date. | |
| static int | JulianDateYear (double julianDate) |
| Returns the year part of a Julian Date. | |
| static double | RightAscensionToHourAngle (double raHours, double raMinutes, double raSeconds, double lctHours, double lctMinutes, double lctSeconds, int daylightSaving, int zoneCorrection, double localDay, int localMonth, int localYear, double geographicalLongitude) |
| Convert Right Ascension to Hour Angle. | |
| static double | HourAngleToRightAscension (double hourAngleHours, double hourAngleMinutes, double hourAngleSeconds, double lctHours, double lctMinutes, double lctSeconds, int daylightSaving, int zoneCorrection, double localDay, int localMonth, int localYear, double geographicalLongitude) |
| Convert Hour Angle to Right Ascension. | |
| static double | LocalCivilTimeToUniversalTime (double lctHours, double lctMinutes, double lctSeconds, int daylightSaving, int zoneCorrection, double localDay, int localMonth, int localYear) |
| Convert Local Civil Time to Universal Time. | |
| static double | UniversalTimeToLocalCivilTime (double uHours, double uMinutes, double uSeconds, int daylightSaving, int zoneCorrection, double greenwichDay, int greenwichMonth, int greenwichYear) |
| Convert Universal Time to Local Civil Time. | |
| static double | UniversalTime_LocalCivilDay (double uHours, double uMinutes, double uSeconds, int daylightSaving, int zoneCorrection, double greenwichDay, int greenwichMonth, int greenwichYear) |
| Get Local Civil Day for Universal Time. | |
| static int | UniversalTime_LocalCivilMonth (double uHours, double uMinutes, double uSeconds, int daylightSaving, int zoneCorrection, double greenwichDay, int greenwichMonth, int greenwichYear) |
| Get Local Civil Month for Universal Time. | |
| static int | UniversalTime_LocalCivilYear (double uHours, double uMinutes, double uSeconds, int daylightSaving, int zoneCorrection, double greenwichDay, int greenwichMonth, int greenwichYear) |
| Get Local Civil Year for Universal Time. | |
| static double | LocalCivilTimeGreenwichDay (double lctHours, double lctMinutes, double lctSeconds, int daylightSaving, int zoneCorrection, double localDay, int localMonth, int localYear) |
| Determine Greenwich Day for Local Time. | |
| static int | LocalCivilTimeGreenwichMonth (double lctHours, double lctMinutes, double lctSeconds, int daylightSaving, int zoneCorrection, double localDay, int localMonth, int localYear) |
| Determine Greenwich Month for Local Time. | |
| static int | LocalCivilTimeGreenwichYear (double lctHours, double lctMinutes, double lctSeconds, int daylightSaving, int zoneCorrection, double localDay, int localMonth, int localYear) |
| Determine Greenwich Year for Local Time. | |
| static double | UniversalTimeToGreenwichSiderealTime (double uHours, double uMinutes, double uSeconds, double greenwichDay, int greenwichMonth, int greenwichYear) |
| Convert Universal Time to Greenwich Sidereal Time. | |
| static double | GreenwichSiderealTimeToLocalSiderealTime (double greenwichHours, double greenwichMinutes, double greenwichSeconds, double geographicalLongitude) |
| Convert Greenwich Sidereal Time to Local Sidereal Time. | |
| static double | EquatorialCoordinatesToAzimuth (double hourAngleHours, double hourAngleMinutes, double hourAngleSeconds, double declinationDegrees, double declinationMinutes, double declinationSeconds, double geographicalLatitude) |
| Convert Equatorial Coordinates to Azimuth (in decimal degrees) | |
| static double | EquatorialCoordinatesToAltitude (double hourAngleHours, double hourAngleMinutes, double hourAngleSeconds, double declinationDegrees, double declinationMinutes, double declinationSeconds, double geographicalLatitude) |
| Convert Equatorial Coordinates to Altitude (in decimal degrees) | |
| static double | DegreesMinutesSecondsToDecimalDegrees (double degrees, double minutes, double seconds) |
| Convert Degrees Minutes Seconds to Decimal Degrees. | |
| static double | Degrees (double w) |
| Convert W to Degrees. | |
| static double | DecimalDegreesDegrees (double decimalDegrees) |
| Return Degrees part of Decimal Degrees. | |
| static double | DecimalDegreesMinutes (double decimalDegrees) |
| Return Minutes part of Decimal Degrees. | |
| static double | DecimalDegreesSeconds (double decimalDegrees) |
| Return Seconds part of Decimal Degrees. | |
| static double | DecimalDegreesToDegreeHours (double decimalDegrees) |
| Convert Decimal Degrees to Degree-Hours. | |
| static double | DegreeHoursToDecimalDegrees (double degreeHours) |
| Convert Degree-Hours to Decimal Degrees. | |
| static double | HorizonCoordinatesToDeclination (double azimuthDegrees, double azimuthMinutes, double azimuthSeconds, double altitudeDegrees, double altitudeMinutes, double altitudeSeconds, double geographicalLatitude) |
| Convert Horizon Coordinates to Declination (in decimal degrees) | |
| static double | HorizonCoordinatesToHourAngle (double azimuthDegrees, double azimuthMinutes, double azimuthSeconds, double altitudeDegrees, double altitudeMinutes, double altitudeSeconds, double geographicalLatitude) |
| Convert Horizon Coordinates to Hour Angle (in decimal degrees) | |
| static double | Obliq (double greenwichDay, int greenwichMonth, int greenwichYear) |
| Obliquity of the Ecliptic for a Greenwich Date. | |
| static double | NutatLong (double gd, int gm, int gy) |
| Nutation amount to be added in ecliptic longitude, in degrees. | |
| static double | NutatObl (double greenwichDay, int greenwichMonth, int greenwichYear) |
| Nutation of Obliquity. | |
| static double | LocalSiderealTimeToGreenwichSiderealTime (double localHours, double localMinutes, double localSeconds, double longitude) |
| Convert Local Sidereal Time to Greenwich Sidereal Time. | |
| static double | GreenwichSiderealTimeToUniversalTime (double greenwichSiderealHours, double greenwichSiderealMinutes, double greenwichSiderealSeconds, double greenwichDay, int greenwichMonth, int greenwichYear) |
| Convert Greenwich Sidereal Time to Universal Time. | |
| static PAWarningFlag | EGstUt (double gsh, double gsm, double gss, double gd, int gm, int gy) |
| Status of conversion of Greenwich Sidereal Time to Universal Time. | |
| static double | SunLong (double lch, double lcm, double lcs, int ds, int zc, double ld, int lm, int ly) |
| Calculate Sun's ecliptic longitude. | |
| static double | TrueAnomaly (double am, double ec) |
| Solve Kepler's equation, and return value of the true anomaly in radians. | |
| static double | EccentricAnomaly (double am, double ec) |
| Solve Kepler's equation, and return value of the eccentric anomaly in radians. | |
| static double | Refract (double y2, PACoordinateType sw, double pr, double tr) |
| Calculate effects of refraction. | |
| static double | RefractL3035 (double pr, double tr, double y, double d) |
| Helper function for Refract. | |
| static double | ParallaxHA (double hh, double hm, double hs, double dd, double dm, double ds, PACoordinateType sw, double gp, double ht, double hp) |
| Calculate corrected hour angle in decimal hours. | |
| static double double q | ParallaxHAL2870 (double x, double y, double rc, double rp, double rs, double tp) |
| static double | ParallaxDec (double hh, double hm, double hs, double dd, double dm, double ds, PACoordinateType sw, double gp, double ht, double hp) |
| Calculate corrected declination in decimal degrees. | |
| static double double q | ParallaxDecL2870 (double x, double y, double rc, double rp, double rs, double tp) |
| static double | SunDia (double lch, double lcm, double lcs, int ds, int zc, double ld, int lm, int ly) |
| Calculate Sun's angular diameter in decimal degrees. | |
| static double | SunDist (double lch, double lcm, double lcs, int ds, int zc, double ld, int lm, int ly) |
| Calculate Sun's distance from the Earth in astronomical units. | |
| static double | MoonLong (double lh, double lm, double ls, int ds, int zc, double dy, int mn, int yr) |
| Calculate geocentric ecliptic longitude for the Moon. | |
| static double | MoonLat (double lh, double lm, double ls, int ds, int zc, double dy, int mn, int yr) |
| Calculate geocentric ecliptic latitude for the Moon. | |
| static double | MoonHP (double lh, double lm, double ls, int ds, int zc, double dy, int mn, int yr) |
| Calculate horizontal parallax for the Moon. | |
| static double | MoonDist (double lh, double lm, double ls, int ds, int zc, double dy, int mn, int yr) |
| Calculate distance from the Earth to the Moon (km) | |
| static double | MoonSize (double lh, double lm, double ls, int ds, int zc, double dy, int mn, int yr) |
| Calculate the Moon's angular diameter (degrees) | |
| static double | Unwind (double w) |
| Convert angle in radians to equivalent angle in degrees. | |
| static double | UnwindDeg (double w) |
| Convert angle in degrees to equivalent angle in the range 0 to 360 degrees. | |
| static double | SunELong (double gd, int gm, int gy) |
| Mean ecliptic longitude of the Sun at the epoch. | |
| static double | SunPeri (double gd, int gm, int gy) |
| Longitude of the Sun at perigee. | |
| static double | SunEcc (double gd, int gm, int gy) |
| Eccentricity of the Sun-Earth orbit. | |
| static double | EcDec (double eld, double elm, double els, double bd, double bm, double bs, double gd, int gm, int gy) |
| Ecliptic - Declination (degrees) | |
| static double | EcRA (double eld, double elm, double els, double bd, double bm, double bs, double gd, int gm, int gy) |
| Ecliptic - Right Ascension (degrees) | |
| static double | SunTrueAnomaly (double lch, double lcm, double lcs, int ds, int zc, double ld, int lm, int ly) |
| Calculate Sun's true anomaly, i.e., how much its orbit deviates from a true circle to an ellipse. | |
| static double | SunMeanAnomaly (double lch, double lcm, double lcs, int ds, int zc, double ld, int lm, int ly) |
| Calculate the Sun's mean anomaly. | |
| static double | SunriseLCT (double ld, int lm, int ly, int ds, int zc, double gl, double gp) |
| Calculate local civil time of sunrise. | |
| static double double double double string s | SunriseLCTL3710 (double gd, int gm, int gy, double sr, double di, double gp) |
| static double | SunsetLCT (double ld, int lm, int ly, int ds, int zc, double gl, double gp) |
| static double double double double string s | SunsetLCTL3710 (double gd, int gm, int gy, double sr, double di, double gp) |
| static double | RiseSetLocalSiderealTimeRise (double rah, double ram, double ras, double dd, double dm, double ds, double vd, double g) |
| Local sidereal time of rise, in hours. | |
| static double | RiseSetLocalSiderealTimeSet (double rah, double ram, double ras, double dd, double dm, double ds, double vd, double g) |
| Local sidereal time of setting, in hours. | |
| static double | RiseSetAzimuthRise (double rah, double ram, double ras, double dd, double dm, double ds, double vd, double g) |
| Azimuth of rising, in degrees. | |
| static double | RiseSetAzimuthSet (double rah, double ram, double ras, double dd, double dm, double ds, double vd, double g) |
| Azimuth of setting, in degrees. | |
| static string | ERS (double rah, double ram, double ras, double dd, double dm, double ds, double vd, double g) |
| Rise/Set status. | |
| static string | ESunRS (double ld, int lm, int ly, int ds, int zc, double gl, double gp) |
| static double double double double string s | ESunRS_L3710 (double gd, int gm, int gy, double sr, double di, double gp) |
| static double | SunriseAZ (double ld, int lm, int ly, int ds, int zc, double gl, double gp) |
| static double double double double string s | SunriseAZ_L3710 (double gd, int gm, int gy, double sr, double di, double gp) |
| static double | SunsetAZ (double ld, int lm, int ly, int ds, int zc, double gl, double gp) |
| Calculate azimuth of sunset. | |
| static double double double double string s | SunsetAZ_L3710 (double gd, int gm, int gy, double sr, double di, double gp) |
| static double | TwilightAMLCT (double ld, int lm, int ly, int ds, int zc, double gl, double gp, PATwilightType tt) |
| Calculate morning twilight start, in local time. | |
| static double double double double string s | TwilightAMLCT_L3710 (double gd, int gm, int gy, double sr, double di, double gp) |
| static double | TwilightPMLCT (double ld, int lm, int ly, int ds, int zc, double gl, double gp, PATwilightType tt) |
| Calculate evening twilight end, in local time. | |
| static double double double double string s | TwilightPMLCT_L3710 (double gd, int gm, int gy, double sr, double di, double gp) |
| static string | ETwilight (double ld, int lm, int ly, int ds, int zc, double gl, double gp, PATwilightType tt) |
| static double double double double string s | ETwilight_L3710 (double gd, int gm, int gy, double sr, double di, double gp) |
| static double | Angle (double xx1, double xm1, double xs1, double dd1, double dm1, double ds1, double xx2, double xm2, double xs2, double dd2, double dm2, double ds2, PAAngleMeasure s) |
| Calculate the angle between two celestial objects. | |
| static double double double double double double double planetRVect | PlanetCoordinates (double lh, double lm, double ls, int ds, int zc, double dy, int mn, int yr, string s) |
| static double double qb | PlanetLong_L4685 (List< PlanetDataPrecise > pl) |
| static double double double double qe | PlanetLong_L4735 (List< PlanetDataPrecise > pl, double ms, double t) |
| static double double double double double double double qb | PlanetLong_L4810 (List< PlanetDataPrecise > pl, double ms) |
| static double double double double double double double qg | PlanetLong_L4945 (double t, PlanetDataPrecise planet) |
| static double | SolveCubic (double w) |
| For W, in radians, return S, also in radians. | |
| static double double double cometDistAU | PCometLongLatDist (double lh, double lm, double ls, int ds, int zc, double dy, int mn, int yr, double td, int tm, int ty, double q, double i, double p, double n) |
| static double double double moonHorPara | MoonLongLatHP (double lh, double lm, double ls, int ds, int zc, double dy, int mn, int yr) |
| static double | MoonPhase (double lh, double lm, double ls, int ds, int zc, double dy, int mn, int yr) |
| Calculate current phase of Moon. | |
| static double | MoonMeanAnomaly (double lh, double lm, double ls, int ds, int zc, double dy, int mn, int yr) |
| Calculate the Moon's mean anomaly. | |
| static double | NewMoon (int ds, int zc, double dy, int mn, int yr) |
| Calculate Julian date of New Moon. | |
| static double | FullMoon (int ds, int zc, double dy, int mn, int yr) |
| Calculate Julian date of Full Moon. | |
| static double double double f | NewMoonFullMoon_L6855 (double k, double t) |
| static double | Fract (double w) |
| Original macro name: FRACT. | |
| static double | Lint (double w) |
| Original macro name: LINT. | |
| static double | IInt (double w) |
| Original macro name: IINT. | |
| static double | Sign (double numberToCheck) |
| Calculate sign of number. | |
| static double | UTDayAdjust (double ut, double g1) |
| Original macro name: UTDayAdjust. | |
| static double | FPart (double w) |
| Original macro name: Fpart. | |
| static double | EQELat (double rah, double ram, double ras, double dd, double dm, double ds, double gd, int gm, int gy) |
| Original macro name: EQElat. | |
| static double | EQELong (double rah, double ram, double ras, double dd, double dm, double ds, double gd, int gm, int gy) |
| Original macro name: EQElong. | |
| static double | MoonRiseLCT (double dy, int mn, int yr, int ds, int zc, double gLong, double gLat) |
| Local time of moonrise. | |
| static double double double int int double int int gyr | MoonRiseLCT_L6680 (double x, int ds, int zc, double gdy, int gmn, int gyr, double g1, double ut) |
| static double double double double double double double double double double lct | MoonRiseLCT_L6700 (double lct, int ds, int zc, double dy1, int mn1, int yr1, double gdy, int gmn, int gyr, double gLat) |
| static double int int yr1 | MoonRiseLcDMY (double dy, int mn, int yr, int ds, int zc, double gLong, double gLat) |
| static double double double int int double int int gyr | MoonRiseLcDMY_L6680 (double x, int ds, int zc, double gdy, int gmn, int gyr, double g1, double ut) |
| static double double double double double double double double double double lct | MoonRiseLcDMY_L6700 (double lct, int ds, int zc, double dy1, int mn1, int yr1, double gdy, int gmn, int gyr, double gLat) |
| static double | MoonRiseAz (double dy, int mn, int yr, int ds, int zc, double gLong, double gLat) |
| Local azimuth of moonrise. | |
| static double double double int int double int int gyr | MoonRiseAz_L6680 (double x, int ds, int zc, double gdy, int gmn, int gyr, double g1, double ut) |
| static double double double double double double double double double double double au | MoonRiseAz_L6700 (double lct, int ds, int zc, double dy1, int mn1, int yr1, double gdy, int gmn, int gyr, double gLat) |
| static double | MoonSetLCT (double dy, int mn, int yr, int ds, int zc, double gLong, double gLat) |
| Local time of moonset. | |
| static double double double int int double int int gyr | MoonSetLCT_L6680 (double x, int ds, int zc, double gdy, int gmn, int gyr, double g1, double ut) |
| static double double double double double double double double double double lct | MoonSetLCT_L6700 (double lct, int ds, int zc, double dy1, int mn1, int yr1, double gdy, int gmn, int gyr, double gLat) |
| static double int int yr1 | MoonSetLcDMY (double dy, int mn, int yr, int ds, int zc, double gLong, double gLat) |
| static double double double int int double int int gyr | MoonSetLcDMY_L6680 (double x, int ds, int zc, double gdy, int gmn, int gyr, double g1, double ut) |
| static double double double double double double double double double double lct | MoonSetLcDMY_L6700 (double lct, int ds, int zc, double dy1, int mn1, int yr1, double gdy, int gmn, int gyr, double gLat) |
| static double | MoonSetAz (double dy, int mn, int yr, int ds, int zc, double gLong, double gLat) |
| Local azimuth of moonset. | |
| static double double double int int double int int gyr | MoonSetAz_L6680 (double x, int ds, int zc, double gdy, int gmn, int gyr, double g1, double ut) |
| static double double double double double double double double double double double au | MoonSetAz_L6700 (double lct, int ds, int zc, double dy1, int mn1, int yr1, double gdy, int gmn, int gyr, double gLat) |
| static string | LunarEclipseOccurrence (int ds, int zc, double dy, int mn, int yr) |
| Determine if a lunar eclipse is likely to occur. | |
| static double double double double double double b | LunarEclipseOccurrence_L6855 (double t, double k) |
| static double | UTMaxLunarEclipse (double dy, int mn, int yr, int ds, int zc) |
| Calculate time of maximum shadow for lunar eclipse (UT) | |
| static double | UTFirstContactLunarEclipse (double dy, int mn, int yr, int ds, int zc) |
| Calculate time of first shadow contact for lunar eclipse (UT) | |
| static double | UTLastContactLunarEclipse (double dy, int mn, int yr, int ds, int zc) |
| Calculate time of last shadow contact for lunar eclipse (UT) | |
| static double | UTStartUmbraLunarEclipse (double dy, int mn, int yr, int ds, int zc) |
| Calculate start time of umbra phase of lunar eclipse (UT) | |
| static double | UTEndUmbraLunarEclipse (double dy, int mn, int yr, int ds, int zc) |
| Calculate end time of umbra phase of lunar eclipse (UT) | |
| static double | UTStartTotalLunarEclipse (double dy, int mn, int yr, int ds, int zc) |
| Calculate start time of total phase of lunar eclipse (UT) | |
| static double | UTEndTotalLunarEclipse (double dy, int mn, int yr, int ds, int zc) |
| Calculate end time of total phase of lunar eclipse (UT) | |
| static double | MagLunarEclipse (double dy, int mn, int yr, int ds, int zc) |
| Calculate magnitude of lunar eclipse. | |
| static string | SolarEclipseOccurrence (int ds, int zc, double dy, int mn, int yr) |
| Determine if a solar eclipse is likely to occur. | |
| static double double double double double double b | SolarEclipseOccurrence_L6855 (double t, double k) |
| static double | UTMaxSolarEclipse (double dy, int mn, int yr, int ds, int zc, double glong, double glat) |
| Calculate time of maximum shadow for solar eclipse (UT) | |
| static double double double double double double double double q | UTMaxSolarEclipse_L7390 (double x, double y, double igday, int gmonth, int gyear, double tm, double glong, double glat, double hp) |
| static double | UTFirstContactSolarEclipse (double dy, int mn, int yr, int ds, int zc, double glong, double glat) |
| Calculate time of first contact for solar eclipse (UT) | |
| static double double double double double double double double q | UTFirstContactSolarEclipse_L7390 (double x, double y, double igday, int gmonth, int gyear, double tm, double glong, double glat, double hp) |
| static double | UTLastContactSolarEclipse (double dy, int mn, int yr, int ds, int zc, double glong, double glat) |
| Calculate time of last contact for solar eclipse (UT) | |
| static double double double double double double double double q | UTLastContactSolarEclipse_L7390 (double x, double y, double igday, int gmonth, int gyear, double tm, double glong, double glat, double hp) |
| static double | MagSolarEclipse (double dy, int mn, int yr, int ds, int zc, double glong, double glat) |
| Calculate magnitude of solar eclipse. | |
| static double double double double double double double double q | MagSolarEclipse_L7390 (double x, double y, double igday, int gmonth, int gyear, double tm, double glong, double glat, double hp) |
Static Public Attributes | |
| static double | p |
| Helper function for parallax_ha. | |
| static double | a |
| Helper function for sunrise_lct() | |
| static double double | x |
| static double double double | y |
| static double double double double | la |
| static double | planetLongitude |
| Calculate several planetary properties. | |
| static double double | planetLatitude |
| static double double double | planetDistanceAU |
| static double double double double | planetHLong1 |
| static double double double double double | planetHLong2 |
| static double double double double double double | planetHLat |
| static double | qa |
| Helper function for planet_long_lat() | |
| static double double | qb |
| static double double double | qc |
| static double double | sa |
| static double double double | ca |
| static double double double double | qc |
| static double double double double double | qe |
| static double double double double double double | qa |
| static double double double double | qd |
| static double double double double double double | qf |
| static double | cometLongDeg |
| Calculate longitude, latitude, and distance of parabolic-orbit comet. | |
| static double double | cometLatDeg |
| static double | moonLongDeg |
| Calculate longitude, latitude, and horizontal parallax of the Moon. | |
| static double double | moonLatDeg |
| static double double | b |
| static double | ut |
| Helper function for MoonRiseLCT. | |
| static double double | lct |
| static double double double | dy1 |
| Local date of moonset. | |
| static double double double int | mn1 |
| static double double double int int | yr1 |
| static double double double int int double | gdy |
| static double double double int int double int | gmn |
| static double | mm |
| Helper function for MoonRiseLCT. | |
| static double double | bm |
| static double double double | pm |
| static double double double double | dp |
| static double double double double double | th |
| static double double double double double double | di |
| static double double double double double double double | p |
| static double double double double double double double double | q |
| static double double double double double double double double double | lu |
| static double | dy1 |
| Local date of moonrise. | |
| static double int | mn1 |
| static double double double double double double double double double double | lct |
| static double | f |
| Helper function for lunar_eclipse_occurrence. | |
| static double double | dd |
| static double double double | e1 |
| static double double double double | b1 |
| static double double double double double | a |
| static double | paa |
| Helper function for ut_max_solar_eclipse. | |
| static double double | qaa |
| static double double double | xaa |
| static double double double double | pbb |
| static double double double double double | qbb |
| static double double double double double double | xbb |
Miscellaneous macro functions supporting the other classes.
Definition at line 12 of file PAMacros.cs.
|
static |
Calculate the angle between two celestial objects.
Original macro name: Angle
Definition at line 2213 of file PAMacros.cs.
|
static |
Convert a Greenwich Date/Civil Date (day,month,year) to Julian Date.
Original macro name: CDJD
Definition at line 87 of file PAMacros.cs.
|
static |
Return Degrees part of Decimal Degrees.
Original macro name: DDDeg
Definition at line 474 of file PAMacros.cs.
|
static |
Return Minutes part of Decimal Degrees.
Original macro name: DDMin
Definition at line 490 of file PAMacros.cs.
|
static |
Return Seconds part of Decimal Degrees.
Original macro name: DDSec
Definition at line 506 of file PAMacros.cs.
|
static |
Convert Decimal Degrees to Degree-Hours.
Original macro name: DDDH
Definition at line 522 of file PAMacros.cs.
|
static |
Return the hour part of a Decimal Hours.
Original macro name: DHHour
Definition at line 39 of file PAMacros.cs.
|
static |
Return the minutes part of a Decimal Hours.
Original macro name: DHMin
Definition at line 55 of file PAMacros.cs.
|
static |
Return the seconds part of a Decimal Hours.
Original macro name: DHSec
Definition at line 71 of file PAMacros.cs.
|
static |
Convert Degree-Hours to Decimal Degrees.
Original macro name: DHDD
Definition at line 533 of file PAMacros.cs.
|
static |
|
static |
Convert Degrees Minutes Seconds to Decimal Degrees.
Original macro name: DMSDD
Definition at line 448 of file PAMacros.cs.
|
static |
Solve Kepler's equation, and return value of the eccentric anomaly in radians.
Original macro name: EccentricAnomaly
Definition at line 850 of file PAMacros.cs.
|
static |
Ecliptic - Declination (degrees)
Original macro name: ECDec
Definition at line 1551 of file PAMacros.cs.
|
static |
Ecliptic - Right Ascension (degrees)
Original macro name: ECRA
Definition at line 1567 of file PAMacros.cs.
|
static |
Status of conversion of Greenwich Sidereal Time to Universal Time.
Original macro name: eGSTUT
Definition at line 740 of file PAMacros.cs.
|
static |
Original macro name: EQElat.
Definition at line 3697 of file PAMacros.cs.
|
static |
Original macro name: EQElong.
Definition at line 3710 of file PAMacros.cs.
|
static |
Convert Equatorial Coordinates to Altitude (in decimal degrees)
Original macro name: EQAlt
Definition at line 429 of file PAMacros.cs.
|
static |
Convert Equatorial Coordinates to Azimuth (in decimal degrees)
Original macro name: EQAz
Definition at line 407 of file PAMacros.cs.
|
static |
Rise/Set status.
Possible values: "OK", "** never rises", "** circumpolar"
Original macro name: eRS
Definition at line 1841 of file PAMacros.cs.
|
static |
Sunrise/Sunset calculation status.
Original macro name: eSunRS
Definition at line 1862 of file PAMacros.cs.
|
static |
Definition at line 1905 of file PAMacros.cs.
|
static |
Twilight calculation status.
Twilight type can be one of "C" (civil), "N" (nautical), or "A" (astronomical)
Original macro name: eTwilight
One of: "OK", "** lasts all night", or "** Sun too far below horizon"
Definition at line 2139 of file PAMacros.cs.
|
static |
Definition at line 2181 of file PAMacros.cs.
|
static |
Original macro name: Fpart.
Definition at line 3689 of file PAMacros.cs.
|
static |
Original macro name: FRACT.
Definition at line 3631 of file PAMacros.cs.
|
static |
Calculate Julian date of Full Moon.
Original macro name: FullMoon
| ds | Daylight Savings offset. |
| zc | Time zone correction, in hours. |
| dy | Local date, day part. |
| mn | Local date, month part. |
| yr | Local date, year part. |
Definition at line 3567 of file PAMacros.cs.
|
static |
Convert Greenwich Sidereal Time to Local Sidereal Time.
Original macro name: GSTLST
Definition at line 392 of file PAMacros.cs.
|
static |
Convert Greenwich Sidereal Time to Universal Time.
Original macro name: GSTUT
Definition at line 720 of file PAMacros.cs.
|
static |
Convert a Civil Time (hours,minutes,seconds) to Decimal Hours.
Original macro name: HMSDH
Definition at line 20 of file PAMacros.cs.
|
static |
Convert Horizon Coordinates to Declination (in decimal degrees)
Original macro name: HORDec
Definition at line 544 of file PAMacros.cs.
|
static |
Convert Horizon Coordinates to Hour Angle (in decimal degrees)
Original macro name: HORHa
Definition at line 562 of file PAMacros.cs.
|
static |
Convert Hour Angle to Right Ascension.
Original macro name: HARA
Definition at line 217 of file PAMacros.cs.
|
static |
Original macro name: IINT.
Definition at line 3647 of file PAMacros.cs.
|
static |
Returns the day part of a Julian Date.
Original macro name: JDCDay
Definition at line 134 of file PAMacros.cs.
|
static |
Returns the month part of a Julian Date.
Original macro name: JDCMonth
Definition at line 154 of file PAMacros.cs.
|
static |
Returns the year part of a Julian Date.
Original macro name: JDCYear
Definition at line 175 of file PAMacros.cs.
|
static |
Original macro name: LINT.
Definition at line 3639 of file PAMacros.cs.
|
static |
Determine Greenwich Day for Local Time.
Original macro name: LctGDay
Definition at line 323 of file PAMacros.cs.
|
static |
Determine Greenwich Month for Local Time.
Original macro name: LctGMonth
Definition at line 340 of file PAMacros.cs.
|
static |
Determine Greenwich Year for Local Time.
Original macro name: LctGYear
Definition at line 356 of file PAMacros.cs.
|
static |
Convert Local Civil Time to Universal Time.
Original macro name: LctUT
Definition at line 237 of file PAMacros.cs.
|
static |
Convert Local Sidereal Time to Greenwich Sidereal Time.
Original macro name: LSTGST
Definition at line 705 of file PAMacros.cs.
|
static |
Determine if a lunar eclipse is likely to occur.
Original macro name: LEOccurrence
Definition at line 4415 of file PAMacros.cs.
|
static |
Definition at line 4454 of file PAMacros.cs.
|
static |
Calculate magnitude of lunar eclipse.
Original macro name: MagLunarEclipse
Definition at line 5109 of file PAMacros.cs.
|
static |
Calculate magnitude of solar eclipse.
Original macro name: MagSolarEclipse
Definition at line 5632 of file PAMacros.cs.
|
static |
Definition at line 5728 of file PAMacros.cs.
|
static |
Calculate distance from the Earth to the Moon (km)
Original macro name: MoonDist
Definition at line 1456 of file PAMacros.cs.
|
static |
Calculate horizontal parallax for the Moon.
Original macro name: MoonHP
Definition at line 1376 of file PAMacros.cs.
|
static |
Calculate geocentric ecliptic latitude for the Moon.
Original macro name: MoonLat
Definition at line 1283 of file PAMacros.cs.
|
static |
Calculate geocentric ecliptic longitude for the Moon.
Original macro name: MoonLong
Definition at line 1189 of file PAMacros.cs.
|
static |
Definition at line 3310 of file PAMacros.cs.
|
static |
Calculate the Moon's mean anomaly.
Original macro name: MoonMeanAnomaly
Definition at line 3479 of file PAMacros.cs.
|
static |
Calculate current phase of Moon.
Original macro name: MoonPhase
Definition at line 3458 of file PAMacros.cs.
|
static |
Local azimuth of moonrise.
Original macro name: MoonRiseAz
Definition at line 3964 of file PAMacros.cs.
|
static |
Definition at line 4028 of file PAMacros.cs.
|
static |
Definition at line 4050 of file PAMacros.cs.
|
static |
Definition at line 3849 of file PAMacros.cs.
|
static |
Definition at line 3920 of file PAMacros.cs.
|
static |
Definition at line 3942 of file PAMacros.cs.
|
static |
Local time of moonrise.
Original macro name: MoonRiseLCT
Definition at line 3729 of file PAMacros.cs.
|
static |
Definition at line 3798 of file PAMacros.cs.
|
static |
Definition at line 3820 of file PAMacros.cs.
|
static |
Local azimuth of moonset.
Original macro name: MoonSetAz
Definition at line 4306 of file PAMacros.cs.
|
static |
Definition at line 4371 of file PAMacros.cs.
|
static |
Definition at line 4393 of file PAMacros.cs.
|
static |
Definition at line 4192 of file PAMacros.cs.
|
static |
Definition at line 4262 of file PAMacros.cs.
|
static |
Definition at line 4284 of file PAMacros.cs.
|
static |
Local time of moonset.
Original macro name: MoonSetLCT
Definition at line 4073 of file PAMacros.cs.
|
static |
Definition at line 4141 of file PAMacros.cs.
|
static |
Definition at line 4163 of file PAMacros.cs.
|
static |
Calculate the Moon's angular diameter (degrees)
Original macro name: MoonSize
Definition at line 1470 of file PAMacros.cs.
|
static |
Calculate Julian date of New Moon.
Original macro name: NewMoon
| ds | Daylight Savings offset. |
| zc | Time zone correction, in hours. |
| dy | Local date, day part. |
| mn | Local date, month part. |
| yr | Local date, year part. |
Definition at line 3534 of file PAMacros.cs.
|
static |
Definition at line 3592 of file PAMacros.cs.
|
static |
Nutation amount to be added in ecliptic longitude, in degrees.
Original macro name: NutatLong
Definition at line 600 of file PAMacros.cs.
|
static |
|
static |
Obliquity of the Ecliptic for a Greenwich Date.
Original macro name: Obliq
Definition at line 583 of file PAMacros.cs.
|
static |
Calculate corrected declination in decimal degrees.
Original macro name: ParallaxDec
HH,HM,HS,DD,DM,DS,SW,GP,HT,HP
Definition at line 1040 of file PAMacros.cs.
|
static |
Definition at line 1104 of file PAMacros.cs.
|
static |
Calculate corrected hour angle in decimal hours.
Original macro name: ParallaxHA
Definition at line 947 of file PAMacros.cs.
|
static |
Definition at line 1011 of file PAMacros.cs.
|
static |
Definition at line 3233 of file PAMacros.cs.
|
static |
Definition at line 2253 of file PAMacros.cs.
|
static |
Definition at line 2839 of file PAMacros.cs.
|
static |
Definition at line 2857 of file PAMacros.cs.
|
static |
Definition at line 2883 of file PAMacros.cs.
|
static |
Definition at line 2922 of file PAMacros.cs.
|
static |
Calculate effects of refraction.
Original macro name: Refract
Definition at line 878 of file PAMacros.cs.
|
static |
Helper function for Refract.
Definition at line 924 of file PAMacros.cs.
|
static |
Convert Right Ascension to Hour Angle.
Original macro name: RAHA
Definition at line 197 of file PAMacros.cs.
|
static |
Azimuth of rising, in degrees.
Original macro name: RSAZR
Definition at line 1802 of file PAMacros.cs.
|
static |
Azimuth of setting, in degrees.
Original macro name: RSAZS
Definition at line 1821 of file PAMacros.cs.
|
static |
Local sidereal time of rise, in hours.
Original macro name: RSLSTR
Definition at line 1762 of file PAMacros.cs.
|
static |
Local sidereal time of setting, in hours.
Original macro name: RSLSTS
Definition at line 1782 of file PAMacros.cs.
|
static |
Calculate sign of number.
| numberToCheck | Number to calculate the sign of. |
Definition at line 3657 of file PAMacros.cs.
|
static |
Determine if a solar eclipse is likely to occur.
Original macro name: SEOccurrence
Definition at line 5204 of file PAMacros.cs.
|
static |
Definition at line 5242 of file PAMacros.cs.
|
static |
For W, in radians, return S, also in radians.
Original macro name: SolveCubic
Definition at line 3189 of file PAMacros.cs.
|
static |
Calculate Sun's angular diameter in decimal degrees.
Original macro name: SunDia
Definition at line 1127 of file PAMacros.cs.
|
static |
Calculate Sun's distance from the Earth in astronomical units.
Original macro name: SunDist
Definition at line 1140 of file PAMacros.cs.
|
static |
Eccentricity of the Sun-Earth orbit.
Original macro name: SunEcc
Definition at line 1537 of file PAMacros.cs.
|
static |
Mean ecliptic longitude of the Sun at the epoch.
Original macro name: SunElong
Definition at line 1507 of file PAMacros.cs.
|
static |
Calculate Sun's ecliptic longitude.
Original macro name: SunLong
Definition at line 760 of file PAMacros.cs.
|
static |
Calculate the Sun's mean anomaly.
Original macro name: SunMeanAnomaly
Definition at line 1613 of file PAMacros.cs.
|
static |
Longitude of the Sun at perigee.
Original macro name: SunPeri
Definition at line 1522 of file PAMacros.cs.
|
static |
Calculate azimuth of sunrise.
Original macro name: SunriseAz
Definition at line 1919 of file PAMacros.cs.
|
static |
Definition at line 1956 of file PAMacros.cs.
|
static |
Calculate local civil time of sunrise.
Original macro name: SunriseLCT
Definition at line 1636 of file PAMacros.cs.
|
static |
Definition at line 1684 of file PAMacros.cs.
|
static |
Calculate azimuth of sunset.
Original macro name: SunsetAz
Definition at line 1973 of file PAMacros.cs.
|
static |
Definition at line 2010 of file PAMacros.cs.
|
static |
Calculate local civil time of sunset.
Original macro name: SunsetLCT
Definition at line 1698 of file PAMacros.cs.
|
static |
Definition at line 1745 of file PAMacros.cs.
|
static |
Calculate Sun's true anomaly, i.e., how much its orbit deviates from a true circle to an ellipse.
Original macro name: SunTrueAnomaly
Definition at line 1585 of file PAMacros.cs.
|
static |
Solve Kepler's equation, and return value of the true anomaly in radians.
Original macro name: TrueAnomaly
Definition at line 822 of file PAMacros.cs.
|
static |
Calculate morning twilight start, in local time.
Twilight type (TT) can be one of "C" (civil), "N" (nautical), or "A" (astronomical)
Original macro name: TwilightAMLCT
Definition at line 2028 of file PAMacros.cs.
|
static |
Definition at line 2066 of file PAMacros.cs.
|
static |
Calculate evening twilight end, in local time.
Twilight type can be one of "C" (civil), "N" (nautical), or "A" (astronomical)
Original macro name: TwilightPMLCT
Definition at line 2084 of file PAMacros.cs.
|
static |
Definition at line 2120 of file PAMacros.cs.
|
static |
Get Local Civil Day for Universal Time.
Original macro name: UTLcDay
Definition at line 273 of file PAMacros.cs.
|
static |
Get Local Civil Month for Universal Time.
Original macro name: UTLcMonth
Definition at line 291 of file PAMacros.cs.
|
static |
Get Local Civil Year for Universal Time.
Original macro name: UTLcYear
Definition at line 307 of file PAMacros.cs.
|
static |
Convert Universal Time to Greenwich Sidereal Time.
Original macro name: UTGST
Definition at line 372 of file PAMacros.cs.
|
static |
Convert Universal Time to Local Civil Time.
Original macro name: UTLct
Definition at line 255 of file PAMacros.cs.
|
static |
Convert angle in radians to equivalent angle in degrees.
Original macro name: Unwind
Definition at line 1485 of file PAMacros.cs.
|
static |
Convert angle in degrees to equivalent angle in the range 0 to 360 degrees.
Original macro name: UnwindDeg
Definition at line 1496 of file PAMacros.cs.
|
static |
Original macro name: UTDayAdjust.
Definition at line 3673 of file PAMacros.cs.
|
static |
Calculate end time of total phase of lunar eclipse (UT)
Original macro name: UTEndTotalLunarEclipse
Definition at line 5010 of file PAMacros.cs.
|
static |
Calculate end time of umbra phase of lunar eclipse (UT)
Original macro name: UTEndUmbraLunarEclipse
Definition at line 4819 of file PAMacros.cs.
|
static |
Calculate time of first shadow contact for lunar eclipse (UT)
Original macro name: UTFirstContactLunarEclipse
Definition at line 4570 of file PAMacros.cs.
|
static |
Calculate time of first contact for solar eclipse (UT)
Original macro name: UTFirstContactSolarEclipse
Definition at line 5399 of file PAMacros.cs.
|
static |
Definition at line 5497 of file PAMacros.cs.
|
static |
Calculate time of last shadow contact for lunar eclipse (UT)
Original macro name: UTLastContactLunarEclipse
Definition at line 4650 of file PAMacros.cs.
|
static |
Calculate time of last contact for solar eclipse (UT)
Original macro name: UTLastContactSolarEclipse
Definition at line 5517 of file PAMacros.cs.
|
static |
Definition at line 5612 of file PAMacros.cs.
|
static |
Calculate time of maximum shadow for lunar eclipse (UT)
Original macro name: UTMaxLunarEclipse
Definition at line 4496 of file PAMacros.cs.
|
static |
Calculate time of maximum shadow for solar eclipse (UT)
Original macro name: UTMaxSolarEclipse
Definition at line 5284 of file PAMacros.cs.
|
static |
Definition at line 5379 of file PAMacros.cs.
|
static |
Calculate start time of total phase of lunar eclipse (UT)
Original macro name: UTStartTotalLunarEclipse
Definition at line 4908 of file PAMacros.cs.
|
static |
Calculate start time of umbra phase of lunar eclipse (UT)
Original macro name: UTStartUmbraLunarEclipse
Definition at line 4727 of file PAMacros.cs.
|
static |
Helper function for sunrise_lct()
Helper function for new_moon() and full_moon() """.
Helper function for planet_long_lat()
Helper function for e_twilight()
Helper function for twilight_pm_lct()
Helper function for twilight_am_lct()
Helper function for sunset_az()
Helper function for sunrise_az()
Helper function for e_sun_rs()
Helper function for sunset_lct().
Definition at line 1684 of file PAMacros.cs.
|
static |
Definition at line 4454 of file PAMacros.cs.
|
static |
Definition at line 3592 of file PAMacros.cs.
|
static |
Definition at line 4454 of file PAMacros.cs.
|
static |
Definition at line 3820 of file PAMacros.cs.
|
static |
Definition at line 2883 of file PAMacros.cs.
|
static |
Definition at line 3233 of file PAMacros.cs.
|
static |
Calculate longitude, latitude, and distance of parabolic-orbit comet.
Original macro names: PcometLong, PcometLat, PcometDist
| lh | Local civil time, hour part. |
| lm | Local civil time, minutes part. |
| ls | Local civil time, seconds part. |
| ds | Daylight Savings offset. |
| zc | Time zone correction, in hours. |
| dy | Local date, day part. |
| mn | Local date, month part. |
| yr | Local date, year part. |
| td | Perihelion epoch (day) |
| tm | Perihelion epoch (month) |
| ty | Perihelion epoch (year) |
| q | a (AU) |
| i | Inclination (degrees) |
| p | Perihelion (degrees) |
| n | Node (degrees) |
cometLatDeg – Comet lat (degrees)
cometDistAU – Comet distance from Earth (AU)
Definition at line 3233 of file PAMacros.cs.
|
static |
Definition at line 4454 of file PAMacros.cs.
|
static |
Definition at line 3820 of file PAMacros.cs.
|
static |
Definition at line 3820 of file PAMacros.cs.
|
static |
Local date of moonset.
Original macro names: MoonSetLcDay, MoonSetLcMonth, MoonSetLcYear
Local date (month)
Local date (year)
Definition at line 3798 of file PAMacros.cs.
|
static |
Local date of moonrise.
Local date of moonset.
Original macro names: MoonRiseLcDay, MoonRiseLcMonth, MoonRiseLcYear
Local date (month)
Local date (year)
Original macro names: MoonSetLcDay, MoonSetLcMonth, MoonSetLcYear
Local date (month)
Local date (year)
Definition at line 3849 of file PAMacros.cs.
|
static |
Definition at line 4454 of file PAMacros.cs.
|
static |
Helper function for lunar_eclipse_occurrence.
Helper function for SolarEclipseOccurrence.
Definition at line 4454 of file PAMacros.cs.
|
static |
Definition at line 3798 of file PAMacros.cs.
|
static |
Definition at line 3798 of file PAMacros.cs.
|
static |
Definition at line 1684 of file PAMacros.cs.
|
static |
Definition at line 3798 of file PAMacros.cs.
|
static |
Definition at line 4050 of file PAMacros.cs.
|
static |
Definition at line 3820 of file PAMacros.cs.
|
static |
Helper function for MoonRiseLCT.
Helper function for moon_set_az.
Helper function for MoonSetLcDMY.
Helper function for MoonSetLCT.
Helper function for MoonRiseAz.
Helper function for MoonRiseLcDMY.
Definition at line 3820 of file PAMacros.cs.
|
static |
Definition at line 3798 of file PAMacros.cs.
|
static |
Definition at line 3849 of file PAMacros.cs.
|
static |
Definition at line 3310 of file PAMacros.cs.
|
static |
Calculate longitude, latitude, and horizontal parallax of the Moon.
Original macro names: MoonLong, MoonLat, MoonHP
| lh | Local civil time, hour part. |
| lm | Local civil time, minutes part. |
| ls | Local civil time, seconds part. |
| ds | Daylight Savings offset. |
| zc | Time zone correction, in hours. |
| dy | Local date, day part. |
| mn | Local date, month part. |
| yr | Local date, year part. |
moonLatDeg – Moon latitude (degrees)
moonHorPara – Moon horizontal parallax (degrees)
Definition at line 3310 of file PAMacros.cs.
|
static |
Helper function for parallax_ha.
Helper function for parallax_dec.
Definition at line 1011 of file PAMacros.cs.
|
static |
Definition at line 3820 of file PAMacros.cs.
|
static |
Helper function for ut_max_solar_eclipse.
Helper function for mag_solar_eclipse.
Helper function for ut_last_contact_solar_eclipse.
Helper function for UTFirstContactSolarEclipse.
Definition at line 5379 of file PAMacros.cs.
|
static |
Definition at line 5379 of file PAMacros.cs.
|
static |
Definition at line 2253 of file PAMacros.cs.
|
static |
Definition at line 2253 of file PAMacros.cs.
|
static |
Definition at line 2253 of file PAMacros.cs.
|
static |
Definition at line 2253 of file PAMacros.cs.
|
static |
Definition at line 2253 of file PAMacros.cs.
|
static |
Calculate several planetary properties.
Original macro names: PlanetLong, PlanetLat, PlanetDist, PlanetHLong1, PlanetHLong2, PlanetHLat, PlanetRVect
| lh | Local civil time, hour part. |
| lm | Local civil time, minutes part. |
| ls | Local civil time, seconds part. |
| ds | Daylight Savings offset. |
| zc | Time zone correction, in hours. |
| dy | Local date, day part. |
| mn | Local date, month part. |
| yr | Local date, year part. |
| s | Planet name. |
planetLatitude – Ecliptic latitude, in degrees.
planetDistanceAU – Earth-planet distance, in AU.
planetHLong1 – Heliocentric orbital longitude, in degrees.
planetHLong2 – NOT USED
planetHLat – NOT USED
planetRVect – Sun-planet distance (length of radius vector), in AU.
Definition at line 2253 of file PAMacros.cs.
|
static |
Definition at line 3820 of file PAMacros.cs.
|
static |
Definition at line 3820 of file PAMacros.cs.
|
static |
Helper function for planet_long_lat()
Definition at line 2839 of file PAMacros.cs.
|
static |
Definition at line 2883 of file PAMacros.cs.
|
static |
Definition at line 5379 of file PAMacros.cs.
|
static |
Definition at line 2857 of file PAMacros.cs.
|
static |
Definition at line 5379 of file PAMacros.cs.
|
static |
Definition at line 2857 of file PAMacros.cs.
|
static |
Definition at line 2883 of file PAMacros.cs.
|
static |
Definition at line 2922 of file PAMacros.cs.
|
static |
Definition at line 2883 of file PAMacros.cs.
|
static |
Definition at line 2922 of file PAMacros.cs.
|
static |
Definition at line 2883 of file PAMacros.cs.
|
static |
Definition at line 3820 of file PAMacros.cs.
|
static |
Helper function for MoonRiseLCT.
Helper function for moon_set_az.
Helper function for MoonSetLcDMY.
Helper function for MoonSetLCT.
Helper function for MoonRiseAz.
Helper function for MoonRiseLcDMY.
Definition at line 3798 of file PAMacros.cs.
|
static |
Definition at line 1684 of file PAMacros.cs.
|
static |
Definition at line 5379 of file PAMacros.cs.
|
static |
Definition at line 5379 of file PAMacros.cs.
|
static |
Definition at line 1684 of file PAMacros.cs.
|
static |
Definition at line 3798 of file PAMacros.cs.