Skip to main content

Will get time series from different sources on the internet

Project description

Tests Test Coverage Latest release BSD-3 clause license PyPI - Python Version

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 and 3.10+.

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’.

Sub-command

Spatial Extent

Time Extent

Type

Time Interval

Description

cdec

US/CA

varies

station

E,H,D,M

California Department of Water Resources

coops

global

varies

station

1T,6T,H, D,M

Center for Operational Oceanographic Products and Services

cpc DISCONTINUED

US

varies

region

W

Climate Prediction Center

daymet

NAmerica

1980-

grid 1km

D,M

daily meteorology by the Oak Ridge National Laboratory

fawn

US/FL

varies

station

15T,H,D, M

Florida Automated Weather

hydstra_ts

varies

varies

station

E,H,D,M

Kisters Hydstra Webservice - time series values

hydstrsa_catalog

varies

varies

station

-NA-

Kisters Hydstra Webservice - variable catalog

hydrstra_stations

varies

varies

station

-NA-

Kisters Hydstra Webservice - station list

ldas DEPRECATED use ldas_* functions below instead

global

varies

grid

varies

Land Data Assimilation System

ldas_gldas_noah

global

2000-

grid 0.25deg

3H

GLDAS NOAH hydrology model results

ldas_gldas_noah_v2_0

global

1948- 2014

grid 0.25deg

3H

GLDAS NOAH hydrology model

ldas_gldas_noah_v2_1

global

2000-

grid 0.25deg

3H

GLDAS NOAH hydrology model

ldas_grace

NAmerica

2002-

grid 0.125deg

7D

Groundwater and soil moisture from GRACE

ldas_merra

global

1980-

grid 0.5x 0.625deg

H

MERRA-2 Land surface

ldas_nldas_fora

NAmerica

1979-

grid 0.125deg

H

NLDAS Weather Forcing A (surface)

ldas_nldas_noah

NAmerica

1979-

grid 0.125deg

H

NLDAS NOAH hydrology model

ldas_nldas_vic

NAmerica

1979-

grid 0.125deg

H

NLDAS VIC hydrology model

ldas_smerge

global

1997-

grid 0.125deg

D

SMERGE-Noah-CCI root zone soil

metdata

NAmerica

1980-

grid 4km

D

Daily data from METDATA based on PRISM.

modis

global

2000-

grid 250m, 500m, 1000m

4D,8D,16 D,A

MODIS derived data

ncei_ghcnd_ftp

global

varies

station

D

NCEI Global Historical Climatology Network - Daily (GHCND) from FTP server.

ncei_ghcnd

global

varies

station

D

NCEI Global Historical Climatology Network - Daily (GHCND) from web services.

ncei_gsod

global

varies

station

D

NCEI Global Summary of the Day (GSOD)

ncei_gsom

global

varies

station

M

NCEI Global Summary of the Month (GSOM)

ncei_gsoy

global

varies

station

A

NCEI Global Summary of Year

ncei_normal_ann

global

varies

station

A

NCEI annual normals

ncei_normal_dly

global

varies

station

D

NCEI daily normals

ncei_normal_hly

global

varies

station

H

NCEI hourly normals

ncei_normal_mly

global

varies

station

M

NCEI monthly normals

ncei_precip_15

global

varies

station

15T

NCEI 15 minute precipitation

ncei_precip_hly

global

varies

station

H

NCEI hourly precipitation

ncei_annual

global

varies

station

A

NCEI annual data summaries

ncei_ghcndms

global

varies

station

M

NCEI GHCND Monthly Summaries (GHCNDMS)

ncei_ish

global

varies

station

H

NCEI Integrated Surface hourly

ndbc

US

varies

station

6T,10T, 15T,H,D

National Data Buoy Center

nwis DEPRECATED use nwis_* functions below instead.

US

varies

station

varies

USGS National Water

nwis_iv

US

varies

station

E

USGS NWIS Instantaneous Values

nwis_dv

US

varies

station

D

USGS NWIS Daily Values

nwis_site

US

varies

station

-NA-

USGS NWIS Site Database

nwis_gwlevels

US

varies

station

varies

USGS NWIS Groundwater

nwis_measurements

US

varies

station

varies

USGS NWIS Measurements

nwis_peak

US

varies

station

varies

USGS NWIS Peak

nwis_stat

US

varies

station

varies

USGS NWIS Statistic

epa_wqp

US

varies

station

varies

US EPA Water Quality

rivergages

US

varies

station

varies

USACE river gages

swtwc DISCONTINUED

US/OK

varies

station

varies

USACE Southwest Division, Tulsa Water Control

terraclimate

global

varies

grid 1/24deg

M

Monthly data from TerraClimate

terraclimate19611990 DISCONTINUED

global

varies

grid 1/24deg

M

Monthly normals using TerraClimate monthly data from 1961 to 1990

terraclimate19812010

global

varies

grid 1/24deg

M

Monthly normals using TerraClimate monthly data from 1981 to 2010

terraclimate19912020

global

varies

grid 1/24deg

M

Monthly normals using TerraClimate monthly data from 1991 to 2020

terraclimate2C DISCONTINUED

global

varies

grid 1/24deg

M

Monthly normals using TerraClimate with 2deg C hotter climate

terraclimate4C DISCONTINUED

global

varies

grid 1/24deg

M

Monthly normals using TerraClimate with 4deg C hotter climate

twc

US/OK

varies

station

D

Texas Weather Connection (TWC) data

unavco

US

varies

station

varies

UNAVCO well data

Time Interval Code

Description

E

Event

T

Minute

H

Hourly

D

Daily

M

Monthly

A

Annual

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-26.2.2.tar.gz (94.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tsgettoolbox-26.2.2-py3-none-any.whl (867.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsgettoolbox-26.2.2.tar.gz
  • Upload date:
  • Size: 94.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tsgettoolbox-26.2.2.tar.gz
Algorithm Hash digest
SHA256 27945573d0c9d2d483ae62dc659bb6740b708f36e8ae06e332235938df19df7e
MD5 4f5b768bfa251c0b3fc18746ecf5ed32
BLAKE2b-256 6546b3485d20c58cc9b309e08cdedb38320629190d99737283d339ef3fcfd738

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsgettoolbox-26.2.2.tar.gz:

Publisher: pypi-package.yml on timcera/tsgettoolbox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tsgettoolbox-26.2.2-py3-none-any.whl.

File metadata

  • Download URL: tsgettoolbox-26.2.2-py3-none-any.whl
  • Upload date:
  • Size: 867.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tsgettoolbox-26.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39302402589350dbcf2f79ba0358748275092fd53a29684a3dc22d538d5e4326
MD5 7c384694bf6e97ad7c0ba8c45e350601
BLAKE2b-256 02b7d3eed2386b2135c93f07d8ed0b07e3fede90a9a75b94e80d716dfaac58ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsgettoolbox-26.2.2-py3-none-any.whl:

Publisher: pypi-package.yml on timcera/tsgettoolbox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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