Practical Astronomy
practical_astronomy.pa_macro Namespace Reference

Functions

def cd_jd (day, month, year)
 
def jdc_day (julianDate)
 
def jdc_month (julianDate)
 
def jdc_year (julianDate)
 
def f_dow (julianDate)
 
def hms_dh (hours, minutes, seconds)
 
def dh_hour (decimalHours)
 
def dh_min (decimalHours)
 
def dh_sec (decimalHours)
 
def lct_ut (lctHours, lctMinutes, lctSeconds, daylightSaving, zoneCorrection, localDay, localMonth, localYear)
 
def ut_lct (uHours, uMinutes, uSeconds, daylightSaving, zoneCorrection, greenwichDay, greenwichMonth, greenwichYear)
 
def ut_lc_day (uHours, uMinutes, uSeconds, daylightSaving, zoneCorrection, greenwichDay, greenwichMonth, greenwichYear)
 
def ut_lc_month (uHours, uMinutes, uSeconds, daylightSaving, zoneCorrection, greenwichDay, greenwichMonth, greenwichYear)
 
def ut_lc_year (uHours, uMinutes, uSeconds, daylightSaving, zoneCorrection, greenwichDay, greenwichMonth, greenwichYear)
 
def lct_gday (lct_hours, lct_minutes, lct_seconds, daylight_saving, zone_correction, local_day, local_month, local_year)
 
def lct_gmonth (lct_hours, lct_minutes, lct_seconds, daylight_saving, zone_correction, local_day, local_month, local_year)
 
def lct_gyear (lct_hours, lct_minutes, lct_seconds, daylight_saving, zone_correction, local_day, local_month, local_year)
 
def ut_gst (u_hours, u_minutes, u_seconds, greenwich_day, greenwich_month, greenwich_year)
 
def gst_lst (greenwich_hours, greenwich_minutes, greenwich_seconds, geographical_longitude)
 
def lst_gst (local_hours, local_minutes, local_seconds, longitude)
 
def gst_ut (greenwich_sidereal_hours, greenwich_sidereal_minutes, greenwich_sidereal_seconds, greenwich_day, greenwich_month, greenwich_year)
 
def e_gst_ut (GSH, GSM, GSS, GD, GM, GY)
 
def ra_ha (ra_hours, ra_minutes, ra_seconds, lct_hours, lct_minutes, lct_seconds, daylight_saving, zone_correction, local_day, local_month, local_year, geographical_longitude)
 
def ha_ra (hour_angle_hours, hour_angle_minutes, hour_angle_seconds, lct_hours, lct_minutes, lct_seconds, daylight_saving, zone_correction, local_day, local_month, local_year, geographical_longitude)
 
def dms_dd (degrees, minutes, seconds)
 
def dd_deg (decimal_degrees)
 
def dd_min (decimal_degrees)
 
def dd_sec (decimal_degrees)
 
def dd_dh (decimal_degrees)
 
def dh_dd (degree_hours)
 
def degrees (W)
 
def atan2 (X, Y)
 
def eq_az (hour_angle_hours, hour_angle_minutes, hour_angle_seconds, declination_degrees, declination_minutes, declination_seconds, geographical_latitude)
 
def eq_alt (hour_angle_hours, hour_angle_minutes, hour_angle_seconds, declination_degrees, declination_minutes, declination_seconds, geographical_latitude)
 
def hor_dec (azimuth_degrees, azimuth_minutes, azimuth_seconds, altitude_degrees, altitude_minutes, altitude_seconds, geographical_latitude)
 
def hor_ha (azimuth_degrees, azimuth_minutes, azimuth_seconds, altitude_degrees, altitude_minutes, altitude_seconds, geographical_latitude)
 
def nutat_obl (greenwich_day, greenwich_month, greenwich_year)
 
def obliq (greenwich_day, greenwich_month, greenwich_year)
 
def sun_long (LCH, LCM, LCS, DS, ZC, LD, LM, LY)
 
def sun_dist (LCH, LCM, LCS, DS, ZC, LD, LM, LY)
 
def sun_dia (LCH, LCM, LCS, DS, ZC, LD, LM, LY)
 
def true_anomaly (AM, EC)
 
def eccentric_anomaly (AM, EC)
 
def refract (Y2, SW, PR, TR)
 
def refract_l3035 (PR, TR, Y, D)
 
def parallax_ha (HH, HM, HS, DD, DM, DS, SW, GP, HT, HP)
 
def parallax_ha_l2870 (X, Y, RC, RP, RS, TP)
 
def parallax_dec (HH, HM, HS, DD, DM, DS, SW, GP, HT, HP)
 
def parallax_dec_l2870 (X, Y, RC, RP, RS, TP)
 
def unwind (W)
 
def unwind_deg (W)
 
def unwind_rad (W)
 
def moon_long (LH, LM, LS, DS, ZC, DY, MN, YR)
 
def moon_lat (LH, LM, LS, DS, ZC, DY, MN, YR)
 
def moon_hp (LH, LM, LS, DS, ZC, DY, MN, YR)
 
def moon_dist (LH, LM, LS, DS, ZC, DY, MN, YR)
 
def moon_size (LH, LM, LS, DS, ZC, DY, MN, YR)
 
def sun_e_long (GD, GM, GY)
 
def sun_peri (GD, GM, GY)
 
def sun_ecc (GD, GM, GY)
 
def ec_dec (ELD, ELM, ELS, BD, BM, BS, GD, GM, GY)
 
def ec_ra (ELD, ELM, ELS, BD, BM, BS, GD, GM, GY)
 
def sun_true_anomaly (LCH, LCM, LCS, DS, ZC, LD, LM, LY)
 
def sun_mean_anomaly (LCH, LCM, LCS, DS, ZC, LD, LM, LY)
 
def sunrise_lct (LD, LM, LY, DS, ZC, GL, GP)
 
def sunrise_lct_l3710 (GD, GM, GY, SR, DI, GP)
 
def sunrise_az (LD, LM, LY, DS, ZC, GL, GP)
 
def sunrise_az_l3710 (GD, GM, GY, SR, DI, GP)
 
def sunset_az (LD, LM, LY, DS, ZC, GL, GP)
 
def sunset_az_l3710 (GD, GM, GY, SR, DI, GP)
 
def sunset_lct (LD, LM, LY, DS, ZC, GL, GP)
 
def sunset_lct_l3710 (GD, GM, GY, SR, DI, GP)
 
def e_sun_rs (LD, LM, LY, DS, ZC, GL, GP)
 
def e_sun_rs_l3710 (GD, GM, GY, SR, DI, GP)
 
def angle (XX1, XM1, XS1, DD1, DM1, DS1, XX2, XM2, XS2, DD2, DM2, DS2, S)
 
def rise_set_local_sidereal_time_rise (RAH, RAM, RAS, DD, DM, DS, VD, G)
 
def e_rs (RAH, RAM, RAS, DD, DM, DS, VD, G)
 
