Metadata-Version: 2.1
Name: pigra
Version: 1.0.2
Summary: A Python IGRA v2 parser
Home-page: https://github.com/pixel-ports/pigra
Author: Fabien Battello
Author-email: fabien.battello@orange.com
License: Apache 2.0
Platform: UNKNOWN
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# pigra

[![PyPI Latest Release](https://img.shields.io/pypi/v/pigra)](https://pypi.org/project/pigra/)
[![Python version](https://img.shields.io/pypi/pyversions/pigra)](https://pypi.org/project/pigra/)

## What is it ?

A Python parsing library for the IGRA v2 format.

## Key Features

- parses IGRA data according to the [IGRAv2 specifications](ftp://ftp.ncdc.noaa.gov/pub/data/igra/data/igra2-data-format.txt)
- 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](https://pypi.org/project/pigra).

```sh
pip install pigra
```

## Usage
Use it as a library from your code.<p>
Or basically from command line.

```sh
cat igra-data.txt | python -m pigra > output.json
```

## License
[Apache 2.0](LICENSE)

## Documentation
Have a look at the `examples` directory.

## Background
Work on ``pigra`` started at [Orange](https://www.orange.com) in 2019 for the needs of the [PIXEL](https://pixel-ports.eu) european project.

## Funding

``pigra`` has been developed as part of the [PIXEL](https://pixel-ports.eu) project, H2020, funded by the EC under Grant Agreement number [769355](https://cordis.europa.eu/project/id/769355).

