Skip to main content

A pythonic interface for Applied Climate Information System (ACIS) data

Project description

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.

Getting Started

pip install climata

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

Available Services

Module

Classes

Data Source

climata.acis

StationMetaIO, StationDataIO

ACIS

climata.cocorahs

CocorahsIO

CoCoRaHS

climata.hydromet

DailyDataIO, InstantDataIO, AgrimetRecentIO

Hydromet

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",
    sdate="2012-12-01",
    edate="2012-12-31",
    elems="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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

climata-0.2.0.tar.gz (10.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page