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

Uploaded Source

Built Distribution

nwp_dl_utils-0.0.7-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nwp_dl_utils-0.0.7.tar.gz
  • Upload date:
  • Size: 20.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.7.tar.gz
Algorithm Hash digest
SHA256 91632a40e4e756464e77ef42391d86e59e4c15d0c5fa4a11d41987686e0c4c27
MD5 25f49743453d21e8a380f8a6888629d6
BLAKE2b-256 32aaccfa21a9163d9090652c4541ba344a2ab5d95db95eea35f9056ab8ea6396

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nwp_dl_utils-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ec49874625df56201195ea5b28a4bcc383de8d9d19f17023333c22c899eb410c
MD5 7702fdcdd397ce54a8fad5be52ce095f
BLAKE2b-256 1ba8c78513a2fb30b4cb32c2068db77b743bda675de8b4bba2031c3e83f52f3b

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