def rise_set_local_sidereal_time_set (RAH, RAM, RAS, DD, DM, DS, VD, G)
 
def rise_set_azimuth_rise (RAH, RAM, RAS, DD, DM, DS, VD, G)
 
def rise_set_azimuth_set (RAH, RAM, RAS, DD, DM, DS, VD, G)
 
def nutat_long (GD, GM, GY)
 
def twilight_am_lct (LD, LM, LY, DS, ZC, GL, GP, TT)
 
def twilight_am_lct_l3710 (GD, GM, GY, SR, DI, GP)
 
def twilight_pm_lct (LD, LM, LY, DS, ZC, GL, GP, TT)
 
def twilight_pm_lct_l3710 (GD, GM, GY, SR, DI, GP)
 
def e_twilight (LD, LM, LY, DS, ZC, GL, GP, TT)
 
def e_twilight_l3710 (GD, GM, GY, SR, DI, GP)
 
def planet_coordinates (LH, LM, LS, DS, ZC, DY, MN, YR, S)
 
def planet_long_l4685 (AP)
 
def planet_long_l4735 (AP, MS, T)
 
def planet_long_l4810 (AP, MS)
 
def planet_long_l4945 (T, IP, PL)
 
def solve_cubic (W)
 
def p_comet_long_lat_dist (LH, LM, LS, DS, ZC, DY, MN, YR, TD, TM, TY, Q, I, P, N)
 
def moon_long_lat_hp (LH, LM, LS, DS, ZC, DY, MN, YR)
 
def moon_phase (LH, LM, LS, DS, ZC, DY, MN, YR)
 
def moon_mean_anomaly (LH, LM, LS, DS, ZC, DY, MN, YR)
 
def new_moon (DS, ZC, DY, MN, YR)
 
def full_moon (DS, ZC, DY, MN, YR)
 
def new_moon_full_moon_l6855 (K, T)
 
def moon_rise_lct (DY, MN, YR, DS, ZC, GLong, GLat)
 
def moon_rise_lct_l6680 (X, DS, ZC, GDY, GMN, GYR, G1, UT)
 
def moon_rise_lct_l6700 (LCT, DS, ZC, DY1, MN1, YR1, GDY, GMN, GYR, GLat)
 
def e_moon_rise (DY, MN, YR, DS, ZC, GLong, GLat)
 
def e_moon_rise_l6680 (S3, G1, UT, DS, ZC, GDY, GMN, GYR, DY1, MN1, YR1)
 
def e_moon_rise_l6700 (LCT, DS, ZC, DY1, MN1, YR1, GDY, GMN, GYR, GLat)
 
def moon_rise_lc_dmy (DY, MN, YR, DS, ZC, GLong, GLat)
 
def moon_rise_lc_dmy_l6680 (X, DS, ZC, GDY, GMN, GYR, G1, UT)
 
def moon_rise_lc_dmy_l6700 (LCT, DS, ZC, DY1, MN1, YR1, GDY, GMN, GYR, GLat)
 
def moon_rise_az (DY, MN, YR, DS, ZC, GLong, GLat)
 
def moon_rise_az_l6680 (X, DS, ZC, GDY, GMN, GYR, G1, UT)
 
def moon_rise_az_l6700 (LCT, DS, ZC, DY1, MN1, YR1, GDY, GMN, GYR, GLat)
 
def moon_set_lct (DY, MN, YR, DS, ZC, GLong, GLat)
 
def moon_set_lct_l6680 (X, DS, ZC, GDY, GMN, GYR, G1, UT)
 
def moon_set_lct_l6700 (LCT, DS, ZC, DY1, MN1, YR1, GDY, GMN, GYR, GLat)
 
def e_moon_set (DY, MN, YR, DS, ZC, GLong, GLat)
 
def e_moon_set_l6680 (X, S3, G1, UT, DS, ZC, GDY, GMN, GYR, DY1, MN1, YR1)
 
def e_moon_set_l6700 (LCT, DS, ZC, DY1, MN1, YR1, GDY, GMN, GYR, GLat)
 
def moon_set_lc_dmy (DY, MN, YR, DS, ZC, GLong, GLat)
 
def moon_set_lc_dmy_l6680 (X, DS, ZC, GDY, GMN, GYR, G1, UT)
 
def moon_set_lc_dmy_l6700 (LCT, DS, ZC, DY1, MN1, YR1, GDY, GMN, GYR, GLat)
 
def moon_set_az (DY, MN, YR, DS, ZC, GLong, GLat)
 
def moon_set_az_l6680 (X, DS, ZC, GDY, GMN, GYR, G1, UT)
 
def moon_set_az_l6700 (LCT, DS, ZC, DY1, MN1, YR1, GDY, GMN, GYR, GLat)
 
def lunar_eclipse_occurrence (DS, ZC, DY, MN, YR)
 
def lunar_eclipse_occurrence_l6855 (T, K)
 
def mag_lunar_eclipse (DY, MN, YR, DS, ZC)
 
def ut_end_total_lunar_eclipse (DY, MN, YR, DS, ZC)
 
def ut_end_umbra_lunar_eclipse (DY, MN, YR, DS, ZC)
 
def ut_first_contact_lunar_eclipse (DY, MN, YR, DS, ZC)
 
def ut_last_contact_lunar_eclipse (DY, MN, YR, DS, ZC)
 
def ut_max_lunar_eclipse (DY, MN, YR, DS, ZC)
 
def ut_start_total_lunar_eclipse (DY, MN, YR, DS, ZC)
 
def ut_start_umbra_lunar_eclipse (DY, MN, YR, DS, ZC)
 
def solar_eclipse_occurrence (DS, ZC, DY, MN, YR)
 
def solar_eclipse_occurrence_l6855 (T, K)
 
def mag_solar_eclipse (DY, MN, YR, DS, ZC, GLong, GLat)
 
def mag_solar_eclipse_l7390 (X, Y, IGDay, GMonth, GYear, TM, GLong, GLat, HP)
 
def ut_first_contact_solar_eclipse (DY, MN, YR, DS, ZC, GLong, GLat)
 
def ut_first_contact_solar_eclipse_l7390 (X, Y, IGDay, GMonth, GYear, TM, GLong, GLat, HP)
 
def ut_last_contact_solar_eclipse (DY, MN, YR, DS, ZC, GLong, GLat)
 
def ut_last_contact_solar_eclipse_l7390 (X, Y, IGDay, GMonth, GYear, TM, GLong, GLat, HP)
 
def ut_max_solar_eclipse (DY, MN, YR, DS, ZC, GLong, GLat)
 
def ut_max_solar_eclipse_l7390 (X, Y, IGDay, GMonth, GYear, TM, GLong, GLat, HP)
 
def fract (W)
 
def lint (W)
 
def iint (W)
 
def sgn (number_to_check)
 
def ut_day_adjust (UT, G1)
 
def f_part (W)
 
