Skip to content

How to get the exact date and time from ecliptic longitude on gps coordinates #155

@ratobiajin

Description

@ratobiajin

Hello! I am thankful for the effort you have done for this project. In Chinese and Japanese culture there are 24 Solar Terms, the dates of which are calculated taking into account the ecliptic longitude by two methods — píngqì (平気) based on the mean motion of the Sun dividing the tropical year evenly into 24 periods, and dìngqì (定気) based on the position of the Sun on the ecliptic. I'd like to have a script that calculates the exact local time (MM/DD hh;mm) for the given year at the location given by lat/lon GPS coordinates of main 8 Solar Terms, each of which take place at given ecliptic longitude, in both methods:

315° | 1 Lichun
0° | 2 Chunfen (Spring Equinox)
45° | 3 Lixia
90° | 4 Xiazhi (Summer Solstice)
135° | 5 Liqiu
180° | 6 Qiufen (Autumn Equinox)
225° | 7 Lidong
270° | 8 Dongzhi (Winter Solstice)

getSolarTerm(2022,4,"dingqi","35.6819,139.7534"), i.e. Xiazhi (Summer Solstice) of 2022, in case of Tokyo, Japan should return "06/21 18:14"
getSolarTerm(2022,4,"pingqi","35.6819,139.7534"), i.e. Xiazhi (Summer Solstice) of 2022, in case of Tokyo, Japan should return "06/22 04:55"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions