A conda recipe for MET and METplus
To build a package and optionally upload to anaconda.org:
- Clone this repo on an
aarch64
orx86_64
Linux system. The built package will match the system architecture. - Run
./build
, which will by default upload the package to anaconda.org. To disable upload, runANACONDA_UPLOAD=no ./build
. - If prompted, enter your anaconda.org credentials for package upload.
- When finished, you may remove the
conda
directory created bybuild
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 theconda
directory.
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
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.