Пример #1
0
Файл: Sun.py Проект: Tapyr/tapyr
_Command = TFL.CAO.Cmd \
    ( handler       = _main
    , args          =
        ( "date:S=%s" % CAL.Date ()
        ,
        )
    , opts          =
        ( "astro_twilight:B?Show astro twilight (-18 degrees below horizon)"
        , "civil_twilight:B?Show civil twilight (-6 degrees below horizon)"
        , "day_length:B?Show length of day in hours"
        , "latitude:F?Latitude (north is positive)"
        , "longitude:F?Longitude (negative is east of Greenwich)"
        , "-nautic_twilight:B"
            "?Show time of nautic twilight (sun -12 degrees below horizon)"
        , "-transit:B?Show transit height"
        , "-year:I?Show sunrise/transit/set data for whole year"
        , TFL.CAO.Opt.Location
            ( name        = "Location"
            , description = "Location of observer"
            , default     = "Vienna"
            )
        )
    )

if __name__ != "__main__":
    SKY._Export ("*")
else :
    _Command ()
### __END__ SKY.Sun
Пример #2
0
_Command = TFL.CAO.Cmd \
    ( handler       = _main
    , args          =
        ( "date:S=%s" % CAL.Date ()
        ,
        )
    , opts          =
        ( "astro_twilight:B?Show astro twilight (-18 degrees below horizon)"
        , "civil_twilight:B?Show civil twilight (-6 degrees below horizon)"
        , "day_length:B?Show length of day in hours"
        , "latitude:F?Latitude (north is positive)"
        , "longitude:F?Longitude (negative is east of Greenwich)"
        , "-nautic_twilight:B"
            "?Show time of nautic twilight (sun -12 degrees below horizon)"
        , "-transit:B?Show transit height"
        , "-year:I?Show sunrise/transit/set data for whole year"
        , TFL.CAO.Opt.Location
            ( name        = "Location"
            , description = "Location of observer"
            , default     = "Vienna"
            )
        )
    )

if __name__ != "__main__":
    SKY._Export("*")
else:
    _Command()
### __END__ SKY.Sun
Пример #3
0
    >>> time.geometric_mean_anomaly_sun
    Angle_D (94.9805976297)

    >>> time.longitude_ascending_node_moon
    Angle_D (371.253083203)

    >>> print (time.geometric_mean_longitude_moon)
    154°39'39.90''

    >>> print (time.geometric_mean_longitude_sun)
    017°41'56.63''

    >>> print (time.nutation_longitude)
    -000°00'02.33''

    >>> print (time.nutation_obliquity)
    000°00'09.47''

    >>> print (time.mean_obliquity_ecliptic)
    023°26'27.41''

    >>> print (time.mean_obliquity_ecliptic + time.nutation_obliquity)
    023°26'36.88''

"""

if __name__ != "__main__" :
    SKY._Export_Module ()
### __END__ SKY.Earth