Skip to content

dtcenter/METcalcpy

Repository files navigation

METcalcpy

Provides libraries for the following: calculation of statistics, pre-processing input, and performing diagnostics for METviewer, METexpress, and the plotting scripts in METplotpy.

Please see the METcalcpy User's Guide for more information.

Support for the METplus components is provided through the METplus Discussions forum. Users are welcome and encouraged to answer or address each other's questions there! For more information, please read "Welcome to the METplus Components Discussions".

For information about the support provided for releases, see our Release Support Policy.

Instructions for installing the metcalcpy package locally

  • activate your conda environment (i.e. 'conda activate your-conda-env-name')

  • from within your active conda environment, cd to the METcalcpy/ directory, where you will see the setup.py script

  • from this directory, run the following on the command line: pip install -e .

  • the -e option stands for editable, which is useful in that you can update your METcalcpy/metcalcpy source without reinstalling it

  • the . indicates that you should search the current directory for the setup.py script

  • use metcalcpy package via import statement:

    • Examples:

      • import metcalcpy.util.ctc_statistics as cstats
        • to use the functions in the ctc_statistics module

Instructions for installing the metcalcpy package from PyPI

  • activate your Python 3.10+ conda environment
  • run the following from the command line:
    • pip install metcalcpy==x.y.z where x.y.z is the version number of interest