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

Last modified: Fri Nov 7 18:17:52 2025.

# Directory Listing of Routines

# projects/mms/common/tests

- FLATTEN_SPECTRA_UT__DEFINE
- MMS_CDF2TPLOT_UT__DEFINE
- MMS_COTRANS_UT__DEFINE
- MMS_CURLOMETER_UT__DEFINE
- MMS_EVENT_SEARCH_UT__DEFINE
- MMS_FILE_FILTER_UT__DEFINE
- MMS_FLIPBOOKIFY_UT__DEFINE
- MMS_FORMATION_PLOT_UT__DEFINE
- MMS_INIT_UT__DEFINE
- MMS_LOAD_ASPOC_UT__DEFINE
- MMS_LOAD_BRST_SEGMENTS_UT__DEFINE
- MMS_LOAD_COVERAGE_UT__DEFINE
- MMS_LOAD_DATA_UT__DEFINE
- MMS_LOAD_DSP_UT__DEFINE
- MMS_LOAD_EDI_UT__DEFINE
- MMS_LOAD_EDP_UT__DEFINE
- MMS_LOAD_EIS_UT__DEFINE
- MMS_LOAD_FAST_SEGMENTS_UT__DEFINE
- MMS_LOAD_FEEPS_UT__DEFINE
- MMS_LOAD_FGM_UT__DEFINE
- MMS_LOAD_FPI_UT__DEFINE
- MMS_LOAD_FSM_UT__DEFINE
- MMS_LOAD_HPCA_UT__DEFINE
- MMS_LOAD_MEC_UT__DEFINE
- MMS_LOAD_SCM_UT__DEFINE
- MMS_LOAD_STATE_UT__DEFINE
- MMS_LOCAL_DATA_CLTESTSCRIPT
- MMS_PART_GETSPEC_UT__DEFINE
- MMS_PART_PRODUCTS_UT__DEFINE[1]
- MMS_PART_PRODUCTS_UT__DEFINE[2]
- MMS_PART_PRODUCTS_UT__DEFINE[2]
- MMS_PART_PRODUCTS_UT__DEFINE[3]
- MMS_PART_PRODUCTS_UT__DEFINE[4]
- MMS_PART_PRODUCTS_UT__DEFINE[5]
- MMS_PART_PRODUCTS_UT__DEFINE[6]
- MMS_PART_PRODUCTS_UT__DEFINE[7]
- MMS_PART_PRODUCTS_UT__DEFINE[8]
- MMS_PART_PRODUCTS_UT__DEFINE[9]
- MMS_PART_PRODUCTS_UT__DEFINE[10]
- MMS_PART_PRODUCTS_UT__DEFINE[11]
- MMS_PART_PRODUCTS_UT__DEFINE[12]
- MMS_PART_PRODUCTS_UT__DEFINE[13]
- MMS_PART_PRODUCTS_UT__DEFINE[14]
- MMS_PART_PRODUCTS_UT__DEFINE[15]
- MMS_PART_PRODUCTS_UT__DEFINE[16]
- MMS_PART_SLICE2D_UT__DEFINE
- MMS_PGS_REGRESSIONS_UT__DEFINE
- MMS_PGS_VALIDATION_UT__DEFINE
- MMS_PYTHON_VALIDATION_UT__DEFINE
- MMS_RUN_ALL_TESTS
- MMS_STATE_LOAD_CLTESTSUITE
- SPD_TESTS_WITH_IMG_UT__DEFINE
- TPLOT_STUFF_UT__DEFINE

# Routine Descriptions

## FLATTEN_SPECTRA_UT__DEFINE

[Next Routine] [List of Routines]

     Unit tests for flatten_spectra

     To run:
         IDL> mgunit, 'flatten_spectra_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2021-08-19 11:49:54 -0700 (Thu, 19 Aug 2021) $
     $LastChangedRevision: 30224 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/flatten_spectra_ut__define.pro $

