Skip to content

Python library for loading and iterating over climate and flow time series data (from ACIS/NOAA RCCs, CoCoRaHS, Hydromet/USBR, CNRFC ESP/NWS, SNOTEL/AWDB/NRCS, and NWIS/USGS)

License

pombredanne/climata

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

climata

climata is a pythonic interface for loading and processing time series data from climate and flow monitoring stations and observers. climata leverages a number of webservices as listed below. climata is powered by wq.io, and shares its goal of maximizing the reusability of data parsing code, by smoothing over some of the differences between various data formats.

image

Latest Version

Getting Started

pip install climata

See https://github.com/heigeo/climata to report any issues.

Available Services

Module Classes Data Source Agency/Org.
climata.acis StationMetaIO, StationDataIO ACIS

NOAA RCCs

climata.cocorahs CocorahsIO CoCoRaHS

CoCoRaHS

climata.hydromet DailyDataIO, InstantDataIO, AgrimetRecentIO Hydromet

USBR

climata.nws HydroForecastIO, EnsembleForecastIO, EnsembleSiteIO CNRFC

NWS

climata.snotel StationIO, StationDailyDataIO, RegionDailyDataIO SNOTEL AWDB

NRCS

climata.usgs SiteIO, DailyValueIO, InstantValueIO NWIS

USGS

Usage

Command-line interface:

# Load metadata for sites in Mississippi Headwaters HUC4
acis_sites.py 0701 > sites.csv

# Load daily average temperature for these sites
acis_data.py 0701 avgt > data.csv

Python API:

from climata.acis import StationDataIO

# Load average temperature for sites in Mississippi Headwaters HUC8
sites = StationDataIO(
    basin="07010101",
    start_date="2012-12-01",
    end_date="2012-12-31",
    parameter="avgt"
)

# Display site information and time series data
for site in sites:
    print site.name
    for evt in site.data:
        print evt.date, evt.avgt

More Python code examples are available via the climata-viewer website.

About

Python library for loading and iterating over climate and flow time series data (from ACIS/NOAA RCCs, CoCoRaHS, Hydromet/USBR, CNRFC ESP/NWS, SNOTEL/AWDB/NRCS, and NWIS/USGS)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%