This page was created by the IDL library routine mk_html_help2.

Last modified: Thu Sep 27 14:05:48 2007.


Directory Listing of Routines


Routine Descriptions

THM_COTRANS

[Next Routine] [List of Routines]
Procedure: thm_cotrans
Purpose:   Transform between various THEMIS  and geophysical coordinate systems
keywords:
  probe = Probe name. The default is 'all', i.e., transform data for all
          available probes.
          This can be an array of strings, e.g., ['a', 'b'] or a
          single string delimited by spaces, e.g., 'a b'
  datatype = The type of data to be transformed, can take any of the values
          allowed for datatype for the various thm_load routines. You
          can use wildcards like ? and [lh].
          'all' is not accepted. You can use '*', but you may get unexpected
          results if you are using suffixes.
  in_coord = 'spg', 'ssl', 'dsl', 'gse', 'gsm', or 'gei'
          coordinate system of input.
          This keyword is optional if the coord_sys attribute
          is present for the tplot variable, and if present, it must match
          the value of that attribute.  See cotrans_set_coord, cotrans_get_coord
  out_coord = 'spg', 'ssl', 'dsl', 'gse', 'gsm', or 'gei'
           coordinate system of output.
  in_suffix = optional suffix needed to generate the input data quantity name:
           'th'+probe+'_'datatype+in_suffix
  out_suffix = optional suffix to add to output data quantity name.  If
           in_suffix is present, then in_suffix will be replaced by out_suffix
           in the output data quantity name.
 valid_names:return valid coordinate system names in named varibles supplied to
           in_coord and/or out_coord keywords.
Optional Input Parameters:
 in_name  Name(s) of input tplot varabiable(s) (or glob patern) (space-separated;          string list or array of strings.)
 out_name Name(s) of output tplot variable(s).  glob patterns not accepted.
          Number of output names must match number of input names (after glob
          expansion of input names).  (single string, or array of strings.)

Example:
  thm_cotrans, probe='a', datatype='fgl', out_coord='gsm', out_suffix='_gsm'

 $LastChangedBy: kramer $
 $LastChangedDate: 2007-07-18 13:03:55 -0700 (Wed, 18 Jul 2007) $
 $LastChangedRevision: 1152 $
 $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/thmsoc/tags/tdas_2_02/idl/themis/state/thm_cotrans.pro $

(See themis/state/thm_cotrans.pro)


THM_INTERPOLATE_STATE

[Previous Routine] [Next Routine] [List of Routines]
function: thm_interpolate_state

Purpose: interpolates the low res STATE file

         all variables are structures as produced by get_data

keywords:


Examples:
      tha_spinper_highres=thm_interpolate_state(thx_xxx_in=thx_xxx_in,thx_spinper=thx_spinper) --> linear interpolation
      tha_spinphase_highres=thm_interpolate_state(thx_xxx_in=thx_xxx_in,thx_spinper=thx_spinper,thx_spinphase=thx_spinphase) --> phase constructed according to the nearest neighbor spin phase, spin period
      tha_spinras_highres=thm_interpolate_state(thx_xxx_in=thx_xxx_in,thx_spinras=thx_spinras) --> linear interpolation
      tha_spindec_highres=thm_interpolate_state(thx_xxx_in=thx_xxx_in,thx_spindec=thx_spindec) --> linear interpolation
      tha_spinalpha_highres=thm_interpolate_state(thx_xxx_in=thx_xxx_in,thx_spinalpha=thx_spinalpha) --> linear interpolation
      tha_spinbeta_highres=thm_interpolate_state(thx_xxx_in=thx_xxx_in,thx_spinbeta=thx_spinbeta) --> linear interpolation
      tha_pos_highres=thm_interpolate_state(thx_xxx_in=thx_xxx_in,thx_pos=thx_pos) --> spline interpolation
      tha_vel_highres=thm_interpolate_state(thx_xxx_in=thx_xxx_in,thx_vel=thx_vel) --> spline interpolation

Notes: under construction!!

Written by Hannes Schwarzl
 $LastChangedBy: kenb-mac $
 $LastChangedDate: 2007-05-29 15:08:39 -0700 (Tue, 29 May 2007) $
 $LastChangedRevision: 712 $
 $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/thmsoc/tags/tdas_2_02/idl/themis/state/thm_interpolate_state.pro $

(See themis/state/thm_interpolate_state.pro)


THM_LOAD_STATE

[Previous Routine] [Next Routine] [List of Routines]
Procedure: THM_LOAD_STATE

Purpose:  Loads THEMIS STATE (orbit and attitude) data

;keywords:
  probe = Probe name. The default is 'all', i.e., load all available probes.
          This can be an array of strings, e.g., ['a', 'b'] or a
          single string delimited by spaces, e.g., 'a b'
  datatype = The type of data to be loaded, can be an array of strings 
          or single string separate by spaces.  The default is 'pos vel'
  TRANGE= (Optional) Time range of interest  (2 element array), if
          this is not set, the default is to prompt the user. Note
          that if the input time range is not a full day, a full
          day's data is loaded
  version = the version of the state file, one of 'v00', 'v01', 'v02', 'v03'.
            defaults to 'v01'
  level = the level of the data, the default is 'l1', or level-1
          data. A string (e.g., 'l2') or an integer can be used. 'all'
          can be passed in also, to get all levels.
  suffix= suffix to add to tplot variable names.  Note: this will get added
          support_data variables as well as regular data variables.
  CDF_DATA: named variable in which to return cdf data structure: only works
          for a single spacecraft and datafile name.
  VARNAMES: names of variables to load from cdf: default is all.
  /GET_SUPPORT_DATA: load support_data variables as well as data variables 
                      into tplot variables.
  /DOWNLOADONLY: download file but don't read it.
  /no_download: use only files which are online locally.
  relpathnames_all: named variable in which to return all files that are
          required for specified timespan, probe, datatype, and level.
          If present, no files will be downloaded, and no data will be loaded.
  /valid_names, if set, then this routine will return the valid probe, datatype
          level, and version options in named variables supplied as 
          arguments to the corresponding keywords.
  files   named varible for output of pathnames of local files.
  /VERBOSE  set to output some useful info
