Skip to main content

A universal, secure, and fast interface for NASA POWER S3 data.

Project description

nasapower-s3

License: MIT Code style: black

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) and solar (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.

  1. Fork the repo
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nasapower_s3-1.0.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nasapower_s3-1.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

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

Hashes for nasapower_s3-1.0.0.tar.gz
Algorithm Hash digest
SHA256 202710e1554dbcc3982ba2e1e28f3f7491148cd72f1a61f7feeeb6f0da775a16
MD5 8faaea6858920b62fb9b6648c128eeb0
BLAKE2b-256 7941a1829d3dd012f3eb701c502af9ccf473d25434d4482b94f563374b3730fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for nasapower_s3-1.0.0.tar.gz:

Publisher: publish.yml on srivarenya01/nasapower-s3

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for nasapower_s3-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be82c175b29a28733fe133fcda5f801421c3665c78539ba4da2177de4f21298d
MD5 bc950a709413d58ddd7e01a437112f54
BLAKE2b-256 27885f76cdad7aa2024b5df989f9874c71bf7af4eda18c38a8680402a7944198

See more details on using hashes here.

Provenance

The following attestation bundles were made for nasapower_s3-1.0.0-py3-none-any.whl:

Publisher: publish.yml on srivarenya01/nasapower-s3

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page