def eq_e_lat (RAH, RAM, RAS, DD, DM, DS, GD, GM, GY)
 
def eq_e_long (RAH, RAM, RAS, DD, DM, DS, GD, GM, GY)
 

Function Documentation

◆ angle()

def practical_astronomy.pa_macro.angle (   XX1,
  XM1,
  XS1,
  DD1,
  DM1,
  DS1,
  XX2,
  XM2,
  XS2,
  DD2,
  DM2,
  DS2,
  S 
)
    Calculate the angle between two celestial objects
    
    Original macro name: Angle

◆ atan2()

def practical_astronomy.pa_macro.atan2 (   X,
  Y 
)
    Custom ATAN2 function
    
    Original macro name: Atan2

◆ cd_jd()

def practical_astronomy.pa_macro.cd_jd (   day,
  month,
  year 
)
    Convert a Greenwich Date/Civil Date (day,month,year) to Julian Date

    Original macro name: CDJD

◆ dd_deg()

def practical_astronomy.pa_macro.dd_deg (   decimal_degrees)
    Return Degrees part of Decimal Degrees
    
    Original macro name: DDDeg

◆ dd_dh()

def practical_astronomy.pa_macro.dd_dh (   decimal_degrees)
    Convert Decimal Degrees to Degree-Hours
    
    Original macro name: DDDH

◆ dd_min()

def practical_astronomy.pa_macro.dd_min (   decimal_degrees)
    Return Minutes part of Decimal Degrees
    
    Original macro name: DDMin

◆ dd_sec()

def practical_astronomy.pa_macro.dd_sec (   decimal_degrees)
    Return Seconds part of Decimal Degrees
    
    Original macro name: DDSec

◆ degrees()

def practical_astronomy.pa_macro.degrees (   W)
    Convert W to Degrees
    
    Original macro name: Degrees

◆ dh_dd()

def practical_astronomy.pa_macro.dh_dd (   degree_hours)
    Convert Degree-Hours to Decimal Degrees
    
    Original macro name: DHDD

◆ dh_hour()

def practical_astronomy.pa_macro.dh_hour (   decimalHours)
    Return the hour part of a Decimal Hours
    
    Original macro name: DHHour

◆ dh_min()

def practical_astronomy.pa_macro.dh_min (   decimalHours)
    Return the minutes part of a Decimal Hours
    
    Original macro name: DHMin

◆ dh_sec()

def practical_astronomy.pa_macro.dh_sec (   decimalHours)
    Return the seconds part of a Decimal Hours
    
    Original macro name: DHSec

◆ dms_dd()

def practical_astronomy.pa_macro.dms_dd (   degrees,
  minutes,
  seconds 
)
    Convert Degrees Minutes Seconds to Decimal Degrees
    
    Original macro name: DMSDD

◆ e_gst_ut()

def practical_astronomy.pa_macro.e_gst_ut (   GSH,
  GSM,
  GSS,
  GD,
  GM,
  GY 
)
    Status of conversion of Greenwich Sidereal Time to Universal Time.

    Original macro name: eGSTUT

◆ e_moon_rise()

def practical_astronomy.pa_macro.e_moon_rise (   DY,
  MN,
  YR,
  DS,
  ZC,
  GLong,
  GLat 
)
    Moonrise calculation status.

    Original macro name: eMoonRise

◆ e_moon_rise_l6680()

def practical_astronomy.pa_macro.e_moon_rise_l6680 (   S3,
  G1,
  UT,
  DS,
  ZC,
  GDY,
  GMN,
  GYR,
  DY1,
  MN1,
  YR1 
)
 Helper function for e_moon_rise() 

◆ e_moon_rise_l6700()

def practical_astronomy.pa_macro.e_moon_rise_l6700 (   LCT,
  DS,
  ZC,
  DY1,
  MN1,
  YR1,
  GDY,
  GMN,
  GYR,
  GLat 
)
 Helper function for e_moon_rise() 

◆ e_moon_set()

def practical_astronomy.pa_macro.e_moon_set (   DY,
  MN,
  YR,
  DS,
  ZC,
  GLong,
  GLat 
)
    Moonset calculation status.

    Original macro name: eMoonSet

◆ e_moon_set_l6680()

def practical_astronomy.pa_macro.e_moon_set_l6680 (   X,
  S3,
  G1,
  UT,
  DS,
  ZC,
  GDY,
  GMN,
  GYR,
  DY1,
  MN1,
  YR1 
)
 Helper function for e_moon_set() 

◆ e_moon_set_l6700()

def practical_astronomy.pa_macro.e_moon_set_l6700 (   LCT,
  DS,
  ZC,
  DY1,
  MN1,
  YR1,
  GDY,
  GMN,
  GYR,
  GLat 
)
 Helper function for e_moon_set() 

◆ e_rs()

def practical_astronomy.pa_macro.e_rs (   RAH,
  RAM,
  RAS,
  DD,
  DM,
  DS,
  VD,
  G 
)
    Rise/Set status

    Possible values: "OK", "** never rises", "** circumpolar"

    Original macro name: eRS

◆ e_sun_rs()

def practical_astronomy.pa_macro.e_sun_rs (   LD,
  LM,
  LY,
  DS,
  ZC,
  GL,
  GP 
)
    Sunrise/Sunset calculation status.

    Original macro name: eSunRS

◆ e_sun_rs_l3710()

def practical_astronomy.pa_macro.e_sun_rs_l3710 (   GD,
  GM,
  GY,
  SR,
  DI,
  GP 
)
 Helper function for e_sun_rs(). 

◆ e_twilight()

def practical_astronomy.pa_macro.e_twilight (   LD,
  LM,
  LY,
  DS,
  ZC,
  GL,
  GP,
  TT 
)
    Twilight calculation status.

    Twilight type can be one of "C" (civil), "N" (nautical), or "A" (astronomical)

    Original macro name: eTwilight

    Returns:
        One of: "OK", "** lasts all night", or "** Sun too far below horizon"

◆ e_twilight_l3710()

def practical_astronomy.pa_macro.e_twilight_l3710 (   GD,
  GM,
  GY,
  SR,
  DI,
  GP 
)
 Helper function for e_twilight(). 

◆ ec_dec()

def practical_astronomy.pa_macro.ec_dec (   ELD,
  ELM,
  ELS,
  BD,
  BM,
  BS,
  GD,
  GM,
  GY 
)
    Ecliptic - Declination (degrees)
    
    Original macro name: ECDec

◆ ec_ra()

def practical_astronomy.pa_macro.ec_ra (   ELD,
  ELM,
  ELS,
  BD,
  BM,
  BS,
  GD,
  GM,
  GY 
)
    Ecliptic - Right Ascension (degrees)
    
    Original macro name: ECRA

◆ eccentric_anomaly()

def practical_astronomy.pa_macro.eccentric_anomaly (   AM,
  EC 
)
    Solve Kepler's equation, and return value of the eccentric anomaly in radians
    
    Original macro name: EccentricAnomaly

◆ eq_alt()

def practical_astronomy.pa_macro.eq_alt (   hour_angle_hours,
  hour_angle_minutes,
  hour_angle_seconds,
  declination_degrees,
  declination_minutes,
  declination_seconds,
  geographical_latitude 
)
    Convert Equatorial Coordinates to Altitude (in decimal degrees)
    
    Original macro name: EQAlt

◆ eq_az()

def practical_astronomy.pa_macro.eq_az (   hour_angle_hours,
  hour_angle_minutes,
  hour_angle_seconds,
  declination_degrees,
  declination_minutes,
  declination_seconds,
  geographical_latitude 
)
    Convert Equatorial Coordinates to Azimuth (in decimal degrees)
    
    Original macro name: EQAz

◆ eq_e_lat()

def practical_astronomy.pa_macro.eq_e_lat (   RAH,
  RAM,
  RAS,
  DD,
  DM,
  DS,
  GD,
  GM,
  GY 
)
    Original macro name: EQElat

◆ eq_e_long()

def practical_astronomy.pa_macro.eq_e_long (   RAH,
  RAM,
  RAS,
  DD,
  DM,
  DS,
  GD,
  GM,
  GY 
)
    Original macro name: EQElong

◆ f_dow()

def practical_astronomy.pa_macro.f_dow (   julianDate)
    Convert a Julian Date to Day-of-Week (e.g., Sunday)
    
    Original macro name: FDOW

◆ f_part()

def practical_astronomy.pa_macro.f_part (   W)
    Original macro name: Fpart

◆ fract()

def practical_astronomy.pa_macro.fract (   W)
    Original macro name: FRACT

◆ full_moon()

def practical_astronomy.pa_macro.full_moon (   DS,
  ZC,
  DY,
  MN,
  YR 
)
    Calculate Julian date of Full Moon.

    Original macro name: FullMoon

    Arguments:
        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.

◆ gst_lst()

def practical_astronomy.pa_macro.gst_lst (   greenwich_hours,
  greenwich_minutes,
  greenwich_seconds,
  geographical_longitude 
)
    Convert Greenwich Sidereal Time to Local Sidereal Time
    
    Original macro name: GSTLST

◆ gst_ut()

def practical_astronomy.pa_macro.gst_ut (   greenwich_sidereal_hours,
  greenwich_sidereal_minutes,
  greenwich_sidereal_seconds,
  greenwich_day,
  greenwich_month,
  greenwich_year 
)
    Convert Greenwich Sidereal Time to Universal Time
    
    Original macro name: GSTUT

◆ ha_ra()

def practical_astronomy.pa_macro.ha_ra (   hour_angle_hours,
  hour_angle_minutes,
  hour_angle_seconds,
  lct_hours,
  lct_minutes,
  lct_seconds,
  daylight_saving,
  zone_correction,
  local_day,
  local_month,
  local_year,
  geographical_longitude 
)
    Convert Hour Angle to Right Ascension
    
    Original macro name: HARA

◆ hms_dh()

def practical_astronomy.pa_macro.hms_dh (   hours,
  minutes,
  seconds 
)
    Convert a Civil Time (hours,minutes,seconds) to Decimal Hours
    
    Original macro name: HMSDH

◆ hor_dec()

def practical_astronomy.pa_macro.hor_dec (   azimuth_degrees,
  azimuth_minutes,
  azimuth_seconds,
  altitude_degrees,
  altitude_minutes,
  altitude_seconds,
  geographical_latitude 
)
    Convert Horizon Coordinates to Declination (in decimal degrees)
    
    Original macro name: HORDec

◆ hor_ha()

def practical_astronomy.pa_macro.hor_ha (   azimuth_degrees,
  azimuth_minutes,
  azimuth_seconds,
  altitude_degrees,
  altitude_minutes,
  altitude_seconds,
  geographical_latitude 
)
    Convert Horizon Coordinates to Hour Angle (in decimal degrees)
    
    Original macro name: HORHa

◆ iint()

def practical_astronomy.pa_macro.iint (   W)
    Original macro name: IINT

◆ jdc_day()

def practical_astronomy.pa_macro.jdc_day (   julianDate)
    Returns the day part of a Julian Date

    Original macro name: JDCDay

◆ jdc_month()

def practical_astronomy.pa_macro.jdc_month (   julianDate)
    Returns the month part of a Julian Date
    
    Original macro name: JDCMonth

◆ jdc_year()

def practical_astronomy.pa_macro.jdc_year (   julianDate)
    Returns the year part of a Julian Date
    
    Original macro name: JDCYear

◆ lct_gday()

def practical_astronomy.pa_macro.lct_gday (   lct_hours,
  lct_minutes,
  lct_seconds,
  daylight_saving,
  zone_correction,
  local_day,
  local_month,
  local_year 
)
    Determine Greenwich Day for Local Time
    
    Original macro name: LctGDay

◆ lct_gmonth()

def practical_astronomy.pa_macro.lct_gmonth (   lct_hours,
  lct_minutes,
  lct_seconds,
  daylight_saving,
  zone_correction,
  local_day,
  local_month,
  local_year 
)
    Determine Greenwich Month for Local Time
    
    Original macro name: LctGMonth

◆ lct_gyear()

def practical_astronomy.pa_macro.lct_gyear (   lct_hours,
  lct_minutes,
  lct_seconds,
  daylight_saving,
  zone_correction,
  local_day,
  local_month,
  local_year 
)
    Determine Greenwich Year for Local Time
    
    Original macro name: LctGYear

◆ lct_ut()

def practical_astronomy.pa_macro.lct_ut (   lctHours,
  lctMinutes,
  lctSeconds,
  daylightSaving,
  zoneCorrection,
  localDay,
  localMonth,
  localYear 
)
    Convert Local Civil Time to Universal Time
     
    Original macro name: LctUT

◆ lint()

def practical_astronomy.pa_macro.lint (   W)
    Original macro name: LINT

◆ lst_gst()

def practical_astronomy.pa_macro.lst_gst (   local_hours,
  local_minutes,
  local_seconds,
  longitude 
)
    Convert Local Sidereal Time to Greenwich Sidereal Time
    
    Original macro name: LSTGST

◆ lunar_eclipse_occurrence()

def practical_astronomy.pa_macro.lunar_eclipse_occurrence (   DS,
  ZC,
  DY,
  MN,
  YR 
)
    Determine if a lunar eclipse is likely to occur.

    Original macro name: LEOccurrence

◆ lunar_eclipse_occurrence_l6855()

def practical_astronomy.pa_macro.lunar_eclipse_occurrence_l6855 (   T,
  K 
)
 Helper function for lunar_eclipse_occurrence 

◆ mag_lunar_eclipse()

def practical_astronomy.pa_macro.mag_lunar_eclipse (   DY,
  MN,
  YR,
  DS,
  ZC 
)
    Calculate magnitude of lunar eclipse.

    Original macro name: MagLunarEclipse

