pigra
What is it ?
A Python parsing library for the IGRA v2 format.
Key Features
- parses IGRA data according to the IGRAv2 specifications
- defines a clean Sounding data-structure easy to work with
- streams records (don't operate the whole dataset in memory)
- handles incoming data from standard input (default), text file and compressed file (gz/zip)
- allows to filter soundings by providing your own function (including geoboxing)
- outputs to JSON format and human-readable headers
- computes statistics
- no dependencies
- unit-tested
Where to get it
The source code is currently hosted on GitHub at : https://github.com/pixel-ports/pigra
Binary installer for the latest released version is available at the Python package index.
pip install pigra
Usage
Use it as a library from your code.
Or basically from command line.
cat igra-data.txt | python -m pigra > output.json
License
Documentation
Have a look at the examples
directory.
Background
Work on pigra
started at Orange in 2019 for the needs of the PIXEL european project.
Funding
pigra
has been developed as part of the PIXEL project, H2020, funded by the EC under Grant Agreement number 769355.