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

Last modified: Wed Nov 5 03:16:59 2025.

# Directory Listing of Routines

# general/tools/python_validate

- AVG_DATA_PYTHON_VALIDATE
  Generate test data for Python vs IDL validation tests for avg_data routine.
- FAC_MATRIX_MAKE_PYTHON_VALIDATE
- LMN_PYTHON_VALIDATE
- OMNI_SOLARWIND_PYTHON_VALIDATE
- SPINMODEL_PYTHON_TEST.PRO
  Load several spin models and export them as CDFs for comparison with Python results
- WAV_DATA_VALIDATE
  Generate test data for Python vs IDL validation tests for the wav_data routine.

# Routine Descriptions

## AVG_DATA_PYTHON_VALIDATE

[Next Routine] [List of Routines]

    PROCEDURE: avg_data_python_validate

    PURPOSE:
       Generate test data for Python vs IDL validation tests for avg_data routine.

       Creates a file called avg_data_validate.tplot which should be uploaded into:
       https://github.com/spedas/test_data

       This file is used by pyspedas tests to confirm that IDL and python results are the same.

     $LastChangedBy: nikos $
     $LastChangedDate: 2025-09-07 11:18:10 -0700 (Sun, 07 Sep 2025) $
     $LastChangedRevision: 33603 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/general/tools/python_validate/avg_data_python_validate.pro $

(See general/tools/python_validate/avg_data_python_validate.pro)

## FAC_MATRIX_MAKE_PYTHON_VALIDATE

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

    Procedure:
      thm_crib_fac

    Purpose:
      A crib on showing how to transform into field aligned coordinates DSL coordinates

    Notes:

     $LastChangedBy: jwl $
     $LastChangedDate: 2025-09-18 17:58:39 -0700 (Thu, 18 Sep 2025) $
     $LastChangedRevision: 33629 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/general/tools/python_validate/fac_matrix_make_python_validate.pro $

(See general/tools/python_validate/fac_matrix_make_python_validate.pro)

## LMN_PYTHON_VALIDATE

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

     Procedure:
      lmn_python_validate

     Purpose:
      Creates a savefile with tplot variables that contain lmn_matrix_make data.

      The savefile can used to compare the results of IDL lmn_matrix_make.pro
      to the results of the similar python function in pyspedas.

    $LastChangedBy: jwl $
    $LastChangedDate: 2025-09-18 17:58:39 -0700 (Thu, 18 Sep 2025) $
    $LastChangedRevision: 33629 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/general/tools/python_validate/lmn_python_validate.pro $

(See general/tools/python_validate/lmn_python_validate.pro)

## OMNI_SOLARWIND_PYTHON_VALIDATE

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

     Procedure:
      omni_solarwind_python_validate

     Purpose:
      Create a savefile with OMNI solar wind variables.
      The savefile can be loaded into Python using PySPEDAS to verify that the Python results match the IDL results.

    $LastChangedBy: jwl $
    $LastChangedDate: 2025-09-18 17:58:39 -0700 (Thu, 18 Sep 2025) $
    $LastChangedRevision: 33629 $
    $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/general/tools/python_validate/omni_solarwind_python_validate.pro $

(See general/tools/python_validate/omni_solarwind_python_validate.pro)

## SPINMODEL_PYTHON_TEST.PRO

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

     NAME:
        SPINMODEL_PYTHON_TEST.PRO

     PURPOSE:
       Load several spin models and export them as CDFs for comparison with Python results

     CATEGORY:
       TDAS

     CALLING SEQUENCE:
       spinmodel_python_test

      INPUTS:
        probe:             One value from 'a b c d e'
        trange:            Time range specified as a 2-element string array
        correction_level:  An integer, 0 1 or 2, denoting the level of eclipse corrections to use
        cdf_filename:      The name of the output CDF.   This file can be passed to the themis.state.spinmodel.validate_model routine
                           to perform the python side of the test.
      OUTPUTS:
        A CDF file containing the probe, time range, and correction level used, a dump of the spinmodel attributes, and some interpolation
        test data to be reproduced in pyspedas.

      KEYWORDS:
        None.

      PROCEDURE:

      EXAMPLE:
         spinmodel_python_test, probe='a',trange=['2008-03-23','2008-04-23'],correction_level=2,cdf_filename='tha_30day_corr2.cdf'

    Written by: Jim Lewis (jwl@ssl.berkeley.edu)

(See general/tools/python_validate/spinmodel_python_test.pro)

## WAV_DATA_VALIDATE

[Previous Routine] [List of Routines]

    PROCEDURE: wav_data_validate

    PURPOSE:
       Generate test data for Python vs IDL validation tests for the wav_data routine.

       Creates the following savefiles:
            wav_data_resample_test.tplot
            sin_wav_wv_pol_perp.tplot
            wav_data_cross_test.tplot
            sin_wav_wv_pol_perp.tplot
            wavelet98_paul_dog_test.tplot

       These files should be uploaded into:
         https://github.com/spedas/test_data/analysis_tools

       The savefiles are used by pyspedas tests to confirm that IDL and python results are the same.

     $LastChangedBy: nikos $
     $LastChangedDate: 2025-10-22 20:15:05 -0700 (Wed, 22 Oct 2025) $
     $LastChangedRevision: 33789 $
     $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/general/tools/python_validate/wav_data_validate.pro $

(See general/tools/python_validate/wav_data_validate.pro)