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

Last modified: Fri Oct 3 03:17:47 2025.

# Directory Listing of Routines

# projects/omni

- OMNI_CONFIG_FILEDIR
- OMNI_FILECONFIG
  A widget that allows the user to set some of the !omni variable. The user
- OMNI_INIT
- OMNI_LOAD_DATA
- OMNI_READ_CONFIG
  Reads the omni_config file
- OMNI_SOLARWIND_LOAD
- OMNI_UI_IMPORT_DATA
  This routine provides an example for loading data into the GUI from the load
- OMNI_UI_LOAD_DATA
  This routine is an example of how to build a load data panel and handle the
- OMNI_WRITE_CONFIG
  Writes the omni_config file

# Routine Descriptions

## OMNI_CONFIG_FILEDIR

[Next Routine] [List of Routines]

    Function: omni_config_filedir.pro
    Purpose: Get the applications user directory for OMNI data

    $LastChangedBy: aaflores $
    $LastChangedDate: 2015-06-19 19:25:49 -0700 (Fri, 19 Jun 2015) $
    $LastChangedRevision: 17928 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/omni/omni_config_filedir.pro $

(See projects/omni/omni_config_filedir.pro)

## OMNI_FILECONFIG

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

    NAME:
     omni_fileconfig

    PURPOSE:
     A widget that allows the user to set some of the !omni variable. The user
     can resettodefault, modify, and save the system variable.

    $LastChangedBy: jwl $
    $LastChangedDate: 2022-03-01 13:51:02 -0800 (Tue, 01 Mar 2022) $
    $LastChangedRevision: 30635 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/omni/omni_fileconfig.pro $

(See projects/omni/omni_fileconfig.pro)

## OMNI_INIT

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

    PROCEDURE:  omni_init
    PURPOSE:    Initializes system variables for OMNI data.  Can be called from idl_startup to set
                custom locations.

    HISTORY

    $LastChangedBy: egrimes $
    $LastChangedDate: 2020-04-03 09:58:23 -0700 (Fri, 03 Apr 2020) $
    $LastChangedRevision: 28486 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/omni/omni_init.pro $

(See projects/omni/omni_init.pro)

## OMNI_LOAD_DATA

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

    Procedure: omni_load_data

    Purpose:  Loads OMNI data

    keywords:
       TRANGE= (Optional) Time range of interest  (2 element array).
       /VERBOSE : set to output some useful info
       download_only: set this keyword to download the file only. this doesn't create tplot vars
       no_download: set this keyword to not download data and look for the file locally
       local_file_first: set this keyword to look for the local file first before
           downloading the file
       res5min: set this keyword to request only 5 minute resolution data
       hro2: download hro2 data instead of hro

       Obsolete keywords no longer used:
       datatype
       res1min
       addmaster
       data_source
       source options

    Example:
       OMNI_HRO_load

    Notes:
         Original author: Davin Larson
         Forked for SPEDAS by egrimes 4/21/2015 - moving to omni_init from istp_init

         http://omniweb.gsfc.nasa.gov/html/HROdocum.html

     $LastChangedBy: nikos $
     $LastChangedDate: 2025-04-13 15:06:29 -0700 (Sun, 13 Apr 2025) $
     $LastChangedRevision: 33256 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/omni/omni_load_data.pro $

(See projects/omni/omni_load_data.pro)

## OMNI_READ_CONFIG

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

    NAME:
     omni_read_config
    PURPOSE:
     Reads the omni_config file
    CALLING SEQUENCE:
     cstruct = omni_read_config()
    INPUT:
     none, for the purposes of this example the filename is hardcoded,
     'omni_config.txt',and is put in a folder given by the routine
     istp_config_filedir, that uses the IDL
     routine app_user_dir to create/obtain it: my linux example:
     /disks/ice/home/jimm/.idl/spedas/omni_config-4-linux
    OUTPUT:
     cstruct = a structure with the changeable fields of the !istp
               structure
     Copied from thm_read_config and tt2000_read_config lphilpott 20-jun-2012
    $LastChangedBy: nikos $
    $LastChangedDate: 2015-11-18 14:02:09 -0800 (Wed, 18 Nov 2015) $
    $LastChangedRevision: 19410 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/omni/omni_read_config.pro $

(See projects/omni/omni_read_config.pro)

## OMNI_SOLARWIND_LOAD

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

     Procedure:
      omni_solarwind_load

     Purpose:
      Load solarwind data from OMNI (Pressure and Bz).
      These quantities are used in LMN transformations.

     Keywords:
         trange:     Time range of interest (array with 2 elements, start and end time).
         prefix:     String to append to the beginning of the loaded tplot variable names.
         suffix:     String to append to the end of the loaded tplot variable names.
         hro2:       Flag. Load the newer HRO2 data set instead of HRO.
         res5min:    Flag. If set, it loads 5min data, instead of 1min data.

    $LastChangedBy: nikos $
    $LastChangedDate: 2025-04-13 15:12:57 -0700 (Sun, 13 Apr 2025) $
    $LastChangedRevision: 33257 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/omni/omni_solarwind_load.pro $

(See projects/omni/omni_solarwind_load.pro)

## OMNI_UI_IMPORT_DATA

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

    NAME:
      omni_ui_import_data

    PURPOSE:
      This routine provides an example for loading data into the GUI from the load
      data panel. The purpose of this routine is to provide a wrapper around the actual
      load data procedure (which is mission specific). This routine handles all the
      'administrative' work of validating times, checking if data exists, and adding the
      data to the GUI's loadedData object. The loadedData object loads and tracks
      all data that is available to the GUI.

    HISTORY:

    ;$LastChangedBy: egrimes $
    $LastChangedDate: 2015-04-22 15:41:37 -0700 (Wed, 22 Apr 2015) $
    $LastChangedRevision: 17398 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/omni/omni_ui_import_data.pro $

(See projects/omni/omni_ui_import_data.pro)

## OMNI_UI_LOAD_DATA

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

    NAME:
      omni_ui_load_data

    PURPOSE:
      This routine is an example of how to build a load data panel and handle the
      widget events it produces. This is a template only and creates basic widgets
      that are common to most missions.
      Each mission is different. Some widgets may need to be added to fully specify
      the data set to be loaded or some may not be needed.

    HISTORY:
    $LastChangedBy: egrimes $
    $LastChangedDate: 2015-04-16 16:11:35 -0700 (Thu, 16 Apr 2015) $
    $LastChangedRevision: 17345 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/omni/omni_ui_load_data.pro $

(See projects/omni/omni_ui_load_data.pro)

## OMNI_WRITE_CONFIG

[Previous Routine] [List of Routines]

    NAME:
     omni_write_config
    PURPOSE:
     Writes the omni_config file
    CALLING SEQUENCE:
     omni_write_config, copy=copy
    INPUT:
     none, the filename is hardcoded, 'omni_config.txt',and is  put in a
     folder given by the routine omni_config_filedir, that uses the IDL
     routine app_user_dir to create/obtain it: my linux example:
     /disks/ice/home/jimm/.idl/spedas/omni_config-4-linux
    OUTPUT:
     the file is written, and a copy of any old file is generated
    KEYWORD:
     copy = if set, the file is read in and a copy with the !stime
            appended is written out
    HISTORY:
     Copied from tt2000_write_config and thm_write_config lphilpott 20-jun-2012
    $LastChangedBy: egrimes $
    $LastChangedDate: 2015-04-22 15:48:25 -0700 (Wed, 22 Apr 2015) $
    $LastChangedRevision: 17399 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/omni/omni_write_config.pro $

(See projects/omni/omni_write_config.pro)