Skip to main content

Will get time series from different sources on the internet.

Project description

https://github.com/timcera/tsgettoolbox/actions/workflows/python-package.yml/badge.svg https://coveralls.io/repos/timcera/tsgettoolbox/badge.png?branch=master Latest release BSD-3 clause license tsgettoolbox downloads

tsgettoolbox - Quick Guide

The ‘tsgettoolbox’ is a Python script and library to get time-series data from different web services. The tsgettoolbox will work with Python 2.6+ and 3.0+.

Documentation

Reference documentation is at tsgettoolbox_documentation.

Installation

At the command line:

$ pip install tsgettoolbox

Usage Summary - Command Line

Just run ‘tsgettoolbox –help’ to get a list of subcommands. To get detailed help for a particular sub-command, for instance ‘coops’, type ‘tsgettoolbox coops –help’.

cdec

station: California Department of Water Resources

coops

station: Center for Operational Oceanographic Products and Services

cpc

station: Climate Prediction Center, Weekly Drought Index

daymet

gridded: Daymet, daily meteorology by the Oak Ridge National Laboratory

fawn

station: Florida Automated Weather Network (FAWN)

ldas

gridded: Land Data Assimilation System (NLDAS, GLDAS2, TRMM, SMERGE, GRACE, MERRA)

metdata

gridded: Download daily data from METDATA.

modis

gridded: Download MODIS derived data.

ncei_ghcnd_ftp

station: NCEI Global Historical Climatology Network - Daily (GHCND)

ncei_ghcnd

station: Global Historical Climatology Network - Daily (GHCND)

ncei_gsod

station: NCEI Global Summary of the Day (GSOD)

ncei_gsom

station: NCEI Global Summary of Month (GSOM)

ncei_gsoy

station: NCEI Global Summary of Year (GSOY)

ncei_normal_ann

station: NCEI annual normals

ncei_normal_dly

station: NCEI Daily Normals

ncei_normal_hly

station: NCEI Normal hourly

ncei_normal_mly

station: NCEI Monthly Summaries.

ncei_precip_15

station: NCEI 15 minute precipitation

ncei_precip_hly

station: NCEI hourly precipitation

ncei_annual

station: NCEI annual data summaries

ncei_ghcndms

station: NCEI GHCND Monthly Summaries (GHCNDMS)

ncei_ish

station: Integrated Surface Database

ndbc

station: Download historical from the National Data Buoy Center.

nwis

station: Use the nwis_* functions instead.

nwis_iv

station: USGS NWIS Instantaneous Values

nwis_dv

station: USGS NWIS Daily Values

nwis_site

station: USGS NWIS Site Database

nwis_gwlevels

station: USGS NWIS Groundwater Levels

nwis_measurements

station: USGS NWIS Measurements

nwis_peak

station: USGS NWIS Peak

nwis_stat

station: USGS NWIS Statistic

epa_wqp

station: EPA Water Quality Portal.

rivergages

station: USACE river gages

swtwc

station: USACE Southwest Division, Tulsa Water Control

terraclimate

gridded: Download monthly data from Terraclimate.

terraclimate2C

gridded: Download monthly data from Terraclimate.

terraclimate4C

gridded: Download monthly data from Terraclimate.

terraclimate19611990

gridded: Download monthly data from Terraclimate.

terraclimate19812010

gridded: Download monthly data from Terraclimate.

topowx

gridded: Topoclimatic Daily Air Temperature Dataset for the Conterminous United States

twc

station: Download Texas Weather Connection (TWC) data.

unavco

station: Download data from the Unavco web services.

usgs_flet_narr

gridded: USGS FL ET data from NARR meteorologic data.

usgs_flet_stns

gridded: USGS FL ET data from station interpolated meteorologic data.

Usage Summary - Python Library

To use the tsgettoolbox in a project:

from tsgettoolbox import tsgettoolbox
df = tsgettoolbox.nwis_dv(sites="02329500", startDT="2000-01-01")

Refer to the API Documentation at tsgettoolbox_api.

Usage Summary - Command Line

tsgettoolbox nwis_dv –sites 02329500 –startDT 2000-01-01

Refer to the command line documentation at tsgettoolbox_cli.

Development

Development is managed on bitbucket or github. https://bitbucket.org/timcera/tsgettoolbox/overview. https://github.com/timcera/tsgettoolbox

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

tsgettoolbox-23.26.6.tar.gz (1.0 MB view details)

Uploaded Source

File details

Details for the file tsgettoolbox-23.26.6.tar.gz.

File metadata

  • Download URL: tsgettoolbox-23.26.6.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11

File hashes

Hashes for tsgettoolbox-23.26.6.tar.gz
Algorithm Hash digest
SHA256 4eb8ecfbbf44f4d0fdcdfaea0d3acd33c2e5050b3e3da6439e5f6f83b2cc725a
MD5 736d045373c8189c7c7dc587cf5347e4
BLAKE2b-256 e22dbf47960f559e8b9df670c0da5bcf901d1f45e693edc42dd977db67e9c4c9

See more details on using hashes here.

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