This page was created by the IDL library routine `mk_html_help2`.

Last modified: Mon Nov 5 01:15:46 2012.

# Directory Listing of Routines

# ssl_general/missions/rbsp/efw

- RBSP_AC_HIGHPASS_RESPONSE (FUNCTION)
  Calculate the response of the one-pole 10 Hz high-pass analog filter applied
- RBSP_ADC_RESPONSE (FUNCTION)
  Calculate the responses of the RBSP DFB ADC chip.
- RBSP_ANTI_ALIASING_RESPONSE (FUNCTION)
  Calculate the frequency responses of the anti-aliasing filters for RBSP
- RBSP_DFB_RESPONSE (FUNCTION)
  Calculate DFB responses at given frequencies. Two modes are suppored. If the
- RBSP_EFW_BOOM_RESPONSE (FUNCTION)
- RBSP_EFW_CAL_FBK
- RBSP_EFW_CAL_SPEC
- [5]
- RBSP_EFW_CAL_XSPEC
- RBSP_EFW_CONFIG
- RBSP_EFW_CONFIG_FILEDIR
- RBSP_EFW_DECONVOL_INST_RESP (FUNCTION)
  De-convolve instrument responses for RBSP EFW data, including search-coil
- RBSP_EFW_GET_CAL_PARAMS (FUNCTION)
  Return RBSP EFW calibration parameters for converting L1 data to L2 data.
- RBSP_EFW_INIT
- RBSP_EFW_READ_CONFIG
  Reads the rbsp_efw_config file
- RBSP_LOAD_EFW_ESVY_DSC
- RBSP_LOAD_EFW_FIT
- RBSP_LOAD_EFW_SPEC
- RBSP_LOAD_EFW_WAVEFORM
- RBSP_LOAD_EFW_XSPEC
- RBSP_LOAD_STATE (PROCEDURE)
  Load spacecraft state.
- RBSP_MSC_RESPONSE (FUNCTION)
  Calculate the transmittance of the search-coil magnetometer.

# Routine Descriptions

## RBSP_AC_HIGHPASS_RESPONSE (FUNCTION)

[Next Routine] [List of Routines]

     NAME:
       rbsp_ac_highpass_response (function)

     PURPOSE:
       Calculate the response of the one-pole 10 Hz high-pass analog filter applied
       to RBSP AC channel field signals.

     CATEGORIES:

     CALLING SEQUENCE:
       resp = rbsp_ac_highpass_response(f)

     ARGUMENTS:
       f: (Input, required) A frequency array for which the response of the filter
           is calcuated. The frequency should be in units of Hz.

     KEYWORDS:
       None.

     COMMON BLOCKS:

     EXAMPLES:

     SEE ALSO:

     HISTORY:
       2012-08-08: Created by Jianbao Tao, SSL, UC Berkeley.

     Version:

     $LastChangedBy: jianbao_tao $
     $LastChangedDate: 2012-09-06 11:42:13 -0700 (Thu, 06 Sep 2012) $
     $LastChangedRevision: 10895 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_ac_highpass_response.pro $

(See ssl_general/missions/rbsp/efw/rbsp_ac_highpass_response.pro)

## RBSP_ADC_RESPONSE (FUNCTION)

[Previous Routine] [Next Routine] [List of Routines]

     NAME:
       rbsp_adc_response (function)

     PURPOSE:
       Calculate the responses of the RBSP DFB ADC chip.

     CATEGORIES:

     CALLING SEQUENCE:
       response = rbsp_adc_response(f, channel, delay = delay)

     ARGUMENTS:
       f: (Input, required) A floating array of frequencies at which the responses
               are calculated.
       channel: (Input, required) A string of channel names. Valid channels are:
              'V1DC',  'V2DC',  'V3DC',  'V4DC',  'V5DC',  'V6DC',
              'E12DC', 'E34DC', 'E56DC', 'E12AC', 'E34AC', 'E56AC',
              'V1AC', 'V2AC', 'V3AC', 'V4AC', 'V5AC', 'V6AC',
              'MAGU', 'MAGV', 'MAGW', 'MSCU', 'MSCV', 'MSCW'

     KEYWORDS:
       delay: (Output, optional) A variable name to hold the time delay of the
              given channel.

     COMMON BLOCKS:

     EXAMPLES:

     SEE ALSO:

     HISTORY:
       2012-08-10: Created by Jianbao Tao (JBT), SSL, UC Berkley.

     Version:

     $LastChangedBy: jianbao_tao $
     $LastChangedDate: 2012-09-06 11:42:13 -0700 (Thu, 06 Sep 2012) $
     $LastChangedRevision: 10895 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_adc_response.pro $

(See ssl_general/missions/rbsp/efw/rbsp_adc_response.pro)

## RBSP_ANTI_ALIASING_RESPONSE (FUNCTION)

[Previous Routine] [Next Routine] [List of Routines]

     NAME:
       rbsp_anti_aliasing_response (function)

     PURPOSE:
       Calculate the frequency responses of the anti-aliasing filters for RBSP
       field signals.

     CATEGORIES:

     CALLING SEQUENCE:
       response = rbsp_anti_aliasing_response(f)

     ARGUMENTS:
       f: (Input, required) A floating array of frequencies at which the responses
               are calculated.

     KEYWORDS:
       None.

     COMMON BLOCKS:

     EXAMPLES:

     SEE ALSO:

     HISTORY:
       2012-08-10: Created by Jianbao Tao (JBT), SSL, UC Berkley.

     Version:

     $LastChangedBy: jianbao_tao $
     $LastChangedDate: 2012-09-06 11:42:13 -0700 (Thu, 06 Sep 2012) $
     $LastChangedRevision: 10895 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_anti_aliasing_response.pro $

(See ssl_general/missions/rbsp/efw/rbsp_anti_aliasing_response.pro)

## RBSP_DFB_RESPONSE (FUNCTION)

[Previous Routine] [Next Routine] [List of Routines]

     NAME:
       rbsp_dfb_response (function)

     PURPOSE:
       Calculate DFB responses at given frequencies. Two modes are suppored. If the
       sample rate keyword, SAMPLE_RATE, is specified, it will calculate the
       response of the low-pass output from DFB. If the the filter bank level
       keyword, FBK_LEVEL, is specified, it will calculate the response of the
       corresponding filter bank level.

       Warning: If both keywords are set, FBK_LEVEL is ignored. If neither is set,
                a NaN will be returned.

       Filter bank level look-up table:
           Frequency range in Hz  |  Level
               8192 - 4096        |    1
               4096 - 2048        |    2
               2048 - 1024        |    3
               1024 -  512        |    4
                512 -  256        |    5
                256 -  128        |    6
                128 -   64        |    7
                 64 -   32        |    8
                 32 -   16        |    9
                 16 -    8        |    10
                  8 -    4        |    11
                  4 -    2        |    12
                  2 -    1        |    13

     CATEGORIES:

     CALLING SEQUENCE:
       result = rbsp_dfb_response(f, sample_rate = sample_rate, $
                            fbk_level = fbk_level)

     ARGUMENTS:
       f: (Input, required) A floating array of frequencies at which the responses
               are calculated.

     KEYWORDS:
       sample_rate: (Input, optional) See PURPOSE.
       fbk_level: (Input, optional) See PURPOSE.

     COMMON BLOCKS:

     EXAMPLES:

     SEE ALSO:

     HISTORY:
       2012-08-08: Created by Jianbao Tao (JBT), SSL, UC Berkley.

     Version:

     $LastChangedBy: jianbao_tao $
     $LastChangedDate: 2012-09-06 11:42:13 -0700 (Thu, 06 Sep 2012) $
     $LastChangedRevision: 10895 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_dfb_response.pro $

(See ssl_general/missions/rbsp/efw/rbsp_dfb_response.pro)

## RBSP_EFW_BOOM_RESPONSE (FUNCTION)

[Previous Routine] [Next Routine] [List of Routines]

     NAME:
       rbsp_efw_boom_response (function)

     PURPOSE:

     CATEGORIES:

     CALLING SEQUENCE:
       resp = rbsp_efw_boom_response(f, boom_type, rsheath = rsheath, $
       H_before = H_before, H_after = H_after)

     ARGUMENTS:

     KEYWORDS:

     COMMON BLOCKS:

     EXAMPLES:

     SEE ALSO:

     HISTORY:
       2012-08-12: Created by Jianbao Tao (JBT), SSL, UC Berkley.

     VERSION:
     $LastChangedBy: jianbao_tao $
     $LastChangedDate: 2012-08-14 18:00:24 -0700 (Tue, 14 Aug 2012) $
     $LastChangedRevision: 10823 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_efw_boom_response.pro $

(See ssl_general/missions/rbsp/efw/rbsp_efw_boom_response.pro)

## RBSP_EFW_CAL_FBK

[Previous Routine] [Next Routine] [List of Routines]

     NAME: rbsp_efw_cal_fbk

     PURPOSE: Calibrate RBSP filterbank data

     NOTES: This is meant to be called from rbsp_load_efw_fbk.pro

     sort out FBK source labels:
     note: Source selects for the Filter Bank:
    		0=E12DC
    		1=E34DC
    		2=E56DC
    		3=E12AC
    		4=E34AC
    		5=E56AC
    		6=SCMU
    		7=SCMV
    		8=SCMW
    		9=(V1DC+V2DC+V3DC+V4DC)/4
    		(default is 0)

     SEE ALSO:

     HISTORY:
       2012-xx-xx: Created by Aaron W Breneman, University of Minnesota

     VERSION:
     $LastChangedBy:  $
     $LastChangedDate:  $
     $LastChangedRevision:  $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_efw_cal_fbk.pro $

(See ssl_general/missions/rbsp/efw/rbsp_efw_cal_fbk.pro)

## RBSP_EFW_CAL_SPEC

[Previous Routine] [Next Routine] [List of Routines]

     NAME: rbsp_efw_cal_spec

     PURPOSE: Calibrate RBSP spectral data

     NOTES: Intended to be called from rbsp_load_efw_spec.pro

     Calibration procedure

    	subtract offset
    		new_y = (double(data.y) - offset[j])
       Compensate for 4 bit dynamic range compression
           new_y /= 16.
    	Divide the 0th bin by 4 (from weirdness doc)
    		new_y[*,0] /= 4.
    	Compensate for using Hanning window
    		new_y /= 0.375^2
    	Apply ADC conversion
    		new_y *= adc_factor^2
    	Apply channel gain
    		new_y *= gain[j]^2
    	Apply boom length to change from V to mV/m
    		new_y *=  conversion[j]   ;mV/m ^2 /Hz

     HISTORY:
       2012-xx-xx: Created by Aaron W Breneman, University of Minnesota

     VERSION:
     $LastChangedBy:  $
     $LastChangedDate:  $
     $LastChangedRevision:  $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_efw_cal_fbk.pro $

(See ssl_general/missions/rbsp/efw/rbsp_efw_cal_spec.pro)

## RBSP_EFW_CAL_XSPEC

[Previous Routine] [Next Routine] [List of Routines]

     NAME: rbsp_efw_cal_xspec

     PURPOSE: Calibrate RBSP cross-spectral data

     NOTES: meant to be called from rbsp_load_efw_xspec.pro

    	The default is that xspec0 is SCMw x E12AC
    	and xspec1 is V1AC x V2AC
    	xspec3 and xspec4 are not used at this time

    	src1 and src2 refer to the individual sources that comprise the xspec

    	Data calibration
    		subtract offset
    			src1_2 = (double(src1.y) - offset_src1)
    		Compensate for dynamic range compression
    			src1_2 /= 8.
    		Divide the 0th bin by 4 (from weirdness doc)
    			src1_2[*,0] /= 4.
    		Compensate for using Hanning window
    			src1_2 /= 0.375^2
    		Apply ADC conversion
    			src1_2 *= adc_factor^2
    		Apply channel gain
    			src1_2 *= gain_src1^2
    		Resulting data in V^2/Hz

     SEE ALSO:

     HISTORY:
       2012-xx-xx: Created by Aaron W Breneman, University of Minnesota

     VERSION:
     $LastChangedBy:  $
     $LastChangedDate:  $
     $LastChangedRevision:  $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_efw_cal_fbk.pro $

(See ssl_general/missions/rbsp/efw/rbsp_efw_cal_xspec.pro)

## RBSP_EFW_CONFIG

[Previous Routine] [Next Routine] [List of Routines]

      PRO rbsp_efw_config

      This procedure serves as the RBSP EFW configuration file.  It sets global (system)
      variables and initializes devices

      This procedure will define the location of data files and the data server.
      This procedure is intended to be called from within the "RBSP_EFW_INIT" procedure.

      This should be the only RBSP EFW file that requires modification for use in different
      locations.

      There is no need to modify this file if:
         - Your computer is an SSL UNIX machine that mounts "/disks/data/"   (i.e. ALL Linux and Solaris machines at SSL)
         - You use a portable computer that will be caching files on a local hard drive.

      Settings  in this file will be overridden by settings in the environment.
      (see setup_themis or setup_themis_bash for examples of setting environment
      variables on UNIX-like systems.  The environment can also be set on Windows
      systems.)

      KEYWORDS
         no_color_setup: do not set colors if already taken care of

      Author:  Peter Schroeder Jul 2011

     $LastChangedBy: peters $
     $LastChangedDate: 2012-02-09 14:17:52 -0800 (Thu, 09 Feb 2012) $
     $LastChangedRevision: 9704 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_efw_config.pro $

(See ssl_general/missions/rbsp/efw/rbsp_efw_config.pro)

## RBSP_EFW_CONFIG_FILEDIR

[Previous Routine] [Next Routine] [List of Routines]

    Function: rbsp_efw_config_filedir.pro
    Purpose: Get the applications user directory for RBSP EFW data analysis software

    $LastChangedBy: peters $
    $LastChangedDate: 2011-12-28 10:26:47 -0800 (Wed, 28 Dec 2011) $
    $LastChangedRevision: 9477 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_efw_config_filedir.pro $

(See ssl_general/missions/rbsp/efw/rbsp_efw_config_filedir.pro)

## RBSP_EFW_DECONVOL_INST_RESP (FUNCTION)

[Previous Routine] [Next Routine] [List of Routines]

     NAME:
       rbsp_efw_deconvol_inst_resp (function)

     PURPOSE:
       De-convolve instrument responses for RBSP EFW data, including search-coil
       data that are channeled into EFW. It will return a tplot data structure.

     CATEGORIES:

     CALLING SEQUENCE:
       result = rbsp_efw_deconvol_inst_resp(data, probe, datatype)

     ARGUMENTS:
       data: (Input, required) A tplot data structure, i.e., a structure with the
             form {x:time_array, y:[nt, 3]}.

       probe: (Input, required) RBSP probe name. It should be 'a' or 'b'.

       datatype: (Input, required) Data type name. Valid names are:
             'eb2', 'mscb1', 'mscb2'.

     KEYWORDS:
       None.

     COMMON BLOCKS:

     EXAMPLES:

     SEE ALSO:

     HISTORY:
       2012-08-23: Created by Jianbao Tao (JBT), SSL, UC Berkley.

     Version:

     $LastChangedBy: jianbao_tao $
     $LastChangedDate: 2012-09-06 17:43:01 -0700 (Thu, 06 Sep 2012) $
     $LastChangedRevision: 10899 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_efw_deconvol_inst_resp.pro $

(See ssl_general/missions/rbsp/efw/rbsp_efw_deconvol_inst_resp.pro)

## RBSP_EFW_GET_CAL_PARAMS (FUNCTION)

[Previous Routine] [Next Routine] [List of Routines]

     NAME:
       rbsp_efw_get_cal_params (function)

     PURPOSE:
       Return RBSP EFW calibration parameters for converting L1 data to L2 data.

     CATEGORIES:

     CALLING SEQUENCE:
       cp = rbsp_efw_get_cal_params(time)

     ARGUMENTS:
       time: (Input, required) A floating time scalar for determining
             time-dependent calibration parameters.

     KEYWORDS:
       None.

     COMMON BLOCKS:

     EXAMPLES:

     SEE ALSO:

     HISTORY:
       2012-08-07: Created by Jianbao Tao (JBT), SSL, UC Berkley.

     VERSION:
     $LastChangedBy: jianbao_tao $
     $LastChangedDate: 2012-11-02 16:35:10 -0700 (Fri, 02 Nov 2012) $
     $LastChangedRevision: 11172 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_efw_get_cal_params.pro $

(See ssl_general/missions/rbsp/efw/rbsp_efw_get_cal_params.pro)

## RBSP_EFW_INIT

[Previous Routine] [Next Routine] [List of Routines]

    PROCEDURE:  rbsp_efw_init
    PURPOSE:    Initializes system variables for RBSP EFW.  Can be called from idl_startup to set
                custom locations.

     The system variable !RBSP_EFW is defined here.  The elements of this structure are explained below:

     !RBSP_EFW.LOCAL_DATA_DIR    This is the root location for all RBSP EFW data files.
                      The RBSP EFW software expects all data files to reside in specific subdirectories relative
                      to this root directory.;

     !RBSP_EFW.REMOTE_DATA_DIR   This is the URL of the server that can provide the data files.
                      (default is: "http://themis.ssl.berkeley.edu/data/themis/")
                      if the software does not find a needed file in LOCAL_DATA_DIR,
                      then it will attempt to download the data from the URL and REMOTE_DATA_DIR is defined,
                      the software will attempt to download the file from REMOTE_DATA_DIR, place it in LOCAL_DATA_DIR
                      with the same relative pathname, and then continue processing.
                      (NOT YET IMPLEMENTED)

    KEYWORDS:
       RESET:           Reset !rbsp to values in environment (or values in keywords).
       LOCAL_DATA_DIR:  use given value for local_data_dir, rather than environment. Only works on
                        initial call or reset.
       REMOTE_DATA_DIR: Use given value for remote_data_dir, rather than env.  Only works on inital
                        call or reset.
       NO_COLOR_SETUP   do not set colors if already taken care of

     Typical examples:

              Desktop UNIX/LINUX computer located at SSL
       LOCAL_DATA_DIR  = '/disks/data/rbsp/'               ; This master directory is read only.
       REMOTE_DATA_DIR = ''                                  ; Should be empty string. (/disks/data/rbsp and server are the same)

              Desktop WINDOWS computer located at SSL
       LOCAL_DATA_DIR  = '\\justice\data\rbsp\'            ; Justice is a samba server (physically the same as /disk/data/rbsp)
       REMOTE_DATA_DIR = ''

              laptop WINDOWS computer located far from a data server, but with internet connection.
       LOCAL_DATA_DIR  = 'C;\data\rbsp\'                              ; Local (portable) directory on laptop
       REMOTE_DATA_DIR = 'http://themis.ssl.berkeley.edu/data/themis/'    ;  URL used to download data to LOCAL_DATA_DIR

              MacOS computer located away from SSL without a nearby data server
       LOCAL_DATA_DIR  = '/data/rbsp/'                              ; Local (portable) directory on laptop
       REMOTE_DATA_DIR = 'http://themis.ssl.berkeley.edu/data/themis/'    ;  URL used to download data to LOCAL_DATA_DIR

       Note: If automatic downloads are used. (i.e. REMOTE_DATA_DIR is not an empty string) the user must ensure that
       LOCAL_DATA_DIR is writeable.

       Note to WINDOWS users: the WINDOWS version of IDL accepts both the '\' and '/' character as the directory
       separation character. The converse is not true.

    HISTORY
     Written by Peter Schroeder July 2011

    $LastChangedBy: peters $
    $LastChangedDate: 2011-12-28 10:26:47 -0800 (Wed, 28 Dec 2011) $
    $LastChangedRevision: 9477 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_efw_init.pro $

