Functions | |
| def | date2carrington |
| def | carrington2date |
| def | update_carrington |
Variables | |
| list | carrington_date_list |
| list | carrington_date_list_old |
| list | carrington_list = carrington_date_list[0::3] |
| list | begin_list = carrington_date_list[1::3] |
| list | end_list = carrington_date_list[2::3] |
| def common.module_solar.carrington2date | ( | ncar | ) |
Use the data list below the find the corresponding beginning date of a Carrington rotation. Input: integer Carrington rotation. Output: begin date of wanted carrington rotation in datetime type.
| def common.module_solar.date2carrington | ( | date | ) |
Use the data list below the find the corresponding Carrington rotation. Input: date in datetime type. Output: integer Carrington rotation.
| def common.module_solar.update_carrington | ( | ) |
Download an ALPO reference file for Carrington rotation dates (Association for Lunar and Planetary Observers/Solar Section).
Contains Carrington rotation from -10 to 3082.
Decode the file and build the carrington_updated_date_list structure.
File has this form:
Rotation ---- Udate ---- -- Year -- -- JuliDate - UDate UTime
-0010 1853 01 13.9910 1853.03831 2397867.49132 1853-01-13 2347
| list common.module_solar.begin_list = carrington_date_list[1::3] |
| list common.module_solar.carrington_date_list |
| list common.module_solar.carrington_date_list_old |
| list common.module_solar.carrington_list = carrington_date_list[0::3] |
| list common.module_solar.end_list = carrington_date_list[2::3] |
1.8.5