This is a package to access the ClimateSERV API](https://climateserv.servirglobal.net/)
Project description
ClimateServ API Access
This is a simple package to access the ClimateSERV API you can install using pip:
- pip install climateserv
Current supported operations:
- Timeseries CSV
- Variables
- Average
- Min
- Max
- Variables
- Download Zip file of tifs
- Variable
- Download
- Variable
Current supported datasets:
- CHIRPS
- Rainfall
- Variable: CHIRPS
- GEFS
- Anomalies
- Variable: CHIRPS_GEFS_anom
- Precipitation
- Mean
- Variable: CHIRPS_GEFS_precip_mean
- 25th percentile
- Variable: CHIRPS_GEFS_precip_25
- 75th percentile
- Variable: CHIRPS_GEFS_precip_75
- Mean
- Anomalies
- Rainfall
- eMODIS
- Central Asia NDVI
- Variable: CentralAsia_eMODIS
- East Africa NDVI
- Variable: EastAfrica_eMODIS
- Southern Africa NDVI
- Variable: SouthAfrica_eMODIS
- West Africa NDVI
- Variable: WestAfrica_eMODIS
- Central Asia NDVI
- Seasonal_Forecast
- Variable: Seasonal_Forecast
- SeasonalEnsemble Variable: ens01 thru ens10
- seasonal_variable: Temperature or Precipitation
- Variable: Seasonal_Forecast
- IMERG 1 Day
- Variable: IMERG
- Evaporative Stress Index
- ESI 4 week
- Variable: ESI_4
- ESI 12 week
- Variable: ESI_12
- ESI 4 week
Sample Usage
This is sample code to produce a time series csv using the CentralAsia_eModis dataset. If you were to choose the OperationType of Download you would need to change the Outfile from .csv to .zip
import climateserv.api x = 81.27 y = 29.19 GeometryCoords = [[x-.01,y+.01],[x+.01, y+.01], [x+.01, y-.01],[x-.01,y-.01],[x-.01,y+.01]] DatasetType = 'CentralAsia_eMODIS' OperationType = 'Average' EarliestDate = '01/03/2018' LatestDate = '03/16/2018' SeasonalEnsemble = 'ens07' SeasonalVariable = 'Precipitation' Outfile = 'out.csv' climateserv.api.request_data(DatasetType, OperationType, EarliestDate, LatestDate,GeometryCoords, SeasonalEnsemble, SeasonalVariable,Outfile)
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
climateserv-0.0.11.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for climateserv-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e10e20933376bc903e3973a080b9b81b91c1b44a0effb227a4d9bc9453faceaa |
|
MD5 | 903d8717a18c0524890351f35dd98b24 |
|
BLAKE2b-256 | 79ff50453094d225375b910e3beaecdb551c344f3a53ffc75f384bd504553f46 |