Example:
   thm_load_state
Notes:

 coordinate systems of returned variables:
 *_pos : gei
 *_vel : gei
 *_ras : gei
 *_dec : gei
 *_alpha : spg
 *_beta : spg
 *_spinper : none(listed in dlimits as unknown)
 *_spinphase : none(listed in dlimits as unknown)
 *_roi : none(listed in dlimits as unknown)
 *_man : none(listed in dlimits as unknown)

 If you modify the d_names constant make sure to make the
 corresponding changes to the c_names constant

 $LastChangedBy: kenb-mac $
 $LastChangedDate: 2007-08-02 12:51:41 -0700 (Thu, 02 Aug 2007) $
 $LastChangedRevision: 1322 $
 $URL $

(See themis/state/thm_load_state.pro)


THM_LOAD_STATE2

[Previous Routine] [Next Routine] [List of Routines]
Procedure: THM_LOAD_STATE2

Purpose:  Loads THEMIS STATE (orbit and attitude) data

;keywords:
  probe = Probe name. The default is 'all', i.e., load all available probes.
          This can be an array of strings, e.g., ['a', 'b'] or a
          single string delimited by spaces, e.g., 'a b'
  datatype = The type of data to be loaded, can be an array of strings
          or single string separate by spaces.  The default is 'all'
  TRANGE= (Optional) Time range of interest  (2 element array), if
          this is not set, the default is to prompt the user. Note
          that if the input time range is not a full day, a full
          day's data is loaded
  version = the version of the state file, one of 'v01', 'v02', 'v03', 'v04'.
            defaults to 'v01'
  level = the level of the data, the default is 'l1', or level-1
          data. A string (e.g., 'l2') or an integer can be used. 'all'
          can be passed in also, to get all levels.
  CDF_DATA: named variable in which to return cdf data structure: only works
          for a single spacecraft and datafile name.
  VARNAMES: names of variables to load from cdf: default is all.
  /GET_SUPPORT_DATA: load support_data variables as well as data variables
                      into tplot variables.
  /DOWNLOADONLY: download file but don't read it.
  /valid_names, if set, then this routine will return the valid probe, datatype
          and/or level options in named variables supplied as
          arguments to the corresponding keywords.
  files   named varible for output of pathnames of local files.
  /VERBOSE  set to output some useful info
Example:
   thm_load_state
Notes:

 $LastChangedBy: kenb-mac $
 $LastChangedDate: 2007-07-03 09:10:02 -0700 (Tue, 03 Jul 2007) $
 $LastChangedRevision: 987 $
 $URL $

(See themis/state/thm_load_state2.pro)


THM_SPIN_PHASE

[Previous Routine] [Next Routine] [List of Routines]
NAME:
  thm_spin_phase
Purpose: 
  Use sunpulse data produced by thm_sunpulse to get spinphase at abitrary times
Input Parameters:
      time_dat: double precision array: times of data points at which
                interpolates are desired.
Output Parameters:
   spinpha_int: interpolated spin phase
Keywords:
         Probe: a single probe name. e.g. 'a'
        suffix: suffix on tplot variable (thx_state_sunpulse[_suffix])

Optional Input Parameters (If not present, then state data will be 
   loaded from standard state tplot variables, using probe keyword)
      sunpulse: double precision array: times of sunpulses
  sunp_spinper: spin period at each sunpulse time

K. Bromund, SPSystems/NASA/GSFC, May 2007
$LastChangedBy: kenb-mac $
$LastChangedDate: 2007-07-16 19:19:46 -0700 (Mon, 16 Jul 2007) $
$LastChangedRevision: 1126 $ 
$URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/thmsoc/tags/tdas_2_02/idl/themis/state/thm_spin_phase.pro $

(See themis/state/thm_spin_phase.pro)


THM_SUNPULSE

[Previous Routine] [List of Routines]
NAME:
  thm_sunpulse
Purpose: 
  Interpolate spin phase to have same time resolution as time_dat
Keyword:
         probe: string indicating probe.  Array of strings, or a string
                like 'a b'.  Not used if positional parameters are present.
        suffix: suffix to add to default tplot name in which to store sunpulse
                data: thx_state_sunpulse (x = probe letter designation)
                This suffix is expected on the names of the state data inputs.
Optional Inputs/Output parameters:
(if not present, then standard state tplot variable names will be used for i/o)
  Input Parameters:
    time_state: double precision array: times of data from state file
       spinpha: spin phase from state file
       spinper: spin period from state file
  Output Parameters:
      sunpulse: sunpulse times (times of zero spin phase)
  sunp_spinper: spin period at time of each sunpulse.

Keywords:
 sunpulse_name: string.  If present, store sunpulse/spinperiod in tplot 
                variable with this name.  Has no effect if probe keyword 
                is provided.

Notes:

 Written by K. Bromund, SPSystems/NASA/GSFC, May 2007
$LastChangedBy: kenb-mac $
$LastChangedDate: 2007-05-29 15:08:39 -0700 (Tue, 29 May 2007) $
$LastChangedRevision: 712 $ 
$URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/thmsoc/tags/tdas_2_02/idl/themis/state/thm_sunpulse.pro $

(See themis/state/thm_sunpulse.pro)