This is a package to access the ClimateSERV API](https://climateserv.servirglobal.net/)
This is a python package to access the ClimateSERV API you can install using conda or pip:
This is sample code to produce a time series csv using the CentralAsiaeModis dataset. If you were to choose the OperationType of Download you would need to change the Outfile from .csv to .zip If you would like the data returned as a json object to a variable set Outfile to 'memoryobject' and create a variable to hold the return from the climateserv.api.request_data call.
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 = '' # only used for Seasonal_Forecast SeasonalVariable = '' # only used for Seasonal_Forecast Outfile = 'out.csv' climateserv.api.request_data(DatasetType, OperationType, EarliestDate, LatestDate,GeometryCoords, SeasonalEnsemble, SeasonalVariable,Outfile)
ClimateSERVpy is distributed by SERVIR under the terms of the MIT License. See LICENSE in this directory for more information.
ClimateSERVpy abides to all of SERVIR's privacy and terms of use as described at https://servirglobal.net/Privacy-Terms-of-Use.