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

Classes

class  TimeError
 
class  CoordinateError
 
class  Time
 
class  Coordinate
 

Functions

def init_module_timespace
 
def jdstring2jdfloat
 
def jdfloat2jdstruct
 
def jdstring2jdstruct
 
def copy_time
 
def copy_coordinate
 
def cv_coord
 
def str2coord
 
def coord2str
 
def hgc_to_hpc
 
def hpc_to_hgc
 

Variables

tuple spice_folder = os.path.join('dir.common','spice')
 
list spice_files = ['naif0012.tls','pck00010.tpc']
 
tuple today_mid = datetime.datetime(module_common.utc_today.year,module_common.utc_today.month,module_common.utc_today.day,0)
 
tuple today_ncar = module_solar.date2carrington(module_common.utc_today)
 
tuple today_midnight = datetime.datetime(module_common.utc_today.year,module_common.utc_today.month,module_common.utc_today.day,0,0,0)
 

Function Documentation

def module_timespace.coord2str (   lonlat_tuple)
def module_timespace.copy_coordinate (   old_coord)
Copy a new Coordinate class element.

Here is the caller graph for this function:

def module_timespace.copy_time (   old_time)
Copy a new Time class element.
def module_timespace.cv_coord (   a,
  b,
  c,
  fr = None,
  to = None,
  degr = False 
)

Here is the caller graph for this function:

def module_timespace.hgc_to_hpc (   obs_coordinate_hgc,
  obstime,
  points_coordinate_hgc 
)
From Heliographic Carrington HGC coordinates, convert into
Helioprojective HPC coordinates, centered on an observer at obstime.
Input:
  * obs_coordinate_hgc  : observer HGS coordinate as module_timespace.Coordinate() object
  * obstime             : datetime.datetime object
  * points_coordinate_hgc: list of HGS coordinate to convert as module_timespace.Coordinate() objects
Output:
  * points_coordinate_hpc: list of HPC coordinate as module_timespace.Coordinate() objects

Here is the call graph for this function:

Here is the caller graph for this function:

def module_timespace.hpc_to_hgc (   obs_coordinate_hgc,
  obstime,
  points_coordinate_hpc,
  rsun_apparent 
)
From Helioprojective HPC coordinates, convert into
 Heliographic Carrington HGC coordinates, centered on an observer at obstime.
Input:
  * obs_coordinate_hgc  : observer HGC coordinate as module_timespace.Coordinate() object
  * obstime             : datetime.datetime object
  * points_coordinate_hpc: list of HPC coordinate to convert as module_timespace.Coordinate() objects
  * rsun_apparent: apprarent radius of the sun in degree 
Output:
  * points_coordinate_hgc: list of HGC coordinate as Coordinate() objects
def module_timespace.init_module_timespace ( )
Load general spice files (naifXXXX.tls,pckXXXXX.tpc).
def module_timespace.jdfloat2jdstruct (   jdfloat)
2446533.18834276 --> struct.mjd and struct.time

Here is the caller graph for this function:

def module_timespace.jdstring2jdfloat (   jdstring)
JD 2446533.18834276 --> float 2446533.18834276

Here is the caller graph for this function:

def module_timespace.jdstring2jdstruct (   jdstring)
JD 2446533.18834276 --> struct.mjd and struct.time
def module_timespace.str2coord (   lonlat_string)

Variable Documentation

list module_timespace.spice_files = ['naif0012.tls','pck00010.tpc']
tuple module_timespace.spice_folder = os.path.join('dir.common','spice')
tuple module_timespace.today_mid = datetime.datetime(module_common.utc_today.year,module_common.utc_today.month,module_common.utc_today.day,0)
tuple module_timespace.today_midnight = datetime.datetime(module_common.utc_today.year,module_common.utc_today.month,module_common.utc_today.day,0,0,0)
tuple module_timespace.today_ncar = module_solar.date2carrington(module_common.utc_today)