ConnectTool
 All Classes Namespaces Files Functions Variables Pages
Functions | Variables
module_solar Namespace Reference

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]
 

Function Documentation

def 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.

Here is the caller graph for this function:

def module_solar.date2carrington (   date)
Use the data list below the find the corresponding Carrington rotation.
Input: date in datetime type.
Output: integer Carrington rotation.

Here is the caller graph for this function:

def 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

Variable Documentation

list module_solar.begin_list = carrington_date_list[1::3]
list module_solar.carrington_date_list
list module_solar.carrington_date_list_old
list module_solar.carrington_list = carrington_date_list[0::3]
list module_solar.end_list = carrington_date_list[2::3]