Skip to main content

AERONET PySTAC extension

PyPI - Version PyPI - Python Version GitHub Actions Workflow Status Code coverage

PySTAC implementation of the Terradue AERONET STAC extension, for describing stations from the NASA AERONET network.

The package reads and writes six required Item properties: site name, land use, and day counts for solar Levels 1.0, 1.5, 2.0 and lunar Level 1.5. It manages metadata; it does not download observations or compute counts.

Install and use

Requires Python 3.10 or later and PySTAC >=1,<2.

python -m pip install pystac-ext-aeronet
from datetime import datetime, timezone

import pystac
from pystac.extensions.aeronet import AeronetExtension

# Synthetic metadata snapshot; replace with your station's metadata.
item = pystac.Item(
    id="example-station",
    geometry=None,
    bbox=None,
    datetime=datetime(2026, 1, 1, tzinfo=timezone.utc),
    properties={},
)
aeronet = AeronetExtension.ext(item, add_if_missing=True)
aeronet.apply(
    site_name="Example_Station",
    land_use_type="Urban",
    L10=25,
    L15=20,
    L20=18,
    moon_L15=0,
)
assert item.to_dict()["properties"]["aeronet:L20"] == 18

The wrapper supports Items. All six apply() arguments are required, and reading an absent or null field raises pystac.RequiredPropertyMissing. Setters do not perform runtime type or schema validation; use item.validate() with PySTAC's validation dependencies when needed.

Documentation

Read the project documentation for Python examples, the field reference, and API documentation.

To preview it locally:

python -m pip install . "mkdocs<2" mkdocs-material "mkdocstrings[python]"
mkdocs serve

Contribute

Submit a GitHub issue if you have comments or suggestions.

Local quality checks

Install Hatch and Taskfiles then install the Git hook:

task quality:pre-commit:install

Every commit runs Ruff (including the configured McCabe complexity limit), Ruff formatting, strict mypy checks, Bandit, and the pytest suite.

Run the complete hook explicitly with:

task

License

Apache License, Version 2.0

Metadata

Release files for pystac-ext-aeronet 1.0.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 pystac-ext-aeronet 1.0.0
File Size Uploaded
pystac_ext_aeronet-1.0.0.tar.gz 16.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pystac-ext-aeronet 1.0.0
File Interpreter ABI Platform
pystac_ext_aeronet-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.2 kB

Release files / pystac_ext_aeronet-1.0.0.tar.gz

Download URL pystac_ext_aeronet-1.0.0.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2c4b05f529ade2fec2e5b13b99d816af3e28553766bf4c69a6f34e4686cb8593
BLAKE2b-256 checksum
How to use checksums
fd73c133688623d323b63d1ee26f0fd133484b44e94600577eea41700a0b4914
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / pystac_ext_aeronet-1.0.0-py3-none-any.whl

Download URL pystac_ext_aeronet-1.0.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dda4d3859902a4c84ddcc4994667b94d2775354d6a670e998d2cf8b621943f84
BLAKE2b-256 checksum
How to use checksums
765ed61986816a200148d419f02b8c6509c755b36fa8644cfdb1a7ce10e356f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.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