No project description provided
Project description
pygeofilter-aeronet
pygeofilter-aeronet provides a pygeofilter extension for querying NASA’s AERONET aerosol optical depth datasets through the AERONET Web Service v3 API.
It enables filtering AERONET observations using the same spatial and temporal operators as OGC APIs (CQL2 filters), making it easier to integrate AERONET data in geospatial workflows, data lakes, and cloud pipelines.
Features
- Evaluate CQL2 expressions (spatial, temporal, and attribute filters) directly on AERONET datasets
- Parse and normalize AERONET text responses into GeoPandas DataFrames
- Support for:
AOD10,AOD15,AOD20— Aerosol Optical Depth (Levels 1.0–2.0)SDA10,SDA15,SDA20— Size Distribution AnalysisTOT10,TOT15,TOT20— Total Optical Depth
- Simple API for combining AERONET product types and date ranges
- Compatible with pygeofilter, pandas, and geopandas
Installation
pip install pygeofilter-aeronet
or directly from GitHub:
pip install git+https://github.com/Terradue/pygeofilter-aeronet.git
Quick example
import pandas as pd
from io import StringIO
from pygeofilter_aeronet.evaluator import (
to_aeronet_api_querystring,
http_invoke
)
cql2_filter = {
"op": "and",
"args": [
{"op": "eq", "args": [{"property": "site"}, "Cart_Site"]},
{"op": "eq", "args": [{"property": "data_type"}, "AOD10"]},
{"op": "eq", "args": [{"property": "format"}, "csv"]},
{"op": "eq", "args": [{"property": "data_format"}, "daily-average"]},
{
"op": "t_after",
"args": [
{"property": "time"},
{"timestamp": "2023-02-01T00:00:00Z"},
],
},
{
"op": "t_before",
"args": [
{"property": "time"},
{"timestamp": "2023-02-28T23:59:59Z"},
],
},
],
}
# print the AERONET API querystring:
print(to_aeronet_api(cql2_filter=cql2_filter))
# dry-run the HTTP request:
http_invoke(cql2_filter=cql2_filter, dry_run=True)
# query the AERONET API
raw_data = http_invoke(cql2_filter=cql2_filter, dry_run=False)
df = pd.read_csv(StringIO(raw_data), skiprows=5)
print(df.head(5))
Documentation
User guide and examples available at: https://terradue.github.io/pygeofilter-aeronet/
Development
git clone https://github.com/Terradue/pygeofilter-aeronet.git
cd pygeofilter-aeronet
hatch shell
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygeofilter_aeronet-0.3.0.tar.gz.
File metadata
- Download URL: pygeofilter_aeronet-0.3.0.tar.gz
- Upload date:
- Size: 48.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d67c61863a0bd7ea406d81d1d3bbf1093ed19d915fb0cf28731d062aea170e7a
|
|
| MD5 |
accbc1c208a97999067dd9dd70f6cdd0
|
|
| BLAKE2b-256 |
3eedcc00588247617ca1162928235260bbf9005e7e5046f2bc84e055f46056e4
|
Provenance
The following attestation bundles were made for pygeofilter_aeronet-0.3.0.tar.gz:
Publisher:
package.yaml on Terradue/pygeofilter-aeronet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pygeofilter_aeronet-0.3.0.tar.gz -
Subject digest:
d67c61863a0bd7ea406d81d1d3bbf1093ed19d915fb0cf28731d062aea170e7a - Sigstore transparency entry: 676635781
- Sigstore integration time:
-
Permalink:
Terradue/pygeofilter-aeronet@766a2d892e8f2bf4733f485612ac88fd56014ce2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Terradue
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package.yaml@766a2d892e8f2bf4733f485612ac88fd56014ce2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pygeofilter_aeronet-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pygeofilter_aeronet-0.3.0-py3-none-any.whl
- Upload date:
- Size: 39.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bda37a828dc432e531fac4c6e62efbc64f950b9c2f3b91d82b2d84ca258f5e7a
|
|
| MD5 |
ddac06a521b9f7aa2de321e25c9df33a
|
|
| BLAKE2b-256 |
77ad2c8b7cffa2c251c48ffd8614c606a5cad838906832be8888374491d3c4bd
|
Provenance
The following attestation bundles were made for pygeofilter_aeronet-0.3.0-py3-none-any.whl:
Publisher:
package.yaml on Terradue/pygeofilter-aeronet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pygeofilter_aeronet-0.3.0-py3-none-any.whl -
Subject digest:
bda37a828dc432e531fac4c6e62efbc64f950b9c2f3b91d82b2d84ca258f5e7a - Sigstore transparency entry: 676635785
- Sigstore integration time:
-
Permalink:
Terradue/pygeofilter-aeronet@766a2d892e8f2bf4733f485612ac88fd56014ce2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Terradue
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package.yaml@766a2d892e8f2bf4733f485612ac88fd56014ce2 -
Trigger Event:
push
-
Statement type: