Configurable module to convert data from CSV to WMO BUFR format
Project description
bufr2geojson
The bufr2geojson Python module contains both a command line interface and an API to convert data stored as WMO BUFR to GeoJSON (RFC 7946). More information on the BUFR format can be found in the WMO Manual on Codes, Volume I.2.
Installation
Requirements
- Python 3 and above
- ecCodes
Dependencies
Dependencies are listed in requirements.txt. Dependencies are automatically installed during bufr2geojson installation.
# download and build Docker image
git clone https://github.com/wmo-im/bufr2geojson.git
cd bufr2geojson
docker build -t bufr2geojson .
# login to Docker container
docker run -it -v ${pwd}:/app bufr2geojson
cd /app
Running
bufr2geojson data transform <input_file> --output-dir <output_directory> --csv <True|False>
e.g.
bufr2geojson data transform ./tests/A_ISIA21EIDB202100_C_EDZW_20220320210902_11839953.bin --output-dir ./output/
Releasing
# create release (x.y.z is the release version)
vi bufr2geojson/__init__.py # update __version__
git commit -am 'update release version vx.y.z'
git push origin main
git tag -a vx.y.z -m 'tagging release version vx.y.z'
git push --tags
# upload to PyPI
rm -fr build dist *.egg-info
python setup.py sdist bdist_wheel --universal
twine upload dist/*
# publish release on GitHub (https://github.com/wmo-im/bufr2geojson/releases/new)
# bump version back to dev
vi bufr2geojson/__init__.py # update __version__
git commit -am 'back to dev'
git push origin main
Documentation
The full documentation for bufr2geojson can be found at https://bufr2geojson.readthedocs.io, including sample files.
Code Conventions
Bugs and Issues
All bugs, enhancements and issues are managed on GitHub.
Contact
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 bufr2geojson-0.6.0.tar.gz
.
File metadata
- Download URL: bufr2geojson-0.6.0.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/1.1.3 pkginfo/1.9.6 requests/2.28.2 requests-toolbelt/0.8.0 tqdm/4.64.1 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7b4cf004900f00adc65bb571e17a18be50b0fc714656e0341cf487f399661a2 |
|
MD5 | 6904ee1974a5ae16d5543256c6861bcf |
|
BLAKE2b-256 | cadcaa5aa8951f2d13c8317afb1718544748eef26c548160b4e534049d9f1cec |
File details
Details for the file bufr2geojson-0.6.0-py2.py3-none-any.whl
.
File metadata
- Download URL: bufr2geojson-0.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/1.1.3 pkginfo/1.9.6 requests/2.28.2 requests-toolbelt/0.8.0 tqdm/4.64.1 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5646cb26fd7790ce9c61c9283196c4f70548d5d1d2306737a7554f39a8e6cdfe |
|
MD5 | ee5941595b673eb188e0ed9b054ea989 |
|
BLAKE2b-256 | cb3e8ad46a0da507452bbbbdb019322810eed6326033502715a726827518bdd7 |