A conda recipe for MET and select METplus components.
To create a met2go virtual environment, activate your conda (Miniforge recommended), then:
conda create -n met2go -c paul.madden met2go
conda activate met2goWith the met2go environment 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 theparm/directory from the METplus distribution.MET_DATA: A directory containing various runtime data from the MET distribution.MET_PYTHON_EXE: The path to the Python interpreter to be used by MET.
* The METPLUS_PARM_BASE directory does not exist immediately after met2go is installed. To create and populate it, run met2go-data in the activated met2go environment. This requires write permissions on the conda-environment directory under which met2go is installed.
In addition, the following scripts are available as executables on PATH:
- From METdataio:
write_stat_ascii.py - From METplotpy:
line.py
To build a package and optionally upload to your own anaconda.org channel:
- Clone this repo on an
aarch64orx86_64Linux 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
condadirectory created bybuildto 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 thecondadirectory.
To create a met2go virtual environment based on a package uploaded to your own anaconda.org channel, activate your conda (Miniforge recommended), then:
conda create -n met2go -c <channel> met2go[=version]Set <channel> to the name of the channel corresponding to the credentials you supplied during the build.
To create a met2go virtual environment based on the locally built package:
. conda/etc/profile.d/conda.sh
conda create -n met2go -c local met2go[=version]In either case, you may optionally provide desired version information; otherwise, conda will install the latest available version.
Activate the environment:
conda activate met2go