Home

Awesome

stactools-noaa-gefs

PyPI

A stactools package for NOAA's Global Ensemble Forecast System (GEFS) dataset.

This package can generate STAC files from GRIB2 files that link to the original GRIB2 files (+ .idx sidecar files).

STAC Examples

Installation

pip install stactools-noaa-gefs

Command-line Usage

Use stac noaa-gefs --help to list all commands and options.

Collection

Create a collection:

stac noaa-gefs create-collection collection.json

Get information about all options for collection creation:

stac noaa-gefs create-collection --help

Item

Create an item:

stac noaa-gefs create-item /path/to/gefs.chem.t00z.a2d_0p25.f000.grib2 item.json --collection collection.json

Get information about all options for item creation:

stac noaa-gefs create-item --help

Contributing

We use pre-commit to check any changes. To set up your development environment:

$ pip install -e .
$ pip install -r requirements-dev.txt
$ pre-commit install

To check all files:

$ pre-commit run --all-files

To run the tests:

$ pytest -vv