tsgettoolbox_ncei - Quick Guide
The ‘tsgettoolbox_ncei’ is a plugin-in for ‘tsgettoolbox’ that supplies a command line interface and Python library to get time-series data from the California Data Exchange Center (CDEC). The tsgettoolbox_ncei will work with Python and 3.10+.
Documentation
Reference documentation is at tsgettoolbox NCEI API.
Installation
At the command line:
$ pip install tsgettoolbox_ncei OR $ conda install -c conda-forge tsgettoolbox_ncei
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 ‘ncei’, type ‘tsgettoolbox ncei –help’.
Sub-command |
Spatial Extent |
Time Extent |
Type |
Time Interval |
Description |
|---|---|---|---|---|---|
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 |
Time Interval Code |
Description |
|---|---|
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
start_date = "2010-01-01"
end_date = "2013-01-01"
df = tsgettoolbox.ncei_precip_hly(
"COOP:087440",
start_date=start_date,
end_date=end_date,
)
print(df.head())
Refer to the API Documentation at tsgettoolbox NCEI API.
Usage Summary - Command Line
- tsgettoolbox ncei_precip_hly
“COOP:087440” –start_date=”2010-01-01” –end_date=”2013-01-01” > output.csv
Refer to the command line documentation at tsgettoolbox NCEI CLI.
Development
Development is managed on bitbucket or github. https://bitbucket.org/timcera/tsgettoolbox_ncei/overview. https://github.com/timcera/tsgettoolbox_ncei
Metadata
Release files for tsgettoolbox-ncei 27.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tsgettoolbox_ncei-27.0.0.tar.gz | 44.6 kB | With provenance | Details for tsgettoolbox_ncei-27.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tsgettoolbox_ncei-27.0.0-py3-none-any.whl | Python 3 | none | any | Details for tsgettoolbox_ncei-27.0.0-py3-none-any.whl |
Total release size: 84.2 kB
Release files / tsgettoolbox_ncei-27.0.0.tar.gz
| Download URL | tsgettoolbox_ncei-27.0.0.tar.gz |
|---|---|
| Size | 44.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71c1e176a82e56ea320acb5b7e03f0c4e6bf9caa35a6aca96c42a2aa7cd86fa8
|
|
BLAKE2b-256 checksum How to use checksums |
fd7769c670e0fdb21d32c426e01e5db0af4f0927f360e19f0c9ee62e56690be0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.
Transparency logRelease files / tsgettoolbox_ncei-27.0.0-py3-none-any.whl
| Download URL | tsgettoolbox_ncei-27.0.0-py3-none-any.whl |
|---|---|
| Size | 39.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
225f9d4e8f363a3ae406edace246041ac1ed8d140579c8a42bba7b8c8bbe78e1
|
|
BLAKE2b-256 checksum How to use checksums |
d918a19d03c39212e3b3c6be150f0aedcc16ee8f870020b4b4af6ed2a5026684
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.
Transparency logSecurity for tsgettoolbox-ncei 27.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for tsgettoolbox_ncei-27.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.