Configurable module to convert data from CSV to WMO BUFR format
Project description
csv2bufr
The csv2bufr Python module contains both a command line interface and an API to convert data stored in a CSV file to the WMO BUFR data format. 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 csv2bufr installation.
docker pull wmoim/csv2bufr
Running
Transform data from file <my-csv-file.csv>
for station <wigos_station_identifier>
to BUFR using template
specified in file <csv-to-bufr-mapping.json>
and with station metadata file the file <metadata-file.csv>
.
Write output to <output-directory-path>
.
csv2bufr data transform <my-csv-file.csv> \
<wigos_station_identifier> \
--station-metadata <metadata-file.csv> \
--bufr-template <csv-to-bufr-mapping.json> \
--output <output-directory-path>
Releasing
# create release (x.y.z is the release version)
vi csv2bufr/__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/csv2bufr/releases/new)
# bump version back to dev
vi csv2bufr/__init__.py # update __version__
git commit -am 'back to dev'
git push origin main
Documentation
The full documentation for csv2bufr can be found at https://csv2bufr.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 csv2bufr-0.5.0.tar.gz
.
File metadata
- Download URL: csv2bufr-0.5.0.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a130151a105cc6a9310b474f35365674ecfec7dcf40b2ec3a36b890dd88fb64 |
|
MD5 | f1779f35a2b4f7b7dd806f35f6175bad |
|
BLAKE2b-256 | e5862a19f4a23189d536c4c3c5f4f3c7a5ee41ca2e6baed8072334119ddb5b69 |
File details
Details for the file csv2bufr-0.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: csv2bufr-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fe3812a14dfc71788f0fd49fe9396fd38f4f17793738612bc58c4b0431de5a8 |
|
MD5 | cbbf45f63faa4c26f263125bf689734b |
|
BLAKE2b-256 | 026700b4ac1823dc26d7c1b5f030597dd895baa4f947ea21e7508437293725a6 |