Download meteorological data from NASA POWER API (https://power.larc.nasa.gov/)
Project description
pynasapower
Download meteorological data from NASA POWER restful API (https://power.larc.nasa.gov/) using pynasapower API client.
The NASA POWER database is a global database of daily meteorological data designed for agrometeorological applications and more. Data are retrieced from in-situ observations in combination with satellite data. The meteorological data is updated with a delay of about 3 months. For more information on the NASA POWER database see the documentation at: https://power.larc.nasa.gov/
Installation from source
git clone https://github.com/alekfal/pynasapower.git
cd pynasapower/
pip install .
Instalation from PyPI
pip install pynasapower
Examples
Download meteorological data for a point in Athens, Greece and save result in *.csv
format.
from pynasapower.get_data import query_power
from pynasapower.geometry import point, bbox
import datetime
# Run for point in Athens and save the result in csv format
gpoint = point(23.727539, 37.983810, "EPSG:4326")
start = datetime.date(2022, 1, 1)
end = datetime.date(2022, 2, 1)
data = query_power(gpoint, start, end, "./data", True, "ag", [], "daily", "point", "csv")
Download meteorological data for a polygon in Athens, Greece and save result in *.csv
format.
# Run for small bbox in Athens and save the result in csv format
gbbox = bbox(23.727539, 26.73, 37.983810, 40.99, "EPSG:4326")
start = datetime.date(2022, 1, 1)
end = datetime.date(2022, 2, 1)
data = query_power(gpoint, start, end, "./data", True, "ag", [], "daily", "regional", "csv")
Read more about the software in readthedocs.
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
Hashes for pynasapower-0.0.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54fb5aa0218d1e40fd1157f217714cfc7df2dc92fc2592e44d5fd1b25c1163e9 |
|
MD5 | 75482b4d838f67fc75b727021ab815b7 |
|
BLAKE2b-256 | 451f5c9be35da0c4e2b203148f61e1a7bd84e526569d16fda7eaa866bdaf4e71 |