(See ssl_general/missions/rbsp/efw/rbsp_efw_init.pro)

## RBSP_EFW_READ_CONFIG

[Previous Routine] [Next Routine] [List of Routines]

    NAME:
     rbsp_efw_read_config
    PURPOSE:
     Reads the rbsp_efw_config file
    CALLING SEQUENCE:
     cstruct = rbsp_efw_read_config()
    INPUT:
     none, the filename is hardcoded, 'rbsp_efw_config.txt',and is s put in a
     folder given by the routine rbsp_efw_config_filedir, that uses the IDL
     routine app_user_dir to create/obtain it
    OUTPUT:
     cstruct = a structure with the changeable fields of the !rbsp_efw
               structure
    HISTORY:
     01-jul-2011, peters
    $LastChangedBy: peters $
    $LastChangedDate: 2011-12-28 10:26:47 -0800 (Wed, 28 Dec 2011) $
    $LastChangedRevision: 9477 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_efw_read_config.pro $

(See ssl_general/missions/rbsp/efw/rbsp_efw_read_config.pro)

## RBSP_LOAD_EFW_ESVY_DSC

[Previous Routine] [Next Routine] [List of Routines]

     NAME:	RBSP_LOAD_EFW_ESVY_DSC

     NOTES:
    	0) This routine is obsolete.  See rbsp_despin and rbsp_cotrans

     VERSION:
       $LastChangedBy: kersten $
       $LastChangedDate: 2012-11-04 20:43:23 -0800 (Sun, 04 Nov 2012) $
       $LastChangedRevision: 11175 $
       $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_load_efw_esvy_dsc.pro $

(See ssl_general/missions/rbsp/efw/rbsp_load_efw_esvy_dsc.pro)

## RBSP_LOAD_EFW_FIT

[Previous Routine] [Next Routine] [List of Routines]

    Procedure: RBSP_LOAD_EFW_FIT

    Purpose:  Loads RBSP EFW FIT 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'
      varformat=string
      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
      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. (NOT IMPLEMENTED YET)
      /INTEGRATION: If set, load data from integration.
      /QA: If set, load data from l1_qa testing directory.
      /MSIM: If set, load data from mission simulations.
      /ETU: If set, load data from the ETU.
      /DOWNLOADONLY: download file but don't read it. (NOT IMPLEMENTED YET)
      /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
      type:  set to 'calibrated' to automatically convert data into physical units
    Example:
       rbsp_load_efw_fit,/get_suppport_data,probe=['a', 'b']
    Notes:
     1. Written by Peter Schroeder, February 2012

     $LastChangedBy: jianbao_tao $
     $LastChangedDate: 2012-11-02 16:35:10 -0700 (Fri, 02 Nov 2012) $
     $LastChangedRevision: 11172 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_load_efw_fit.pro $

(See ssl_general/missions/rbsp/efw/rbsp_load_efw_fit.pro)

## RBSP_LOAD_EFW_SPEC

[Previous Routine] [Next Routine] [List of Routines]

    Procedure: RBSP_LOAD_EFW_SPEC

    Purpose:  Loads RBSP EFW SPEC 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'
      varformat=string
      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
      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. (NOT IMPLEMENTED YET)
      /DOWNLOADONLY: download file but don't read it. (NOT IMPLEMENTED YET)
      /QA: If set, load data from 11_qa testing directory.
      /INTEGRATION: If set, load data from integration.
      /MSIM: If set, load data from mission simulations.
      /ETU: If set, load data from the ETU.
      /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
      type:  set to 'calibrated' to automatically convert data into physical units
    Example:
       rbsp_load_efw_spec,/get_suppport_data,probe=['a', 'b']
    Notes:
     1. Written by Peter Schroeder, February 2012

     $LastChangedBy: jianbao_tao $
     $LastChangedDate: 2012-11-02 16:35:10 -0700 (Fri, 02 Nov 2012) $
     $LastChangedRevision: 11172 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_load_efw_spec.pro $