(See projects/mms/common/tests/flatten_spectra_ut__define.pro)

## MMS_CDF2TPLOT_UT__DEFINE

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

     Unit tests for mms_cdf2tplot

     To run:
         IDL> mgunit, 'mms_cdf2tplot_ut'

     NOTES:
         valid times for unit tests involving /center keyword
         taken from v2.1.0 of the FPI CDFs, 3/10/2016

     $LastChangedBy: egrimes $
     $LastChangedDate: 2019-04-24 10:26:16 -0700 (Wed, 24 Apr 2019) $
     $LastChangedRevision: 27079 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_cdf2tplot_ut__define.pro $

(See projects/mms/common/tests/mms_cdf2tplot_ut__define.pro)

## MMS_COTRANS_UT__DEFINE

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

     Unit tests for mms_cotrans and mms_qcotrans

     To run:
         IDL> mgunit, 'mms_cotrans_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2020-07-15 13:37:49 -0700 (Wed, 15 Jul 2020) $
     $LastChangedRevision: 28892 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_cotrans_ut__define.pro $

(See projects/mms/common/tests/mms_cotrans_ut__define.pro)

## MMS_CURLOMETER_UT__DEFINE

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

     Unit tests for MMS curlometer routines

     To run:
         IDL> mgunit, 'mms_curlometer_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2017-10-09 09:19:08 -0700 (Mon, 09 Oct 2017) $
     $LastChangedRevision: 24128 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_curlometer_ut__define.pro $

(See projects/mms/common/tests/mms_curlometer_ut__define.pro)

## MMS_EVENT_SEARCH_UT__DEFINE

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

     Unit tests for mms_event_search

     $LastChangedBy: egrimes $
     $LastChangedDate: 2019-04-29 11:43:09 -0700 (Mon, 29 Apr 2019) $
     $LastChangedRevision: 27129 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_event_search_ut__define.pro $

(See projects/mms/common/tests/mms_event_search_ut__define.pro)

## MMS_FILE_FILTER_UT__DEFINE

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

     Unit tests for unh_mms_file_filter

     To run:
         IDL> mgunit, 'mms_file_filter_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2017-10-09 09:19:08 -0700 (Mon, 09 Oct 2017) $
     $LastChangedRevision: 24128 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_file_filter_ut__define.pro $

(See projects/mms/common/tests/mms_file_filter_ut__define.pro)

## MMS_FLIPBOOKIFY_UT__DEFINE

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

     Unit tests for mms_flipbookify

     NOTES:
         - Unlike most of our other unit/regression tests, this suite creates plots and videos that
           need to be checked for formatting issues (~/flipbook/ directory)

     To run:
         IDL> mgunit, 'mms_flipbookify_ut'

     $LastChangedBy: jwl $
     $LastChangedDate: 2023-11-09 10:31:32 -0800 (Thu, 09 Nov 2023) $
     $LastChangedRevision: 32226 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_flipbookify_ut__define.pro $

(See projects/mms/common/tests/mms_flipbookify_ut__define.pro)

## MMS_FORMATION_PLOT_UT__DEFINE

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

     Regression tests for mms_mec_formation_plot

     To run:
         IDL> mgunit, 'mms_formation_plot_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2020-04-03 17:43:10 -0700 (Fri, 03 Apr 2020) $
     $LastChangedRevision: 28497 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_formation_plot_ut__define.pro $

(See projects/mms/common/tests/mms_formation_plot_ut__define.pro)

## MMS_INIT_UT__DEFINE

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

     Unit tests for mms_init
     --> should also validate no conflicts with other init routines:
      mms_init, thm_init, wind_init, omni_init, istp_init, ace_init, rbsp_spice_init
      stereo_init, goes_init, fa_init, barrel_init, poes_init
      elf_init, sd_init, geom_indices_init, iug_init, juno_init, mvn_spd_init

     To run:
         IDL> mgunit, 'mms_init_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2020-06-11 13:35:00 -0700 (Thu, 11 Jun 2020) $
     $LastChangedRevision: 28774 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_init_ut__define.pro $

