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

Last modified: Wed Jul 4 01:15:21 2012.

# Directory Listing of Routines

# ssl_general/missions/rbsp/emfisis

- RBSP_EMFISIS_CONFIG
- RBSP_EMFISIS_CONFIG_FILEDIR
- RBSP_EMFISIS_INIT
- RBSP_EMFISIS_READ_CONFIG
  Reads the rbsp_emfisis_config file

# Routine Descriptions

## RBSP_EMFISIS_CONFIG

[Next Routine] [List of Routines]

      PRO rbsp_emfisis_config

      This procedure serves as the RBSP EMFISIS 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_EMFISIS_INIT" procedure.

      This should be the only RBSP EMFISIS 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 May 2012

     $LastChangedBy: peters $
     $LastChangedDate: 2012-05-15 11:57:32 -0700 (Tue, 15 May 2012) $
     $LastChangedRevision: 10429 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/emfisis/rbsp_emfisis_config.pro $

(See ssl_general/missions/rbsp/emfisis/rbsp_emfisis_config.pro)

## RBSP_EMFISIS_CONFIG_FILEDIR

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

    Function: rbsp_emfisis_config_filedir.pro
    Purpose: Get the applications user directory for RBSP EMFISIS data analysis software

    $LastChangedBy: peters $
    $LastChangedDate: 2012-05-15 11:57:32 -0700 (Tue, 15 May 2012) $
    $LastChangedRevision: 10429 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/emfisis/rbsp_emfisis_config_filedir.pro $

(See ssl_general/missions/rbsp/emfisis/rbsp_emfisis_config_filedir.pro)

## RBSP_EMFISIS_INIT

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

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

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

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

     !RBSP_EMFISIS.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: 2012-05-15 12:05:23 -0700 (Tue, 15 May 2012) $
    $LastChangedRevision: 10430 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/emfisis/rbsp_emfisis_init.pro $

(See ssl_general/missions/rbsp/emfisis/rbsp_emfisis_init.pro)

## RBSP_EMFISIS_READ_CONFIG

[Previous Routine] [List of Routines]

    NAME:
     rbsp_emfisis_read_config
    PURPOSE:
     Reads the rbsp_emfisis_config file
    CALLING SEQUENCE:
     cstruct = rbsp_emfisis_read_config()
    INPUT:
     none, the filename is hardcoded, 'rbsp_emfisis_config.txt',and is s put in a
     folder given by the routine rbsp_emfisis_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_emfisis
               structure
    HISTORY:
     01-jul-2011, peters
    $LastChangedBy: peters $
    $LastChangedDate: 2012-05-15 11:57:32 -0700 (Tue, 15 May 2012) $
    $LastChangedRevision: 10429 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/ssl_general/trunk/missions/rbsp/emfisis/rbsp_emfisis_read_config.pro $

(See ssl_general/missions/rbsp/emfisis/rbsp_emfisis_read_config.pro)