itsrifat / nccp-data

python scripts for extracting data from nevada climate change portal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nccp-data

python script for extracting data from nevada climate change portal.

all we need to do is call the function getDataMonthly s follows:

#it gets a list of logicalSensor objects
logicalSensors = getLogicalSensorInfo()
#It retrieves a csv file of monthly data of each logical sensor and dumps in outputDir
outputDir = 'data'
getDataMonthly(2012,1,2014,12,logicalSensors,outputDir)

An exmaple data file should lok like follows (the date is in ISO 8601 format)


Site:Snake Range West Subalpine
Deployment:Air temperature (10-meter) monitor
Monitored System:Atmosphere
Measured Property:Temperature
Vertical Offset from Surface:10
Units:degK
Measurement Type:Average
Measurement interval:PT1M
Time Stamp (UTC)
2012-01-01T00:00:00+00:00,269.392
2012-01-01T00:01:00+00:00,269.397
2012-01-01T00:02:00+00:00,269.377
....
....

About

python scripts for extracting data from nevada climate change portal


Languages

Language:Python 78.4%Language:Java 21.6%