◆ mag_solar_eclipse()

def practical_astronomy.pa_macro.mag_solar_eclipse (   DY,
  MN,
  YR,
  DS,
  ZC,
  GLong,
  GLat 
)
    Calculate magnitude of solar eclipse.

    Original macro name: MagSolarEclipse

◆ mag_solar_eclipse_l7390()

def practical_astronomy.pa_macro.mag_solar_eclipse_l7390 (   X,
  Y,
  IGDay,
  GMonth,
  GYear,
  TM,
  GLong,
  GLat,
  HP 
)
 Helper function for mag_solar_eclipse 

◆ moon_dist()

def practical_astronomy.pa_macro.moon_dist (   LH,
  LM,
  LS,
  DS,
  ZC,
  DY,
  MN,
  YR 
)
    Calculate distance from the Earth to the Moon (km)

    Original macro name: MoonDist

◆ moon_hp()

def practical_astronomy.pa_macro.moon_hp (   LH,
  LM,
  LS,
  DS,
  ZC,
  DY,
  MN,
  YR 
)
    Calculate horizontal parallax for the Moon
    
    Original macro name: MoonHP

◆ moon_lat()

def practical_astronomy.pa_macro.moon_lat (   LH,
  LM,
  LS,
  DS,
  ZC,
  DY,
  MN,
  YR 
)
    Calculate geocentric ecliptic latitude for the Moon
    
    Original macro name: MoonLat

◆ moon_long()

def practical_astronomy.pa_macro.moon_long (   LH,
  LM,
  LS,
  DS,
  ZC,
  DY,
  MN,
  YR 
)
    Calculate geocentric ecliptic longitude for the Moon
    
    Original macro name: MoonLong

◆ moon_long_lat_hp()

def practical_astronomy.pa_macro.moon_long_lat_hp (   LH,
  LM,
  LS,
  DS,
  ZC,
  DY,
  MN,
  YR 
)
    Calculate longitude, latitude, and horizontal parallax of the Moon.

    Original macro names: MoonLong, MoonLat, MoonHP

    Arguments:
        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.

    Returns:
        moon_long_deg -- Moon longitude (degrees)
        moon_lat_deg -- Moon latitude (degrees)
        moon_hor_para -- Moon horizontal parallax (degrees)

◆ moon_mean_anomaly()

def practical_astronomy.pa_macro.moon_mean_anomaly (   LH,
  LM,
  LS,
  DS,
  ZC,
  DY,
  MN,
  YR 
)
    Calculate the Moon's mean anomaly.

    Original macro name: MoonMeanAnomaly

◆ moon_phase()

def practical_astronomy.pa_macro.moon_phase (   LH,
  LM,
  LS,
  DS,
  ZC,
  DY,
  MN,
  YR 
)
    Calculate current phase of Moon.

    Original macro name: MoonPhase

◆ moon_rise_az()

def practical_astronomy.pa_macro.moon_rise_az (   DY,
  MN,
  YR,
  DS,
  ZC,
  GLong,
  GLat 
)
    Local azimuth of moonrise.

    Original macro name: MoonRiseAz

    Returns:
        degrees

◆ moon_rise_az_l6680()

def practical_astronomy.pa_macro.moon_rise_az_l6680 (   X,
  DS,
  ZC,
  GDY,
  GMN,
  GYR,
  G1,
  UT 
)
 Helper function for moon_rise_az 

◆ moon_rise_az_l6700()

def practical_astronomy.pa_macro.moon_rise_az_l6700 (   LCT,
  DS,
  ZC,
  DY1,
  MN1,
  YR1,
  GDY,
  GMN,
  GYR,
  GLat 
)
 Helper function for moon_rise_az 

◆ moon_rise_lc_dmy()

def practical_astronomy.pa_macro.moon_rise_lc_dmy (   DY,
  MN,
  YR,
  DS,
  ZC,
  GLong,
  GLat 
)
    Local date of moonrise.
    
    Original macro names: MoonRiseLcDay, MoonRiseLcMonth, MoonRiseLcYear

    Returns:
        Local date (day)
        Local date (month)
        Local date (year)

◆ moon_rise_lc_dmy_l6680()

def practical_astronomy.pa_macro.moon_rise_lc_dmy_l6680 (   X,
  DS,
  ZC,
  GDY,
  GMN,
  GYR,
  G1,
  UT 
)
 Helper function for moon_rise_lc_dmy 

◆ moon_rise_lc_dmy_l6700()

def practical_astronomy.pa_macro.moon_rise_lc_dmy_l6700 (   LCT,
  DS,
  ZC,
  DY1,
  MN1,
  YR1,
  GDY,
  GMN,
  GYR,
  GLat 
)
 Helper function for moon_rise_lc_dmy 

◆ moon_rise_lct()

def practical_astronomy.pa_macro.moon_rise_lct (   DY,
  MN,
  YR,
  DS,
  ZC,
  GLong,
  GLat 
)
    Local time of moonrise.

    Original macro name: MoonRiseLCT

    Returns:
        hours

◆ moon_rise_lct_l6680()

def practical_astronomy.pa_macro.moon_rise_lct_l6680 (   X,
  DS,
  ZC,
  GDY,
  GMN,
  GYR,
  G1,
  UT 
)
 Helper function for moon_rise_lct 

◆ moon_rise_lct_l6700()

def practical_astronomy.pa_macro.moon_rise_lct_l6700 (   LCT,
  DS,
  ZC,
  DY1,
  MN1,
  YR1,
  GDY,
  GMN,
  GYR,
  GLat 
)
 Helper function for moon_rise_lct 

◆ moon_set_az()

def practical_astronomy.pa_macro.moon_set_az (   DY,
  MN,
  YR,
  DS,
  ZC,
  GLong,
  GLat 
)
    Local azimuth of moonset.

    Original macro name: MoonSetAz

    Returns:
        degrees

◆ moon_set_az_l6680()

def practical_astronomy.pa_macro.moon_set_az_l6680 (   X,
  DS,
  ZC,
  GDY,
  GMN,
  GYR,
  G1,
  UT 
)
 Helper function for moon_set_az 

◆ moon_set_az_l6700()

def practical_astronomy.pa_macro.moon_set_az_l6700 (   LCT,
  DS,
  ZC,
  DY1,
  MN1,
  YR1,
  GDY,
  GMN,
  GYR,
  GLat 
)
 Helper function for moon_set_az 

◆ moon_set_lc_dmy()

def practical_astronomy.pa_macro.moon_set_lc_dmy (   DY,
  MN,
  YR,
  DS,
  ZC,
  GLong,
  GLat 
)
    Local date of moonset.
    
    Original macro names: MoonSetLcDay, MoonSetLcMonth, MoonSetLcYear

    Returns:
        Local date (day)
        Local date (month)
        Local date (year)

◆ moon_set_lc_dmy_l6680()

