This page was created by the IDL library routine
mk_html_help2
.
Last modified: Wed Jul 1 14:02:38 2009.
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_5_11/idl/themis/state/thm_interpolate_state.pro $
(See themis/state/thm_interpolate_state.pro)
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. /NO_UPDATE: prevent contact to server if local file already exists. 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 coord: Can specify the coordinate system you would like data returned in. no_spin: if set, do not call thm_load_spin to load spinmodel data. Example: thm_load_state Notes: Modifications: If /GET_SUPPORT_DATA and ~/NO_SPIN, then call THM_LOAD_SPIN, W.M.Feuerstein, 4/10/2008. Delete th?_spin* TPLOT variables after calling THM_LOAD_SPIN (as long as ~/KEEP_SPIN_DATA), add KEEP_SPIN_DATA kw, include a couple of (normally commented) lines to chck consistency of spinmodel, WMF, 4/10/08. 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: jimmpc $ $LastChangedDate: 2009-05-29 15:10:52 -0700 (Fri, 29 May 2009) $ $LastChangedRevision: 6004 $ $URL $
(See themis/state/thm_load_state.pro)
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: davin-win $ $LastChangedDate: 2008-04-04 08:36:56 -0700 (Fri, 04 Apr 2008) $ $LastChangedRevision: 2619 $ $URL $
(See themis/state/thm_load_state2.pro)
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-08-21 09:11:07 -0700 (Tue, 21 Aug 2007) $ $LastChangedRevision: 1464 $ $URL $
(See themis/state/thm_load_state3.pro)
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: bckerr $ $LastChangedDate: 2007-10-18 18:57:15 -0700 (Thu, 18 Oct 2007) $ $LastChangedRevision: 1733 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/thmsoc/tags/tdas_5_11/idl/themis/state/thm_spin_phase.pro $
(See themis/state/thm_spin_phase.pro)
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_5_11/idl/themis/state/thm_sunpulse.pro $
(See themis/state/thm_sunpulse.pro)