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 limited to MEPS product from the Norwegian Meteorological Office.

Products are accessed remotely using OPeNDAP and only specifically requested data is downloaded.

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.

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/.

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.6.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

nwp_dl_utils-0.0.6-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nwp_dl_utils-0.0.6.tar.gz
  • Upload date:
  • Size: 14.3 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.6.tar.gz
Algorithm Hash digest
SHA256 1566a232bbdc832d4fd1a6966270121591113e1f4a88e20c4e42b6ebd4449bf0
MD5 f9c64379c241139ee7550ef70e1fe7ef
BLAKE2b-256 45972ac15a06fb6a0c9e9911e9d3c1468e3ff8ad16ba9b3c81e87698dfb2c64c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nwp_dl_utils-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 522329d9affc7747d68033f8aac0d48db5700752c9d2af86b4c042ce868ae017
MD5 557f5b169bc9bb725cc59dc50f2ab914
BLAKE2b-256 dcd51708cb49343dea6f420194fb4acae7ac88f07153b091640d8ac6a11f5155

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