def practical_astronomy.pa_macro.moon_set_lc_dmy_l6680 (   X,
  DS,
  ZC,
  GDY,
  GMN,
  GYR,
  G1,
  UT 
)
 Helper function for moon_set_lc_dmy 

◆ moon_set_lc_dmy_l6700()

def practical_astronomy.pa_macro.moon_set_lc_dmy_l6700 (   LCT,
  DS,
  ZC,
  DY1,
  MN1,
  YR1,
  GDY,
  GMN,
  GYR,
  GLat 
)
 Helper function for moon_set_lc_dmy 

◆ moon_set_lct()

def practical_astronomy.pa_macro.moon_set_lct (   DY,
  MN,
  YR,
  DS,
  ZC,
  GLong,
  GLat 
)
    Local time of moonset.

    Original macro name: MoonSetLCT

    Returns:
        hours

◆ moon_set_lct_l6680()

def practical_astronomy.pa_macro.moon_set_lct_l6680 (   X,
  DS,
  ZC,
  GDY,
  GMN,
  GYR,
  G1,
  UT 
)
 Helper function for moon_set_lct 

◆ moon_set_lct_l6700()

def practical_astronomy.pa_macro.moon_set_lct_l6700 (   LCT,
  DS,
  ZC,
  DY1,
  MN1,
  YR1,
  GDY,
  GMN,
  GYR,
  GLat 
)
 Helper function for moon_set_lct 

◆ moon_size()

def practical_astronomy.pa_macro.moon_size (   LH,
  LM,
  LS,
  DS,
  ZC,
  DY,
  MN,
  YR 
)
    Calculate the Moon's angular diameter (degrees)

    Original macro name: MoonSize

◆ new_moon()

def practical_astronomy.pa_macro.new_moon (   DS,
  ZC,
  DY,
  MN,
  YR 
)
    Calculate Julian date of New Moon.

    Original macro name: NewMoon

    Arguments:
        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.

◆ new_moon_full_moon_l6855()

def practical_astronomy.pa_macro.new_moon_full_moon_l6855 (   K,
  T 
)
 Helper function for new_moon() and full_moon() 

◆ nutat_long()

def practical_astronomy.pa_macro.nutat_long (   GD,
  GM,
  GY 
)
    Nutation amount to be added in ecliptic longitude, in degrees.

    Original macro name: NutatLong

◆ nutat_obl()

def practical_astronomy.pa_macro.nutat_obl (   greenwich_day,
  greenwich_month,
  greenwich_year 
)
    Nutation of Obliquity
    
    Original macro name: NutatObl

◆ obliq()

def practical_astronomy.pa_macro.obliq (   greenwich_day,
  greenwich_month,
  greenwich_year 
)
    Obliquity of the Ecliptic for a Greenwich Date
    
    Original macro name: Obliq

◆ p_comet_long_lat_dist()

def practical_astronomy.pa_macro.p_comet_long_lat_dist (   LH,
  LM,
  LS,
  DS,
  ZC,
  DY,
  MN,
  YR,
  TD,
  TM,
  TY,
  Q,
  I,
  P,
  N 
)
    Calculate longitude, latitude, and distance of parabolic-orbit comet.

    Original macro names: PcometLong, PcometLat, PcometDist

    Arguments:
        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 -- q (AU)
        I -- Inclination (degrees)
        P -- Perihelion (degrees)
        N -- Node (degrees)

    Returns:
        comet_long_deg -- Comet longitude (degrees)
        comet_lat_deg -- Comet lat (degrees)
        comet_dist_au -- Comet distance from Earth (AU)

◆ parallax_dec()

def practical_astronomy.pa_macro.parallax_dec (   HH,
  HM,
  HS,
  DD,
  DM,
  DS,
  SW,
  GP,
  HT,
  HP 
)
    Calculate corrected declination in decimal degrees
    
    Original macro name: ParallaxDec

◆ parallax_dec_l2870()

def practical_astronomy.pa_macro.parallax_dec_l2870 (   X,
  Y,
  RC,
  RP,
  RS,
  TP 
)
 Helper function for parallax_dec 

◆ parallax_ha()

def practical_astronomy.pa_macro.parallax_ha (   HH,
  HM,
  HS,
  DD,
  DM,
  DS,
  SW,
  GP,
  HT,
  HP 
)
    Calculate corrected hour angle in decimal hours
    
    Original macro name: ParallaxHA

◆ parallax_ha_l2870()

def practical_astronomy.pa_macro.parallax_ha_l2870 (   X,
  Y,
  RC,
  RP,
  RS,
  TP 
)
 Helper function for parallax_ha 

◆ planet_coordinates()

def practical_astronomy.pa_macro.planet_coordinates (   LH,
  LM,
  LS,
  DS,
  ZC,
  DY,
  MN,
  YR,
  S 
)
    Calculate several planetary properties.

    Original macro names: PlanetLong, PlanetLat, PlanetDist, PlanetHLong1, PlanetHLong2, PlanetHLat, PlanetRVect

    Arguments:
        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.

    Returns:
        planet_longitude -- Ecliptic longitude, in degrees.
        planet_latitude -- Ecliptic latitude, in degrees.
        planet_distance_au -- Earth-planet distance, in AU.
        planet_h_long1 -- Heliocentric orbital longitude, in degrees.
        planet_h_long2 -- NOT USED
        planet_h_lat -- NOT USED
        planet_r_vect -- Sun-planet distance (length of radius vector), in AU.

◆ planet_long_l4685()

def practical_astronomy.pa_macro.planet_long_l4685 (   AP)
 Helper function for planet_long_lat() 

◆ planet_long_l4735()

def practical_astronomy.pa_macro.planet_long_l4735 (   AP,
  MS,
  T 
)
 Helper function for planet_long_lat() 

◆ planet_long_l4810()

def practical_astronomy.pa_macro.planet_long_l4810 (   AP,
  MS 
)
 Helper function for planet_long_lat() 

◆ planet_long_l4945()

def practical_astronomy.pa_macro.planet_long_l4945 (   T,
  IP,
  PL 
)
 Helper function for planet_long_lat() 

◆ ra_ha()

def practical_astronomy.pa_macro.ra_ha (   ra_hours,
  ra_minutes,
  ra_seconds,
  lct_hours,
  lct_minutes,
  lct_seconds,
  daylight_saving,
  zone_correction,
  local_day,
  local_month,
  local_year,
  geographical_longitude 
)
    Convert Right Ascension to Hour Angle
    
    Original macro name: RAHA

◆ refract()

def practical_astronomy.pa_macro.refract (   Y2,
  SW,
  PR,
  TR 
)
    Calculate effects of refraction
    
    Original macro name: Refract

◆ refract_l3035()

def practical_astronomy.pa_macro.refract_l3035 (   PR,
  TR,
  Y,
  D 
)
 Helper function for refract 

◆ rise_set_azimuth_rise()

def practical_astronomy.pa_macro.rise_set_azimuth_rise (   RAH,
  RAM,
  RAS,
  DD,
  DM,
  DS,
  VD,
  G 
)
    Azimuth of rising, in degrees.
    
    Original macro name: RSAZR