(See ssl_general/missions/rbsp/efw/rbsp_load_efw_spec.pro)

## RBSP_LOAD_EFW_WAVEFORM

[Previous Routine] [Next Routine] [List of Routines]

    Procedure: RBSP_LOAD_EFW_WAVEFORM

    Purpose:  Loads RBSP EFW Waveform 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'
      varformat=strin
      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
      DATATYPE:    Input, string.  Default setting is to calibrate all raw quantites and also produce all _0 and _dot0 quantities.  Use DATATYPE
                           kw to narrow the data products.  Wildcards and glob-style patterns accepted (e.g., ef?, *_dot0).
      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. (NOT IMPLEMENTED YET)
      /DOWNLOADONLY: download file but don't read it. (NOT IMPLEMENTED YET)
      /QA: If set, load data from l1_qa testing directory.
      /INTEGRATION: If set, load data from integration.
      /MSIM: If set, load data from mission simulations.
      /ETU: If set, load data from the ETU.
      /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
      type:  set to 'calibrated' to automatically convert data into physical units
    Example:
       rbsp_load_efw_waveform,/get_suppport_data,probe=['a', 'b']
    Notes:
     1. Written by Peter Schroeder, February 2012

     $LastChangedBy: peters $
     $LastChangedDate: 2012-10-24 10:14:09 -0700 (Wed, 24 Oct 2012) $
     $LastChangedRevision: 11103 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_load_efw_waveform.pro $

(See ssl_general/missions/rbsp/efw/rbsp_load_efw_waveform.pro)

## RBSP_LOAD_EFW_XSPEC

[Previous Routine] [Next Routine] [List of Routines]

    Procedure: RBSP_LOAD_EFW_XSPEC

    Purpose:  Loads RBSP EFW XSPEC 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'
      varformat=string
      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
      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. (NOT IMPLEMENTED YET)
      /DOWNLOADONLY: download file but don't read it. (NOT IMPLEMENTED YET)
      /QA: If set, load data from l1_qa testing directory.
      /INTEGRATION: If set, load data from integration.
      /MSIM: If set, load data from mission simulations.
      /ETU: If set, load data from the ETU.
      /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
      type:  set to 'calibrated' to automatically convert data into physical units
    Example:
       rbsp_load_efw_xspec,/get_suppport_data,probe=['a', 'b']
    Notes:
     1. Written by Peter Schroeder, February 2012

     $LastChangedBy: jianbao_tao $
     $LastChangedDate: 2012-11-02 16:35:10 -0700 (Fri, 02 Nov 2012) $
     $LastChangedRevision: 11172 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_load_efw_xspec.pro $

(See ssl_general/missions/rbsp/efw/rbsp_load_efw_xspec.pro)

## RBSP_LOAD_STATE (PROCEDURE)

