SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Classes | Functions
read_timeserie_stereo_impact Namespace Reference

Classes

class  StereoImpactError
 

Functions

def read_cdf
 Master routine for reading STEREO/IMPACT different formats. More...
 
def read_cdf_v0
 Read STEREO/IMPACT file format v0 and return a timeserie for magnetic field. More...
 
def read_cdf_v1
 Read STEREO/IMPACT file format v1 and return a timeserie for magnetic field. More...
 
def from_v0_to_v1
 Convert CDF_STEREOIMPACT_V0 format into CDF_STEREOIMPACT_V1 format. More...
 

Function Documentation

def read_timeserie_stereo_impact.from_v0_to_v1 (   path_v0,
  path_v1 
)

Convert CDF_STEREOIMPACT_V0 format into CDF_STEREOIMPACT_V1 format.

If a previous V1 file exist, will be deleted.

Todo:
Should change VALIDMIN and FILLVAL range because units change?
def read_timeserie_stereo_impact.read_cdf (   filepath)

Master routine for reading STEREO/IMPACT different formats.

Here is the call graph for this function:

Here is the caller graph for this function:

def read_timeserie_stereo_impact.read_cdf_v0 (   header,
  variables,
  datetimes 
)

Read STEREO/IMPACT file format v0 and return a timeserie for magnetic field.

Achtung: datetimes returned by read_cdf is the first variable containing Epoch. But for MAGBField variable it should be Epoch_mag whereas the first is Epoch.

Returns
timeserie with 4-tuple (bx,by,bz,|b|)

STEREO/IMPACT Cdf V0-format is the following:
Time variable:

  • Epoch_Mag (given by MAGBField.attributes['DEPEND_0']). Variables:
  • MAGBField: magnetic field in nT in Stereo's HelioGraphic Radial-Tangential-Normal referential (ntime x [x,y,z]) array.

Here is the caller graph for this function:

def read_timeserie_stereo_impact.read_cdf_v1 (   header,
  variables,
  datetimes 
)

Read STEREO/IMPACT file format v1 and return a timeserie for magnetic field.

Returns
timeserie with 4-tuple (bx,by,bz,|b|)

STEREO/IMPACT Cdf V1-format is the following:
Time variable:

  • Epoch_Mag Variables:
  • MAGBField_IAU_SUN: magnetic field in T in Spice IAU_SUN.

Here is the caller graph for this function: