Skip to main content

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

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> to BUFR using template specified in file <csv-to-bufr-mapping.json> and with station metadata file the file <oscar-metadata-file.json>. Write output to <output-directory-path>.

csv2bufr data transform <my-csv-file.csv> \
    --bufr-template <csv-to-bufr-mapping.json> \
    --station-metadata <oscar-metadata-file.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

csv2bufr-0.3.1.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

csv2bufr-0.3.1-py2.py3-none-any.whl (19.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file csv2bufr-0.3.1.tar.gz.

File metadata

  • Download URL: csv2bufr-0.3.1.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.2.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.4

File hashes

Hashes for csv2bufr-0.3.1.tar.gz
Algorithm Hash digest
SHA256 6a13d703f769634ade631bf2cfc530afc104e94a5cfc10c0c91646995990cb56
MD5 4a0f29338e2cf91e5c9d966260823162
BLAKE2b-256 731c1276699fc71cffd413a4b114f0f1c36140692a869ac33dafa10abbf021a0

See more details on using hashes here.

File details

Details for the file csv2bufr-0.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: csv2bufr-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.2.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.4

File hashes

Hashes for csv2bufr-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c4177f85c3cbe2827c17b28e8d35eb4d8563440fb824a8561d7846a5b13d5420
MD5 878d0df91329179d2ee6dd3fab7c682b
BLAKE2b-256 d0654deaa0dc0f0c1a3eefc3e262916ab3c9c192f47fa29455b04492026b1891

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