Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 2.02 KB

README.md

File metadata and controls

44 lines (28 loc) · 2.02 KB

metkit

A conda recipe for MET and METplus

Build

To build a package and optionally upload to anaconda.org:

  1. Clone this repo on an aarch64 or x86_64 Linux system. The built package will match the system architecture.
  2. Run ./build, which will by default upload the package to anaconda.org. To disable upload, run ANACONDA_UPLOAD=no ./build.
  3. If prompted, enter your anaconda.org credentials for package upload.
  4. When finished, you may remove the conda directory created by build to reclaim disk space. But if you disabled package upload in step 2 above and want to create a virtual environment based on the local package, retain the conda directory.

Install

To create a metkit virtual environment based on a package uploaded to anaconda.org, activate your conda (Miniforge recommended), then:

conda create -n metkit -c <channel> metkit[=version]

Set <channel> to the name of the channel corresponding to the credentials you supplied during the build.

To create a metkit virtual environment based on the locally built package:

. conda/etc/profile.d/conda.sh
conda create -n metkit -c local metkit[=version]

In either case, you may optionally provide desired version information; otherwise, conda will install the latest available version.

Activate the environment:

conda activate metkit

Run

When the environment is activated, the path to MET (e.g. grid_stat) and METplus (e.g. run_metplus.py) executables is prepended to PATH, and the following environment variables are exported:

METPLUS_PARM_BASE: A directory containing the contents of the parm/ directory from the METplus distribution. MET_PYTHON_EXE: The path to the Python interpreter to be used by MET.