Skip to main content
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.

Latest PyPI Release Release Notes License GitHub Stars GitHub Forks GitHub Issues

Travis Build Status Python Support

Getting Started

# Recommended: create virtual environment
# python3 -m venv venv
# . venv/bin/activate
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.epa

WqxDomainIO

WQX

EPA

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 Upper Klamath Lake basin
wq cat climata.acis.StationMetaIO "basin=18010203" > sites.csv

# Load daily average temperature for these sites
PARAMS="basin=18010203,start_date=2017-01-01,end_date=2017-01-31,parameter=avgt"
wq cat climata.acis.StationDataIO "$PARAMS" > data.csv

Python API:

from climata.acis import StationDataIO

# Load average temperature for sites in Upper Klamath Lake basin
sites = StationDataIO(
    basin="18010203",
    start_date="2017-01-01",
    end_date="2017-01-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.

Metadata

Release files for climata 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for climata 0.5.0
File Size Uploaded
climata-0.5.0.tar.gz 22.6 kB Details

Release files / climata-0.5.0.tar.gz

Download URL climata-0.5.0.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4bf00910b64606df644dabfcec1cdd0b279c1cb0168e52f75e59d0eccbabc2b2
BLAKE2b-256 checksum
How to use checksums
ac160aed9e415ea8093f8198a64b418769fc59ee4e78392f3545db19fdd6d3a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5.0 This release

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page