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> 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/World-Meteorological-Organization/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.8.7.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

csv2bufr-0.8.7-py2.py3-none-any.whl (26.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: csv2bufr-0.8.7.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.0

File hashes

Hashes for csv2bufr-0.8.7.tar.gz
Algorithm Hash digest
SHA256 dc4c51c800ca1db3f83e31529f540fe21b0c8d010a90bba8e667f6045b4a1dc4
MD5 d808686984e76c36bd05382380944577
BLAKE2b-256 9e373587ad1fcd6185faeb18287f104eb1013464309af09a77a5d4fa2ef7b29a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: csv2bufr-0.8.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 26.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.0

File hashes

Hashes for csv2bufr-0.8.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 24e7ae17304a2b2e1e390f4ae9eae4a7942a063e0c532e51cc58638736957d29
MD5 eb4f35f609db64745560b4860bba6bc2
BLAKE2b-256 314e68c3a91db8d8f5b861f91fa6dc80ca269073f8b2fa0d4e4dc36496f85abd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page