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.
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
- https://packaging.python.org/en/latest/tutorials/packaging-projects/.
- https://setuptools.pypa.io/en/latest/userguide/development_mode.html
Blame and Contact
- Volker Hoffmann (volker.hoffmann@sintef.no)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nwp_dl_utils-0.0.10.tar.gz
.
File metadata
- Download URL: nwp_dl_utils-0.0.10.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af0b248eecbd17e7e078c866a13e86b3d56c4e59c6a589f5618d3c11c15ccccd |
|
MD5 | b092f26c784067d90958d3199f406675 |
|
BLAKE2b-256 | 3f7da2e608dad0a6598b68136833201f1b6daf20f69556626546eaa7b126c342 |
File details
Details for the file nwp_dl_utils-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: nwp_dl_utils-0.0.10-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd3f852b91e4913244e1c924dbb3700ab7ce8a89f7560c31d4ef7affebb20e2d |
|
MD5 | 15c83e57d3f729d9d699e1a9c3db7425 |
|
BLAKE2b-256 | f1cb69f274d779cb1915d70ac2e1e90f75b34d29fc064dde8ed913fb83aad063 |