◆ rise_set_azimuth_set()

def practical_astronomy.pa_macro.rise_set_azimuth_set (   RAH,
  RAM,
  RAS,
  DD,
  DM,
  DS,
  VD,
  G 
)
    Azimuth of setting, in degrees.

    Original macro name: RSAZS

◆ rise_set_local_sidereal_time_rise()

def practical_astronomy.pa_macro.rise_set_local_sidereal_time_rise (   RAH,
  RAM,
  RAS,
  DD,
  DM,
  DS,
  VD,
  G 
)
    Local sidereal time of rise, in hours.

    Original macro name: RSLSTR

◆ rise_set_local_sidereal_time_set()

def practical_astronomy.pa_macro.rise_set_local_sidereal_time_set (   RAH,
  RAM,
  RAS,
  DD,
  DM,
  DS,
  VD,
  G 
)
    Local sidereal time of setting, in hours.

    Original macro name: RSLSTS

◆ sgn()

def practical_astronomy.pa_macro.sgn (   number_to_check)
    Calculate sign of number.

    Arguments:
        number_to_check -- Number to calculate the sign of.

    Returns:
        sign_value -- Sign value: -1, 0, or 1

◆ solar_eclipse_occurrence()

def practical_astronomy.pa_macro.solar_eclipse_occurrence (   DS,
  ZC,
  DY,
  MN,
  YR 
)
    Determine if a solar eclipse is likely to occur.

    Original macro name: SEOccurrence

◆ solar_eclipse_occurrence_l6855()

def practical_astronomy.pa_macro.solar_eclipse_occurrence_l6855 (   T,
  K 
)
 Helper function for solar_eclipse_occurrence 

◆ solve_cubic()

def practical_astronomy.pa_macro.solve_cubic (   W)
    For W, in radians, return S, also in radians.

    Original macro name: SolveCubic

◆ sun_dia()

def practical_astronomy.pa_macro.sun_dia (   LCH,
  LCM,
  LCS,
  DS,
  ZC,
  LD,
  LM,
  LY 
)
    Calculate Sun's angular diameter in decimal degrees
    
    Original macro name: SunDia

◆ sun_dist()

def practical_astronomy.pa_macro.sun_dist (   LCH,
  LCM,
  LCS,
  DS,
  ZC,
  LD,
  LM,
  LY 
)
    Calculate Sun's distance from the Earth in astronomical units
    
    Original macro name: SunDist

◆ sun_e_long()

def practical_astronomy.pa_macro.sun_e_long (   GD,
  GM,
  GY 
)
    Mean ecliptic longitude of the Sun at the epoch
    
    Original macro name: SunElong

◆ sun_ecc()

def practical_astronomy.pa_macro.sun_ecc (   GD,
  GM,
  GY 
)
    Eccentricity of the Sun-Earth orbit
    
    Original macro name: SunEcc

◆ sun_long()

def practical_astronomy.pa_macro.sun_long (   LCH,
  LCM,
  LCS,
  DS,
  ZC,
  LD,
  LM,
  LY 
)
    Calculate Sun's ecliptic longitude
    
    Original macro name: SunLong

◆ sun_mean_anomaly()

def practical_astronomy.pa_macro.sun_mean_anomaly (   LCH,
  LCM,
  LCS,
  DS,
  ZC,
  LD,
  LM,
  LY 
)
    Calculate the Sun's mean anomaly.

    Original macro name: SunMeanAnomaly

◆ sun_peri()

def practical_astronomy.pa_macro.sun_peri (   GD,
  GM,
  GY 
)
    Longitude of the Sun at perigee
    
    Original macro name: SunPeri

◆ sun_true_anomaly()

def practical_astronomy.pa_macro.sun_true_anomaly (   LCH,
  LCM,
  LCS,
  DS,
  ZC,
  LD,
  LM,
  LY 
)
    Calculate Sun's true anomaly, i.e., how much its orbit deviates from a true circle to an ellipse.
    
    Original macro name: SunTrueAnomaly

◆ sunrise_az()

def practical_astronomy.pa_macro.sunrise_az (   LD,
  LM,
  LY,
  DS,
  ZC,
  GL,
  GP 
)
    Calculate azimuth of sunrise.

    Original macro name: SunriseAz

◆ sunrise_az_l3710()

def practical_astronomy.pa_macro.sunrise_az_l3710 (   GD,
  GM,
  GY,
  SR,
  DI,
  GP 
)
 Helper function for sunrise_az(). 

◆ sunrise_lct()

def practical_astronomy.pa_macro.sunrise_lct (   LD,
  LM,
  LY,
  DS,
  ZC,
  GL,
  GP 
)
    Calculate local civil time of sunrise.

    Original macro name: SunriseLCT

◆ sunrise_lct_l3710()

def practical_astronomy.pa_macro.sunrise_lct_l3710 (   GD,
  GM,
  GY,
  SR,
  DI,
  GP 
)
 Helper function for sunrise_lct(). 

◆ sunset_az()

def practical_astronomy.pa_macro.sunset_az (   LD,
  LM,
  LY,
  DS,
  ZC,
  GL,
  GP 
)
    Calculate azimuth of sunset.

    Original macro name: SunsetAz

◆ sunset_az_l3710()

def practical_astronomy.pa_macro.sunset_az_l3710 (   GD,
  GM,
  GY,
  SR,
  DI,
  GP 
)
 Helper function for sunset_az(). 

◆ sunset_lct()

def practical_astronomy.pa_macro.sunset_lct (   LD,
  LM,
  LY,
  DS,
  ZC,
  GL,
  GP 
)
    Calculate local civil time of sunset.

    Original macro name: SunsetLCT

◆ sunset_lct_l3710()

def practical_astronomy.pa_macro.sunset_lct_l3710 (   GD,
  GM,
  GY,
  SR,
  DI,
  GP 
)
 Helper function for sunset_lct(). 

◆ true_anomaly()

def practical_astronomy.pa_macro.true_anomaly (   AM,
  EC 
)
    Solve Kepler's equation, and return value of the true anomaly in radians
    
    Original macro name: TrueAnomaly

◆ twilight_am_lct()

def practical_astronomy.pa_macro.twilight_am_lct (   LD,
  LM,
  LY,
  DS,
  ZC,
  GL,
  GP,
  TT 
)
    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

◆ twilight_am_lct_l3710()

def practical_astronomy.pa_macro.twilight_am_lct_l3710 (   GD,
  GM,
  GY,
  SR,
  DI,
  GP 
)
 Helper function for twilight_am_lct(). 

◆ twilight_pm_lct()

def practical_astronomy.pa_macro.twilight_pm_lct (   LD,
  LM,
  LY,
  DS,
  ZC,
  GL,
  GP,
  TT 
)
    Calculate evening twilight end, in local time.

    Twilight type can be one of "C" (civil), "N" (nautical), or "A" (astronomical)

    Original macro name: TwilightPMLCT

