Metadata-Version: 2.4
Name: nasapower-s3
Version: 1.0.0
Summary: A universal, secure, and fast interface for NASA POWER S3 data.
Author-email: Varenya Sri Mudumba <srivarenya.mudumba@gmail.com>
License: MIT License
        
        Copyright (c) 2026 Varenya Sri Mudumba
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/srivarenya01/nasapower-s3
Project-URL: Bug Tracker, https://github.com/srivarenya01/nasapower-s3/issues
Keywords: nasa,power,s3,zarr,meteorology,solar,climate
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas
Requires-Dist: xarray
Requires-Dist: zarr
Requires-Dist: s3fs
Requires-Dist: fsspec
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: isort; extra == "dev"
Requires-Dist: codespell; extra == "dev"
Requires-Dist: pre-commit; extra == "dev"
Dynamic: license-file

# nasapower-s3

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/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

```bash
pip install nasapower-s3
```

## Usage

```python
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](https://power.larc.nasa.gov/docs/services/api/).

## 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](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.