(See projects/mms/common/tests/mms_init_ut__define.pro)

## MMS_LOAD_ASPOC_UT__DEFINE

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

     Unit tests for mms_load_aspoc

     To run:
         IDL> mgunit, 'mms_load_aspoc_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2017-10-09 09:19:08 -0700 (Mon, 09 Oct 2017) $
     $LastChangedRevision: 24128 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_aspoc_ut__define.pro $

(See projects/mms/common/tests/mms_load_aspoc_ut__define.pro)

## MMS_LOAD_BRST_SEGMENTS_UT__DEFINE

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

     Unit tests for mms_load_brst_segments

     To run:
         IDL> mgunit, 'mms_load_brst_segments_ut'

     brst segments used in these tests:
                     start      -    stop
       2015-10-16: 13:02:24.000 - 13:03:04.000
       2015-10-16: 13:03:34.000 - 13:04:54.000

     $LastChangedBy: egrimes $
     $LastChangedDate: 2017-10-09 09:19:08 -0700 (Mon, 09 Oct 2017) $
     $LastChangedRevision: 24128 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_brst_segments_ut__define.pro $

(See projects/mms/common/tests/mms_load_brst_segments_ut__define.pro)

## MMS_LOAD_COVERAGE_UT__DEFINE

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

     mms_load_coverage_ut

     This suite tests loading L2 data from the various instruments
     using different tranges throughout the mission; primarily to
     check for regressions due to file changes/incompatible versions

     To run:
         IDL> mgunit, 'mms_load_coverage_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2021-08-19 13:57:56 -0700 (Thu, 19 Aug 2021) $
     $LastChangedRevision: 30226 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_coverage_ut__define.pro $

(See projects/mms/common/tests/mms_load_coverage_ut__define.pro)

## MMS_LOAD_DATA_UT__DEFINE

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

     Unit tests for mms_load_data

     REQUIRED (in working directory):
         test_auth_info_team.sav - sav file containing username and password
         test_auth_info_pub.sav - sav file containing an empty username and password

     To run:
         IDL> mgunit, 'mms_load_data_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2017-10-09 09:19:08 -0700 (Mon, 09 Oct 2017) $
     $LastChangedRevision: 24128 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_data_ut__define.pro $

(See projects/mms/common/tests/mms_load_data_ut__define.pro)

## MMS_LOAD_DSP_UT__DEFINE

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

     Unit tests for mms_load_dsp

     To run:
         IDL> mgunit, 'mms_load_dsp_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2017-10-09 09:19:08 -0700 (Mon, 09 Oct 2017) $
     $LastChangedRevision: 24128 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_dsp_ut__define.pro $

(See projects/mms/common/tests/mms_load_dsp_ut__define.pro)

## MMS_LOAD_EDI_UT__DEFINE

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

     Unit tests for mms_load_edi

     To run:
         IDL> mgunit, 'mms_load_edi_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2017-10-09 09:19:08 -0700 (Mon, 09 Oct 2017) $
     $LastChangedRevision: 24128 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_edi_ut__define.pro $

(See projects/mms/common/tests/mms_load_edi_ut__define.pro)

## MMS_LOAD_EDP_UT__DEFINE

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

     Unit tests for mms_load_edp

     To run:
         IDL> mgunit, 'mms_load_edp_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2020-06-09 14:30:40 -0700 (Tue, 09 Jun 2020) $
     $LastChangedRevision: 28771 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_edp_ut__define.pro $

(See projects/mms/common/tests/mms_load_edp_ut__define.pro)

## MMS_LOAD_EIS_UT__DEFINE

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

     Unit tests for mms_load_eis

     To run:
         IDL> mgunit, 'mms_load_eis_ut'

     $LastChangedBy: jwl $
     $LastChangedDate: 2023-11-09 10:30:46 -0800 (Thu, 09 Nov 2023) $
     $LastChangedRevision: 32225 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_eis_ut__define.pro $

(See projects/mms/common/tests/mms_load_eis_ut__define.pro)

## MMS_LOAD_FAST_SEGMENTS_UT__DEFINE

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

     Unit tests for mms_load_fast_segments

     To run:
         IDL> mgunit, 'mms_load_fast_segments_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2017-10-09 09:19:08 -0700 (Mon, 09 Oct 2017) $
     $LastChangedRevision: 24128 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_fast_segments_ut__define.pro $

(See projects/mms/common/tests/mms_load_fast_segments_ut__define.pro)

## MMS_LOAD_FEEPS_UT__DEFINE

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

     Unit tests for mms_load_feeps

     To run:
         IDL> mgunit, 'mms_load_feeps_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2020-01-23 11:33:28 -0800 (Thu, 23 Jan 2020) $
     $LastChangedRevision: 28213 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_feeps_ut__define.pro $

(See projects/mms/common/tests/mms_load_feeps_ut__define.pro)

## MMS_LOAD_FGM_UT__DEFINE

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

     Unit tests for mms_load_fgm

     To run:
         IDL> mgunit, 'mms_load_fgm_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2017-11-29 10:22:15 -0800 (Wed, 29 Nov 2017) $
     $LastChangedRevision: 24356 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_fgm_ut__define.pro $

(See projects/mms/common/tests/mms_load_fgm_ut__define.pro)

## MMS_LOAD_FPI_UT__DEFINE

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

     Unit tests for mms_load_fpi

     To run:
         IDL> mgunit, 'mms_load_fpi_ut'

     warning: ACR tests in test_integration_time_get_dist require special, non-public CDFs
     to work / expect this test to fail if you don't have those files

     $LastChangedBy: jwl $
     $LastChangedDate: 2023-10-26 15:20:30 -0700 (Thu, 26 Oct 2023) $
     $LastChangedRevision: 32208 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_fpi_ut__define.pro $

(See projects/mms/common/tests/mms_load_fpi_ut__define.pro)

## MMS_LOAD_FSM_UT__DEFINE

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

     Unit tests for mms_load_fsm

     To run:
         IDL> mgunit, 'mms_load_fsm_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2018-05-29 07:04:58 -0700 (Tue, 29 May 2018) $
     $LastChangedRevision: 25293 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_fsm_ut__define.pro $

(See projects/mms/common/tests/mms_load_fsm_ut__define.pro)

## MMS_LOAD_HPCA_UT__DEFINE

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

     Unit tests for mms_load_hpca

     To run:
         IDL> mgunit, 'mms_load_hpca_ut'

     $LastChangedBy: jwl $
     $LastChangedDate: 2023-10-26 15:20:30 -0700 (Thu, 26 Oct 2023) $
     $LastChangedRevision: 32208 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_hpca_ut__define.pro $

(See projects/mms/common/tests/mms_load_hpca_ut__define.pro)

## MMS_LOAD_MEC_UT__DEFINE

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

     Unit tests for mms_load_mec

     To run:
         IDL> mgunit, 'mms_load_mec_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2017-10-09 09:19:08 -0700 (Mon, 09 Oct 2017) $
     $LastChangedRevision: 24128 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_mec_ut__define.pro $

(See projects/mms/common/tests/mms_load_mec_ut__define.pro)

## MMS_LOAD_SCM_UT__DEFINE

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

     Unit tests for mms_load_scm

     To run:
         IDL> mgunit, 'mms_load_scm_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2017-10-09 09:19:08 -0700 (Mon, 09 Oct 2017) $
     $LastChangedRevision: 24128 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_scm_ut__define.pro $

(See projects/mms/common/tests/mms_load_scm_ut__define.pro)

## MMS_LOAD_STATE_UT__DEFINE

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

     Unit tests for mms_load_state

     To run:
         IDL> mgunit, 'mms_load_state_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2020-01-22 15:01:05 -0800 (Wed, 22 Jan 2020) $
     $LastChangedRevision: 28212 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_load_state_ut__define.pro $

(See projects/mms/common/tests/mms_load_state_ut__define.pro)

## MMS_LOCAL_DATA_CLTESTSCRIPT

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

    File:
      mms_local_data_cltestscript

    Purpose:
      A test script to verify the software's ability to find local
      files in case the server is not accessible.

    Notes:
      -initial tests copied from mms crib sheets

    $LastChangedBy: jwl $
    $LastChangedDate: 2023-11-09 10:31:32 -0800 (Thu, 09 Nov 2023) $
    $LastChangedRevision: 32226 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_local_data_cltestscript.pro $

(See projects/mms/common/tests/mms_local_data_cltestscript.pro)

## MMS_PART_GETSPEC_UT__DEFINE

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

     Unit tests for mms_part_getspec

     To run:
         IDL> mgunit, 'mms_part_getspec_ut'

     $LastChangedBy: jwl $
     $LastChangedDate: 2023-11-09 10:31:32 -0800 (Thu, 09 Nov 2023) $
     $LastChangedRevision: 32226 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_part_getspec_ut__define.pro $

(See projects/mms/common/tests/mms_part_getspec_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[10]

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

     Compare FPI products with moments from CDF

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[11]

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

     Test probe, species, instrument, and units keywords

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[12]

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

     Test handling of invalid input data

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[13]

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

     Test invalid support data

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[14]

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

     Test time range with invalid azimuth data
       -as of 2016-06-07 most of the azimuth data for this data set was all zero

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[15]

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

     Support routine to load standard test data for a species/rate (instrument implied)
     Clears tplot variables and opens new window

     self->load_data, species [,rate] [,/moments] [,/support]

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[16]

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

     Ensure data is always cleared and window always open

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[1]

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

     Unit tests for mms_part_products
       Note: deprecated, now testing wrapper routine: mms_part_getspec

     **Most tests produce plots that should be checked manually!**

     To run:
         IDL> mgunit, 'mms_part_products_ut'

     $LastChangedBy: jwl $
     $LastChangedDate: 2023-11-09 10:30:15 -0800 (Thu, 09 Nov 2023) $
     $LastChangedRevision: 32224 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_part_products_ut__define.pro $

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[2]

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

     Test all outputs

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[2]

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

     Test energy limits

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[3]

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

     Test phi limits

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[4]

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

     Test theta limits

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[5]

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

     Test that unit conversions from all unit types provided in the CDF match
     Only HPCA currently provides multiple units

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[6]

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

     Test FAC variants

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[7]

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

     Test field aligned limits for energy spectrograms and moments
     Also tests gyro min > max

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[8]

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

     Compare HPCA and FPI data for an identical time range
     Also tests slower "fast" and "srvy" rates

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_PRODUCTS_UT__DEFINE[9]

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

     Compare HPCA products with moments from CDF

(See projects/mms/common/tests/mms_part_products_ut__define.pro)

## MMS_PART_SLICE2D_UT__DEFINE

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

     Unit tests for mms_part_slice2d

     To run:
         IDL> mgunit, 'mms_part_slice2d_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2018-11-13 11:48:04 -0800 (Tue, 13 Nov 2018) $
     $LastChangedRevision: 26116 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_part_slice2d_ut__define.pro $

(See projects/mms/common/tests/mms_part_slice2d_ut__define.pro)

## MMS_PGS_REGRESSIONS_UT__DEFINE

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

     These are regression tests for bugs in mms_part_products

     To run:
         IDL> mgunit, 'mms_pgs_regressions_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2023-03-28 15:59:25 -0700 (Tue, 28 Mar 2023) $
     $LastChangedRevision: 31683 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_pgs_regressions_ut__define.pro $

(See projects/mms/common/tests/mms_pgs_regressions_ut__define.pro)

## MMS_PGS_VALIDATION_UT__DEFINE

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

     Unit tests validating MMS plasma tools in Python

     To run:
         IDL> mgunit, 'mms_pgs_validation_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2021-07-30 11:43:55 -0700 (Fri, 30 Jul 2021) $
     $LastChangedRevision: 30160 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_pgs_validation_ut__define.pro $

(See projects/mms/common/tests/mms_pgs_validation_ut__define.pro)

## MMS_PYTHON_VALIDATION_UT__DEFINE

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

     Unit tests for mms_python_validation_ut

     To run:
         IDL> mgunit, 'mms_python_validation_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2022-03-31 13:28:35 -0700 (Thu, 31 Mar 2022) $
     $LastChangedRevision: 30738 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_python_validation_ut__define.pro $

(See projects/mms/common/tests/mms_python_validation_ut__define.pro)

## MMS_RUN_ALL_TESTS

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

     PROCEDURE:
         mms_run_all_tests

     PURPOSE
         Run all the unit tests for the MMS load routines

     $LastChangedBy: jwl $
     $LastChangedDate: 2023-09-28 11:03:38 -0700 (Thu, 28 Sep 2023) $
     $LastChangedRevision: 32145 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/mms_run_all_tests.pro $

(See projects/mms/common/tests/mms_run_all_tests.pro)

## MMS_STATE_LOAD_CLTESTSUITE

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

     Name: mms_state_load_cltestsuite.pro

     Purpose: command line test script for loading MMS state data

     Notes: run it by compiling in idl and then typing ".go"
            or copy and paste.

    Test 1: No parameters or keywords used
    Test 2: Single probe parameter passed as an integer
    Test 3: Multiple probe parameters passed as an array of strings)
    Test 4: Multiple probe parameters passed as an array of integers
    Test 5: All probes requested (*)
    Test 6: Requested definitive data, all datatypes
    Test 7: Requested predicted data
    Test 8: Used suffix for tplot variable names
    Test 9: All datatypes (*) requested
    Test 10: Mixed case datatype parameter used
    Test 11: All upper case data type used
    Test 12: Time range passed as an array of 2 strings
    Test 13: Time range passed as an array of 2 doubles; Datatype as an array of multiple strings
    Test 14: Requested ephemeris data only
    Test 15: Requested attitude data only
    Test 16: Requested definitive when only predicted data available; default pred_or_def flag set
    Test 17: Turned off pred_or_def flag; no data should be returned
    Test 18: Turned pred_or_def flag back on
    Test 19: No download with no data on disk; should not find data
    Test 20: No download with local data
    Test 21: Invalid datatype requested
    Test 22: Invalid probe requested
    Test 23: Invalid level requested
    Test 24: Both attitude and ephemeris flags set

(See projects/mms/common/tests/mms_state_load_cltestsuite.pro)

## SPD_TESTS_WITH_IMG_UT__DEFINE

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

     This object adds a method (check_img) to MGunit for checking that 2 PNGs are (roughly) equal

     Note:
       allows for minor, off-by-one differences by verifying the difference isn't entirely 255s and 1s
       (which can occur with the *_part_products routines)

     $LastChangedBy: egrimes $
     $LastChangedDate: 2017-07-17 11:55:12 -0700 (Mon, 17 Jul 2017) $
     $LastChangedRevision: 23620 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/spd_tests_with_img_ut__define.pro $

(See projects/mms/common/tests/spd_tests_with_img_ut__define.pro)

## TPLOT_STUFF_UT__DEFINE

[Previous Routine] [List of Routines]

     Unit tests for various tplot utilities

     To run:
         IDL> mgunit, 'tplot_stuff_ut'

     $LastChangedBy: egrimes $
     $LastChangedDate: 2019-08-26 11:01:59 -0700 (Mon, 26 Aug 2019) $
     $LastChangedRevision: 27651 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/mms/common/tests/tplot_stuff_ut__define.pro $

(See projects/mms/common/tests/tplot_stuff_ut__define.pro)