◆ twilight_pm_lct_l3710()

def practical_astronomy.pa_macro.twilight_pm_lct_l3710 (   GD,
  GM,
  GY,
  SR,
  DI,
  GP 
)
 Helper function for twilight_pm_lct(). 

◆ unwind()

def practical_astronomy.pa_macro.unwind (   W)
    Convert angle in radians to equivalent angle in degrees.
    
    Original macro name: Unwind

◆ unwind_deg()

def practical_astronomy.pa_macro.unwind_deg (   W)
    Convert angle in degrees to equivalent angle in the range 0 to 360 degrees.

    Original macro name: UnwindDeg

◆ unwind_rad()

def practical_astronomy.pa_macro.unwind_rad (   W)
    Convert angle in radians to equivalent angle in degrees.

    Original macro name: UnwindRad

◆ ut_day_adjust()

def practical_astronomy.pa_macro.ut_day_adjust (   UT,
  G1 
)
    Original macro name: UTDayAdjust

◆ ut_end_total_lunar_eclipse()

def practical_astronomy.pa_macro.ut_end_total_lunar_eclipse (   DY,
  MN,
  YR,
  DS,
  ZC 
)
    Calculate end time of total phase of lunar eclipse (UT)

    Original macro name: UTEndTotalLunarEclipse

◆ ut_end_umbra_lunar_eclipse()

def practical_astronomy.pa_macro.ut_end_umbra_lunar_eclipse (   DY,
  MN,
  YR,
  DS,
  ZC 
)
    Calculate end time of umbra phase of lunar eclipse (UT)

    Original macro name: UTEndUmbraLunarEclipse

◆ ut_first_contact_lunar_eclipse()

def practical_astronomy.pa_macro.ut_first_contact_lunar_eclipse (   DY,
  MN,
  YR,
  DS,
  ZC 
)
    Calculate time of first shadow contact for lunar eclipse (UT)

    Original macro name: UTFirstContactLunarEclipse

◆ ut_first_contact_solar_eclipse()

def practical_astronomy.pa_macro.ut_first_contact_solar_eclipse (   DY,
  MN,
  YR,
  DS,
  ZC,
  GLong,
  GLat 
)
    Calculate time of first contact for solar eclipse (UT)

    Original macro name: UTFirstContactSolarEclipse

◆ ut_first_contact_solar_eclipse_l7390()

def practical_astronomy.pa_macro.ut_first_contact_solar_eclipse_l7390 (   X,
  Y,
  IGDay,
  GMonth,
  GYear,
  TM,
  GLong,
  GLat,
  HP 
)
 Helper function for ut_first_contact_solar_eclipse 

◆ ut_gst()

def practical_astronomy.pa_macro.ut_gst (   u_hours,
  u_minutes,
  u_seconds,
  greenwich_day,
  greenwich_month,
  greenwich_year 
)
    Convert Universal Time to Greenwich Sidereal Time
    
    Original macro name: UTGST

◆ ut_last_contact_lunar_eclipse()

def practical_astronomy.pa_macro.ut_last_contact_lunar_eclipse (   DY,
  MN,
  YR,
  DS,
  ZC 
)
    Calculate time of last shadow contact for lunar eclipse (UT)

    Original macro name: UTLastContactLunarEclipse

◆ ut_last_contact_solar_eclipse()

def practical_astronomy.pa_macro.ut_last_contact_solar_eclipse (   DY,
  MN,
  YR,
  DS,
  ZC,
  GLong,
  GLat 
)
    Calculate time of last contact for solar eclipse (UT)

    Original macro name: UTLastContactSolarEclipse

◆ ut_last_contact_solar_eclipse_l7390()

def practical_astronomy.pa_macro.ut_last_contact_solar_eclipse_l7390 (   X,
  Y,
  IGDay,
  GMonth,
  GYear,
  TM,
  GLong,
  GLat,
  HP 
)
 Helper function for ut_last_contact_solar_eclipse 

◆ ut_lc_day()

def practical_astronomy.pa_macro.ut_lc_day (   uHours,
  uMinutes,
  uSeconds,
  daylightSaving,
  zoneCorrection,
  greenwichDay,
  greenwichMonth,
  greenwichYear 
)
    Get Local Civil Day for Universal Time
    
    Original macro name: UTLcDay

◆ ut_lc_month()

def practical_astronomy.pa_macro.ut_lc_month (   uHours,
  uMinutes,
  uSeconds,
  daylightSaving,
  zoneCorrection,
  greenwichDay,
  greenwichMonth,
  greenwichYear 
)
    Get Local Civil Month for Universal Time
    
    Original macro name: UTLcMonth

◆ ut_lc_year()

def practical_astronomy.pa_macro.ut_lc_year (   uHours,
  uMinutes,
  uSeconds,
  daylightSaving,
  zoneCorrection,
  greenwichDay,
  greenwichMonth,
  greenwichYear 
)
    Get Local Civil Year for Universal Time
    
    Original macro name: UTLcYear

◆ ut_lct()

def practical_astronomy.pa_macro.ut_lct (   uHours,
  uMinutes,
  uSeconds,
  daylightSaving,
  zoneCorrection,
  greenwichDay,
  greenwichMonth,
  greenwichYear 
)
    Convert Universal Time to Local Civil Time

    Original macro name: UTLct  

◆ ut_max_lunar_eclipse()

def practical_astronomy.pa_macro.ut_max_lunar_eclipse (   DY,
  MN,
  YR,
  DS,
  ZC 
)
    Calculate time of maximum shadow for lunar eclipse (UT)

    Original macro name: UTMaxLunarEclipse

◆ ut_max_solar_eclipse()

def practical_astronomy.pa_macro.ut_max_solar_eclipse (   DY,
  MN,
  YR,
  DS,
  ZC,
  GLong,
  GLat 
)
    Calculate time of maximum shadow for solar eclipse (UT)

    Original macro name: UTMaxSolarEclipse

◆ ut_max_solar_eclipse_l7390()

def practical_astronomy.pa_macro.ut_max_solar_eclipse_l7390 (   X,
  Y,
  IGDay,
  GMonth,
  GYear,
  TM,
  GLong,
  GLat,
  HP 
)
 Helper function for ut_max_solar_eclipse 

◆ ut_start_total_lunar_eclipse()

def practical_astronomy.pa_macro.ut_start_total_lunar_eclipse (   DY,
  MN,
  YR,
  DS,
  ZC 
)
    Calculate start time of total phase of lunar eclipse (UT)

    Original macro name: UTStartTotalLunarEclipse

◆ ut_start_umbra_lunar_eclipse()

def practical_astronomy.pa_macro.ut_start_umbra_lunar_eclipse (   DY,
  MN,
  YR,
  DS,
  ZC 
)
    Calculate start time of umbra phase of lunar eclipse (UT)

    Original macro name: UTStartUmbraLunarEclipse