Skip to main content

Tools to download (relevant parts of) various NWP products.

Project description

NWP Downloading Utilities

Contains utilities for downloading (relevant parts) of NWP products.

Currently focussing on MetNo.

Product Remote Access (OPeNDAP) Local Access (NetCDF4)
MEPS Yes No
MyWaveWAM Yes Yes

The package is pre-Alpha software. It does what we need it to do and not much more.

Development

Setting up a development space

conda create --name nwpdl-dev python=3.9
conda activate nwpdl-dev
conda install numpy xarray pandas
conda install pytest
conda install -c conda-forge pyresample
conda install -c conda-forge netCDF4
conda deactivate nwpdl-dev
conda activate nwpdl-dev

To run the tests, simply run pytest in the base directory.

Development Mode

You can use development mode to make the current version of the code available to other packages. To proceed, enter the virtual environment of whatever program you're working on, navigate to the ./nwp_dl_utils root directory, remove the existing installation of nwp-dl-utils (if it exists), and install it in development mode, viz.

pip uninstall nwp-dl-utils
pip install --editable .

When done, remove, and reinstall the version from PyPI, viz.

pip uninstall nwl-dl-utils
pip install --ugrade nwp-dl-utils

This needs pip>=21.3, see here and here. You can upgrade Pip via pip install --upgrade pip.

Build and Distribute

Setup environment

conda create --name nwpdl-build python=3.9
conda activate nwpdl-build
pip install --upgrade pip
pip install --upgrade build
pip install --upgrade twine

Build and upload

python -m build
python -m twine upload --repository testpypi dist/* 

Drop --repository testpypi to upload to real PyPI.

Test build

conda create --name nwpdl-test python=3.9
conda activate nwpdl-test
pip install --index-url https://test.pypi.org/simple/ --no-deps nwp-dl-utils

Drop --index-url https://test.pypi.org/simple/ --no-deps to download from real PyPI.

References

  1. https://packaging.python.org/en/latest/tutorials/packaging-projects/.
  2. https://setuptools.pypa.io/en/latest/userguide/development_mode.html

Blame and Contact

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nwp_dl_utils-0.0.11.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

nwp_dl_utils-0.0.11-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file nwp_dl_utils-0.0.11.tar.gz.

File metadata

  • Download URL: nwp_dl_utils-0.0.11.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for nwp_dl_utils-0.0.11.tar.gz
Algorithm Hash digest
SHA256 b47b3c0ccbe429e5749ab292253b2dde471dd140baef82b1758091f88cb6f385
MD5 7ba1dd911e7f4745cbb5ac78f048b329
BLAKE2b-256 dacc785e859779644f288dcdb56ec3a3dddf7199ad1d84eff890f71b98e3e4d3

See more details on using hashes here.

File details

Details for the file nwp_dl_utils-0.0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for nwp_dl_utils-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 234416901119a34d31c3c9de6ea824cc13ce5ed5715b78dd24dd29c06b9f6728
MD5 a90a25317c12452672fd3d27477aae9a
BLAKE2b-256 82254a728fd91496d2f43bd796b9d83bd0958d09c8d4ffd85156ecf22b81a5c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page