[Previous Routine] [Next Routine] [List of Routines]

     NAME:
       rbsp_load_state (procedure)

     PURPOSE:
       Load spacecraft state.

       As of 10/29/12, valid data types are:
       'pos'
       'vel'
       'spinper'
       'spinphase'
       'mat_dsc'
       where 'pos' and 'vel' are in GSE coordinates, and
             'mat_dsc': rotation matrix in the form [N, 3, 3] between DSC and GSE
             'mat_xyz': rotation matrix in the form [N, 3, 3] between XYZ and GSE

       MATRIX USE EXAMPLES IN IDL
           Suppose mat_dsc is stored in 'rbsp_mat_dsc', and 'rbsp_vector_dsc' is a
           vector in vector in DSC with array form [N,3]. Then the following code
           will rotate 'rbsp_vector_dsc' into a vector in GSE, say,
           'rbsp_vector_gse':
               tvector_rotate, 'rbsp_mat_dsc', 'rbsp_vector_dsc', $
                 newname = 'rbsp_vector_gse'

       If the get_support_data keyword is set, eclipse data will be loaded.

     CATEGORIES:

     CALLING SEQUENCE:
       rbsp_load_state, probe = probe, datatype = datatype, dt = dt, $
         no_update = no_update, klist = klist, unload = unload, $
         spice_only = spice_only, get_support_data = get_support_data

     ARGUMENTS:

     KEYWORDS:
       probe: (In, optional) RBSP spacecraft names, either 'a', or 'b', or
             ['a', 'b']. The default is ['a', 'b']
       datatype: (In, optional) See above.
       dt: (In, optional) Cadence in seconds of the loaded state data.
             Default = 5.
       /no_update: If set, will not check if the remote server has newer SPICE
             kernels, and will use the local SPICE kernels.
       klist: A named variable to return the loaded local spice kernels.
       /unload: If set, will not unload the loaded SPICE kernels.
             !!!Use this with caution.!!!
       /spice_only: If set, will only load SPICE kernels, and will not load regular
             tplot state data.
       /get_support_data: See above.

     COMMON BLOCKS:

     EXAMPLES:
       sc = 'a'
       timespan, '2012-10-16'
       rbsp_load_state, probe = sc

     SEE ALSO:

     HISTORY:
       2012-10-29: Created by Jianbao Tao (JBT), SSL, UC Berkley.
       2012-11-02: Initial release to TDAS. JBT, SSL/UCB.

     VERSION:
     $LastChangedBy: jianbao_tao $
     $LastChangedDate: 2012-11-02 16:42:08 -0700 (Fri, 02 Nov 2012) $
     $LastChangedRevision: 11173 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_load_state.pro $

(See ssl_general/missions/rbsp/efw/rbsp_load_state.pro)

## RBSP_MSC_RESPONSE (FUNCTION)

[Previous Routine] [Next Routine] [List of Routines]

     NAME:
       rbsp_msc_response (function)

     PURPOSE:
       Calculate the transmittance of the search-coil magnetometer.

     CATEGORIES:

     CALLING SEQUENCE:
       response = rbsp_msc_response(f, probe, component)

     ARGUMENTS:
       f: (Input, required) A floating array of frequencies at which the responses
               are calculated.

       probe: (Input, required) RBSP probe name. It should be 'a' or 'b'.

       component: (Input, required) Component name. Valid names are:
             'Bu', 'Bv', 'Bw'.

     KEYWORDS:
       None.

     COMMON BLOCKS:

     EXAMPLES:

     SEE ALSO:

     HISTORY:
       2012-09-04: Created by Jianbao Tao (JBT), SSL, UC Berkley.

     Version:

     $LastChangedBy: jianbao_tao $
     $LastChangedDate: 2012-09-06 17:43:01 -0700 (Thu, 06 Sep 2012) $
     $LastChangedRevision: 10899 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_msc_response.pro $

(See ssl_general/missions/rbsp/efw/rbsp_msc_response.pro)

## [5]

[Previous Routine] [List of Routines]

     NAME:

     PURPOSE:

     CATEGORIES:

     CALLING SEQUENCE:

     ARGUMENTS:

     KEYWORDS:

     COMMON BLOCKS:

     EXAMPLES:

     SEE ALSO:

     HISTORY:
       2012-08-07: Created by Jianbao Tao (JBT), SSL, UC Berkley.

     VERSION:
     $LastChangedBy: jianbao_tao $
     $LastChangedDate: 2012-09-17 10:08:00 -0700 (Mon, 17 Sep 2012) $
     $LastChangedRevision: 10920 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/efw/rbsp_efw_cal_waveform.pro $

(See ssl_general/missions/rbsp/efw/rbsp_efw_cal_waveform.pro)