A universal, secure, and fast interface for NASA POWER S3 data.
Project description
nasapower-s3
A universal, secure, and fast interface for accessing NASA POWER data directly from AWS S3 Zarr stores.
Features
- High Speed: Access data directly from S3 using Zarr (cloud-optimized file format).
- Universal: Supports Daily, Hourly, and Monthly temporal scales.
- Easy: Returns standard pandas DataFrames.
- Secure: No AWS credentials required (anonymous access).
Installation
pip install nasapower-s3
Usage
from nasapower_s3 import NasaPowerS3
# Initialize client
client = NasaPowerS3()
# Fetch data (Meteorology)
df = client.get_data(
lat=30.6,
lon=-96.3,
start_date="2023-01-01",
end_date="2023-01-10",
variables=["T2M", "PRECTOTCORR"],
frequency="daily",
collection="meteorology" # Default
)
# Fetch Solar data
df_solar = client.get_data(
lat=30.6,
lon=-96.3,
start_date="2023-01-01",
end_date="2023-01-10",
variables=["ALLSKY_SFC_SW_DWN"],
frequency="daily",
collection="solar"
)
print(df.head())
Available Data
The library supports:
- Collections:
meteorology(MERRA-2) andsolar(SRB) - Frequencies:
daily,hourly,monthly,climatology
For a full list of variables, refer to the NASA POWER API Docs.
Data License & Attribution
The code in this repository is licensed under MIT. The data accessed from NASA POWER is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Attribution:
"These data were obtained from the NASA Langley Research Center POWER Project funded through the NASA Earth Science Directorate Applied Science Program."
Contributing
We welcome contributions! Please see CONTRIBUTING.md for details.
- Fork the repo
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more information.
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 nasapower_s3-1.0.0.tar.gz.
File metadata
- Download URL: nasapower_s3-1.0.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
202710e1554dbcc3982ba2e1e28f3f7491148cd72f1a61f7feeeb6f0da775a16
|
|
| MD5 |
8faaea6858920b62fb9b6648c128eeb0
|
|
| BLAKE2b-256 |
7941a1829d3dd012f3eb701c502af9ccf473d25434d4482b94f563374b3730fd
|
Provenance
The following attestation bundles were made for nasapower_s3-1.0.0.tar.gz:
Publisher:
publish.yml on srivarenya01/nasapower-s3
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nasapower_s3-1.0.0.tar.gz -
Subject digest:
202710e1554dbcc3982ba2e1e28f3f7491148cd72f1a61f7feeeb6f0da775a16 - Sigstore transparency entry: 922013379
- Sigstore integration time:
-
Permalink:
srivarenya01/nasapower-s3@e1a5e1e161eceece4e44756b475846b7ecb61238 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/srivarenya01
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e1a5e1e161eceece4e44756b475846b7ecb61238 -
Trigger Event:
release
-
Statement type:
File details
Details for the file nasapower_s3-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nasapower_s3-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.4 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 |
be82c175b29a28733fe133fcda5f801421c3665c78539ba4da2177de4f21298d
|
|
| MD5 |
bc950a709413d58ddd7e01a437112f54
|
|
| BLAKE2b-256 |
27885f76cdad7aa2024b5df989f9874c71bf7af4eda18c38a8680402a7944198
|
Provenance
The following attestation bundles were made for nasapower_s3-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on srivarenya01/nasapower-s3
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nasapower_s3-1.0.0-py3-none-any.whl -
Subject digest:
be82c175b29a28733fe133fcda5f801421c3665c78539ba4da2177de4f21298d - Sigstore transparency entry: 922013562
- Sigstore integration time:
-
Permalink:
srivarenya01/nasapower-s3@e1a5e1e161eceece4e44756b475846b7ecb61238 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/srivarenya01
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e1a5e1e161eceece4e44756b475846b7ecb61238 -
Trigger Event:
release
-
Statement type: