This package contains meteorological python utilities used by the PNW AirFire team.
This software is provided for research purposes only. Use at own risk.
The met package relies on the fortran arl profile utility. It is
expected to reside in a directory in the search path. To obtain profile
,
contact NOAA.
Via ssh:
git clone git@github.com:pnwairfire/met.git
or http:
git clone https://github.com/pnwairfire/met.git
After installing the non-python dependencies (mentioned above), run the following to install required python packages:
pip install --extra-index https://pypi.airfire.org/simple -r requirements.txt
pip install -r requirements-dev.txt
pip install -r requirements-test.txt
You can run tests with pytest:
py.test
py.test ./test/unit/met/arl/test_arlfinder.py
You can also use the --collect-only
option to see a list of all tests.
py.test --collect-only
Use the '-s' option to see output:
py.test -s
First, install pip (with sudo if necessary):
apt-get install python-pip
Then, to install, for example, v5.0.1, use the following (with sudo if necessary):
pip install --extra-index https://pypi.airfire.org/simple met==5.0.1
If you get an error like AttributeError: 'NoneType' object has no attribute 'skip_requirements_regex
, it means you need in upgrade pip. One way to do so is with the following:
pip install --upgrade pip