Skip to main content

stactools-viirs

PyPI

Use this repository to create STAC Items and Collections for VIIRS data.

STAC Examples

There is an example Collection and Item for each VIIRS product supported by this repository in the examples directory.

Installation

pip install stactools-viirs

Command-line Usage

To create a single STAC Item from a VIIRS H5 file:

$ stac viirs create-item <H5 file path> <output directory>

To create COGs for each subdataset in the H5 file and include them as Assets in the STAC Item, append the -c flag to the command.

To create a STAC Collection, enter H5 file paths into a text file with one file path per line. Then pass the text file to the create-collection command:

$ stac viirs create-collection <text file path> <output directory>

If the text file contains H5 file paths from multiple VIIRS products, multiple STAC Collections will be created. If COGs exist alongside the H5 files, they will be included as Assets in the STAC Items contained in the Collection(s). For example, if COGs exist for all H5 files in examples/file-list.txt, then the example Collections and Items can be created with:

$ stac viirs create-collection examples/file-list.txt examples --antimeridian-strategy normalize

Use stac viirs --help to see all subcommands and options.

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

Metadata

Release files for stactools-viirs 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stactools-viirs 0.1.0
File Size Uploaded
stactools-viirs-0.1.0.tar.gz 30.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stactools-viirs 0.1.0
File Interpreter ABI Platform
stactools_viirs-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 74.3 kB

Release files / stactools-viirs-0.1.0.tar.gz

Download URL stactools-viirs-0.1.0.tar.gz
Size 30.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ca9cd361ee3d1a37d36a91d916494275c2e90c417f3a0397cc59ddf55214ae41
BLAKE2b-256 checksum
How to use checksums
4c4948c210cbcc069d799810bbce4514fa0424ab3e5a1be6ae33ce1b1a29fb7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / stactools_viirs-0.1.0-py3-none-any.whl

Download URL stactools_viirs-0.1.0-py3-none-any.whl
Size 43.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b810d8a79952b153c8922820f687f327898a97bd51fb9dea6e04babcaf6c1df
BLAKE2b-256 checksum
How to use checksums
8edc94af502967682149c52e43ed832df0aa773ff3fb57726b7d8bf2b2d188e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page