https://github.com/fahimfba/nasa-power-downloader-2
Solar Radiation Prediction from NASA POWER data Ver.2
https://github.com/fahimfba/nasa-power-downloader-2
hourly hourly-data hourly-weather hourlyforecast nasa nasa-api nasa-power nasa-power-api
Last synced: 28 days ago
JSON representation
Solar Radiation Prediction from NASA POWER data Ver.2
- Host: GitHub
- URL: https://github.com/fahimfba/nasa-power-downloader-2
- Owner: FahimFBA
- License: mit
- Created: 2025-04-02T13:28:04.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-02T14:02:28.000Z (about 2 months ago)
- Last Synced: 2025-04-02T14:31:14.518Z (about 2 months ago)
- Topics: hourly, hourly-data, hourly-weather, hourlyforecast, nasa, nasa-api, nasa-power, nasa-power-api
- Language: Python
- Homepage: https://fahimfba.github.io/nasa-power-downloader-2/
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🌍 NASA POWER Hourly Data Downloader Ver.2
This project automates the downloading and merging of hourly climate data from [NASA POWER API](https://power.larc.nasa.gov/).
## 🚀 Features
👉 Downloads hourly weather data (2014–2024)
👉 Splits requests into smaller chunks (1 year per request)
👉 Cleans and removes unnecessary headers from downloaded CSV files
👉 Automatically merges data into a single CSV file
👉 Saves cleaned and merged data in organized directories
👉 Handles API errors with a retry mechanism---
## 📂 Project Structure
```
📺 nasa-power-downloader
👤📂 data/ # Stores all data files
👤 📂 cleaned/ # Stores cleaned CSV files (without headers)
👤 📂 merged/ # Stores the final merged CSV file
👤📂 scripts/ # Python scripts for downloading & merging
👤📝 README.md # Project documentation
👤📝 LICENSE # Open-source license
👤📝 config.py # API settings
```---
## 📊 Available Parameters
The following meteorological parameters are included in the downloaded dataset:
| Parameter | Description | Unit |
| ------------------------ | ------------------------------------------------------------- | ------- |
| **ALLSKY_SFC_SW_DWN** | All Sky Surface Shortwave Downward Irradiance (CERES SYN1deg) | Wh/m² |
| **T2M** | Temperature at 2 Meters (MERRA-2) | °C |
| **QV2M** | Specific Humidity at 2 Meters (MERRA-2) | g/kg |
| **RH2M** | Relative Humidity at 2 Meters (MERRA-2) | % |
| **PRECTOTCORR** | Precipitation Corrected (MERRA-2) | mm/hr |
| **WD10M** | Wind Direction at 10 Meters (MERRA-2) | Degrees |
| **WS10M** | Wind Speed at 10 Meters (MERRA-2) | m/s |
| **PS** | Surface Pressure (MERRA-2) | kPa |
| **DEW** | Dew Point Temperature (calculated) | °C |
| **WET BULB TEMPERATURE** | Wet Bulb Temperature (calculated) | °C |---
## 🛠 Setup Instructions
### 1️⃣ Clone the Repository
```bash
git clone https://github.com/FahimFBA/nasa-power-downloader.git
cd nasa-power-downloader
```### 2️⃣ Install Dependencies
```bash
pip install -r scripts/requirements.txt
```### 3️⃣ Configure Settings (Optional)
Edit [**config.py**](./config.py) to change location and parameters.### 4️⃣ Run the Data Downloader
```bash
python scripts/download_nasa_power.py
```### 5️⃣ Clean & Merge Downloaded Files
```bash
python scripts/merge_csv.py
```The cleaned files will be saved in:
📂 **data/cleaned/**The final merged dataset will be saved as:
📝 **data/merged/merged_data.csv**---
## 🐜 License
This project is licensed under the **MIT License**. See [LICENSE](LICENSE) for details.---
## 👨💻 Author
Md. Fahim Bin Amin – [[email protected]](mailto:[email protected])
GitHub: [@FahimFBA](https://github.com/FahimFBA)