tsgettoolbox-ncei 27.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tsgettoolbox_ncei-27.0.0/.deepsource.toml +8 -0
- tsgettoolbox_ncei-27.0.0/.pre-commit-config.yaml +87 -0
- tsgettoolbox_ncei-27.0.0/.sourcery.yaml +77 -0
- tsgettoolbox_ncei-27.0.0/AUTHORS.rst +4 -0
- tsgettoolbox_ncei-27.0.0/BADGES.rst +19 -0
- tsgettoolbox_ncei-27.0.0/CHANGELOG.md +0 -0
- tsgettoolbox_ncei-27.0.0/CITATION.cff +30 -0
- tsgettoolbox_ncei-27.0.0/CONTRIBUTING.rst +115 -0
- tsgettoolbox_ncei-27.0.0/LICENSE.txt +24 -0
- tsgettoolbox_ncei-27.0.0/MANIFEST.in +50 -0
- tsgettoolbox_ncei-27.0.0/PKG-INFO +182 -0
- tsgettoolbox_ncei-27.0.0/README.rst +146 -0
- tsgettoolbox_ncei-27.0.0/VERSION +1 -0
- tsgettoolbox_ncei-27.0.0/pyproject.toml +95 -0
- tsgettoolbox_ncei-27.0.0/setup.cfg +4 -0
- tsgettoolbox_ncei-27.0.0/src/tsgettoolbox_ncei/__init__.py +11 -0
- tsgettoolbox_ncei-27.0.0/src/tsgettoolbox_ncei/ncei.py +5997 -0
- tsgettoolbox_ncei-27.0.0/src/tsgettoolbox_ncei.egg-info/PKG-INFO +182 -0
- tsgettoolbox_ncei-27.0.0/src/tsgettoolbox_ncei.egg-info/SOURCES.txt +20 -0
- tsgettoolbox_ncei-27.0.0/src/tsgettoolbox_ncei.egg-info/dependency_links.txt +1 -0
- tsgettoolbox_ncei-27.0.0/src/tsgettoolbox_ncei.egg-info/requires.txt +5 -0
- tsgettoolbox_ncei-27.0.0/src/tsgettoolbox_ncei.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
# See https://pre-commit.com for more information
|
|
3
|
+
# See https://pre-commit.com/hooks.html for more hooks
|
|
4
|
+
|
|
5
|
+
exclude: |
|
|
6
|
+
(?x)^(
|
|
7
|
+
.*\.dods|
|
|
8
|
+
.*\.dmr|
|
|
9
|
+
.*\.dmd|
|
|
10
|
+
.*\.wdm|
|
|
11
|
+
.*\.hbn
|
|
12
|
+
)$
|
|
13
|
+
|
|
14
|
+
repos:
|
|
15
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
16
|
+
rev: v6.0.0
|
|
17
|
+
hooks:
|
|
18
|
+
- id: check-case-conflict
|
|
19
|
+
- id: check-docstring-first
|
|
20
|
+
- id: check-executables-have-shebangs
|
|
21
|
+
- id: check-json
|
|
22
|
+
- id: check-merge-conflict
|
|
23
|
+
- id: check-shebang-scripts-are-executable
|
|
24
|
+
- id: check-toml
|
|
25
|
+
- id: check-xml
|
|
26
|
+
- id: end-of-file-fixer
|
|
27
|
+
exclude: notebooks/tstoolbox_plot_bash.sh
|
|
28
|
+
- id: mixed-line-ending
|
|
29
|
+
- id: trailing-whitespace
|
|
30
|
+
exclude: notebooks/tstoolbox_plot_bash.sh
|
|
31
|
+
|
|
32
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
33
|
+
# Ruff version.
|
|
34
|
+
rev: v0.16.9
|
|
35
|
+
hooks:
|
|
36
|
+
# Run the linter.
|
|
37
|
+
- id: ruff
|
|
38
|
+
types_or: [python, pyi, jupyter]
|
|
39
|
+
args: [--fix]
|
|
40
|
+
# Run the formatter.
|
|
41
|
+
- id: ruff-format
|
|
42
|
+
types_or: [python, pyi, jupyter]
|
|
43
|
+
|
|
44
|
+
- repo: https://github.com/pappasam/toml-sort
|
|
45
|
+
rev: v0.25.0
|
|
46
|
+
hooks:
|
|
47
|
+
- id: toml-sort-fix
|
|
48
|
+
args: [--in-place, --spaces-indent-inline-array, '4']
|
|
49
|
+
|
|
50
|
+
- repo: https://github.com/adrienverge/yamllint.git
|
|
51
|
+
rev: v1.38.0
|
|
52
|
+
hooks:
|
|
53
|
+
- id: yamllint
|
|
54
|
+
args: [--format, parsable, --strict]
|
|
55
|
+
|
|
56
|
+
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
|
|
57
|
+
rev: 0.2.3
|
|
58
|
+
hooks:
|
|
59
|
+
- id: yamlfmt
|
|
60
|
+
|
|
61
|
+
- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
|
62
|
+
rev: 3.0.0
|
|
63
|
+
hooks:
|
|
64
|
+
- id: shellcheck
|
|
65
|
+
args: [-s, bash]
|
|
66
|
+
|
|
67
|
+
- repo: https://github.com/lovesegfault/beautysh
|
|
68
|
+
rev: v6.4.3
|
|
69
|
+
hooks:
|
|
70
|
+
- id: beautysh
|
|
71
|
+
args: [--indent-size, '4']
|
|
72
|
+
|
|
73
|
+
- repo: https://github.com/asottile/blacken-docs
|
|
74
|
+
rev: 1.20.0
|
|
75
|
+
hooks:
|
|
76
|
+
- id: blacken-docs
|
|
77
|
+
|
|
78
|
+
- repo: https://github.com/asottile/pyupgrade
|
|
79
|
+
rev: v3.21.2
|
|
80
|
+
hooks:
|
|
81
|
+
- id: pyupgrade
|
|
82
|
+
|
|
83
|
+
- repo: https://github.com/commitizen-tools/commitizen
|
|
84
|
+
rev: v4.19.0
|
|
85
|
+
hooks:
|
|
86
|
+
- id: commitizen
|
|
87
|
+
stages: [commit-msg]
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 🪄 This is your project's Sourcery configuration file.
|
|
3
|
+
|
|
4
|
+
# You can use it to get Sourcery working in the way you want, such as
|
|
5
|
+
# ignoring specific refactorings, skipping directories in your project,
|
|
6
|
+
# or writing custom rules.
|
|
7
|
+
|
|
8
|
+
# 📚 For a complete reference to this file, see the documentation at
|
|
9
|
+
# https://docs.sourcery.ai/Configuration/Project-Settings/
|
|
10
|
+
|
|
11
|
+
# This file was auto-generated by Sourcery on 2023-11-19 at 01:27.
|
|
12
|
+
|
|
13
|
+
version: '1' # The schema version of this config file
|
|
14
|
+
|
|
15
|
+
ignore: # A list of paths or files which Sourcery will ignore.
|
|
16
|
+
- .git
|
|
17
|
+
- venv
|
|
18
|
+
- .venv
|
|
19
|
+
- env
|
|
20
|
+
- .env
|
|
21
|
+
- .tox
|
|
22
|
+
- node_modules
|
|
23
|
+
- vendor
|
|
24
|
+
|
|
25
|
+
rule_settings:
|
|
26
|
+
enable:
|
|
27
|
+
- default
|
|
28
|
+
disable: [] # A list of rule IDs Sourcery will never suggest.
|
|
29
|
+
rule_types:
|
|
30
|
+
- refactoring
|
|
31
|
+
- suggestion
|
|
32
|
+
- comment
|
|
33
|
+
# A string specifying the lowest Python version your project supports.
|
|
34
|
+
# Sourcery will not suggest refactorings requiring a higher Python version.
|
|
35
|
+
python_version: '3.8'
|
|
36
|
+
|
|
37
|
+
# rules: # A list of custom rules Sourcery will include in its analysis.
|
|
38
|
+
# - id: no-print-statements
|
|
39
|
+
# description: Do not use print statements in the test directory.
|
|
40
|
+
# pattern: print(...)
|
|
41
|
+
# language: python
|
|
42
|
+
# replacement:
|
|
43
|
+
# condition:
|
|
44
|
+
# explanation:
|
|
45
|
+
# paths:
|
|
46
|
+
# include:
|
|
47
|
+
# - test
|
|
48
|
+
# exclude:
|
|
49
|
+
# - conftest.py
|
|
50
|
+
# tests: []
|
|
51
|
+
# tags: []
|
|
52
|
+
|
|
53
|
+
# rule_tags: {} # Additional rule tags.
|
|
54
|
+
|
|
55
|
+
# metrics:
|
|
56
|
+
# quality_threshold: 25.0
|
|
57
|
+
|
|
58
|
+
# github:
|
|
59
|
+
# labels: []
|
|
60
|
+
# ignore_labels:
|
|
61
|
+
# - sourcery-ignore
|
|
62
|
+
# request_review: author
|
|
63
|
+
# sourcery_branch: sourcery/{base_branch}
|
|
64
|
+
|
|
65
|
+
# clone_detection:
|
|
66
|
+
# min_lines: 3
|
|
67
|
+
# min_duplicates: 2
|
|
68
|
+
# identical_clones_only: false
|
|
69
|
+
|
|
70
|
+
# proxy:
|
|
71
|
+
# url:
|
|
72
|
+
# ssl_certs_file:
|
|
73
|
+
# no_ssl_verify: false
|
|
74
|
+
|
|
75
|
+
# coding_assistant:
|
|
76
|
+
# project_description: ''
|
|
77
|
+
# enabled:
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.. image:: https://img.shields.io/coveralls/github/timcera/tsgettoolbox
|
|
2
|
+
:alt: Test Coverage
|
|
3
|
+
:target: https://coveralls.io/r/timcera/tsgettoolbox?branch=master
|
|
4
|
+
:height: 20
|
|
5
|
+
|
|
6
|
+
.. image:: https://img.shields.io/pypi/v/tsgettoolbox.svg
|
|
7
|
+
:alt: Latest release
|
|
8
|
+
:target: https://pypi.python.org/pypi/tsgettoolbox/
|
|
9
|
+
:height: 20
|
|
10
|
+
|
|
11
|
+
.. image:: https://img.shields.io/pypi/l/tsgettoolbox.svg
|
|
12
|
+
:alt: BSD-3 clause license
|
|
13
|
+
:target: https://pypi.python.org/pypi/tsgettoolbox/
|
|
14
|
+
:height: 20
|
|
15
|
+
|
|
16
|
+
.. image:: https://img.shields.io/pypi/pyversions/tsgettoolbox
|
|
17
|
+
:alt: PyPI - Python Version
|
|
18
|
+
:target: https://pypi.org/project/tsgettoolbox/
|
|
19
|
+
:height: 20
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This CITATION.cff file was generated with cffinit.
|
|
2
|
+
# Visit https://bit.ly/cffinit to generate yours today!
|
|
3
|
+
|
|
4
|
+
cff-version: 1.2.0
|
|
5
|
+
title: tsgettoolbox
|
|
6
|
+
message: >-
|
|
7
|
+
If you use this software, please cite it using the
|
|
8
|
+
metadata from this file.
|
|
9
|
+
type: software
|
|
10
|
+
authors:
|
|
11
|
+
- given-names: Timothy
|
|
12
|
+
family-names: Cera
|
|
13
|
+
email: tim@cerazone.net
|
|
14
|
+
orcid: 'https://orcid.org/0000-0003-4613-7697'
|
|
15
|
+
repository-code: 'https://github.com/timcera/tsgettoolbox'
|
|
16
|
+
url: 'https://timcera.bitbucket.io'
|
|
17
|
+
repository: 'https://bitbucket.org/timcera/tsgettoolbox'
|
|
18
|
+
repository-artifact: 'https://pypi.org/project/tsgettoolbox/'
|
|
19
|
+
abstract: >-
|
|
20
|
+
tsgettoolbox is a small Python library for downloading and
|
|
21
|
+
reformatting hydrologic and meteorologic time-series data
|
|
22
|
+
from various internet sources.
|
|
23
|
+
keywords:
|
|
24
|
+
- time-series
|
|
25
|
+
- uri
|
|
26
|
+
- url
|
|
27
|
+
- hydrology
|
|
28
|
+
- meteorology
|
|
29
|
+
- rest
|
|
30
|
+
license: BSD-3-Clause
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
============
|
|
2
|
+
Contributing
|
|
3
|
+
============
|
|
4
|
+
Contributions are welcome, and they are greatly appreciated! Every
|
|
5
|
+
little bit helps, and credit will always be given.
|
|
6
|
+
|
|
7
|
+
You can contribute in many ways:
|
|
8
|
+
|
|
9
|
+
Types of Contributions
|
|
10
|
+
----------------------
|
|
11
|
+
|
|
12
|
+
Report Bugs
|
|
13
|
+
~~~~~~~~~~~
|
|
14
|
+
Report bugs at https://github.com/timcera/tsgettoolbox_ncei
|
|
15
|
+
|
|
16
|
+
If you are reporting a bug, please include:
|
|
17
|
+
|
|
18
|
+
* Your operating system name and version.
|
|
19
|
+
* Any details about your local setup that might be helpful in troubleshooting.
|
|
20
|
+
* Detailed steps to reproduce the bug.
|
|
21
|
+
|
|
22
|
+
Fix Bugs
|
|
23
|
+
~~~~~~~~
|
|
24
|
+
Look through the github issues for bugs. Anything tagged with "bug" is open to
|
|
25
|
+
whoever wants to implement it.
|
|
26
|
+
|
|
27
|
+
Implement Features
|
|
28
|
+
~~~~~~~~~~~~~~~~~~
|
|
29
|
+
Look through the github issues for features. Anything tagged with "feature" is
|
|
30
|
+
open to whoever wants to implement it.
|
|
31
|
+
|
|
32
|
+
Write Documentation
|
|
33
|
+
~~~~~~~~~~~~~~~~~~~
|
|
34
|
+
tsgettoolbox_ncei could always use more documentation, whether as part of the
|
|
35
|
+
official tsgettoolbox_ncei docs or in docstrings.
|
|
36
|
+
|
|
37
|
+
Submit Feedback
|
|
38
|
+
~~~~~~~~~~~~~~~
|
|
39
|
+
The best way to send feedback is to file an issue at
|
|
40
|
+
https://github.com/timcera/tsgettoolbox_ncei
|
|
41
|
+
|
|
42
|
+
If you are proposing a feature:
|
|
43
|
+
|
|
44
|
+
* Explain in detail how it would work.
|
|
45
|
+
* Keep the scope as narrow as possible, to make it easier to implement.
|
|
46
|
+
* Remember that this is a volunteer-driven project, and that contributions
|
|
47
|
+
are welcome :)
|
|
48
|
+
|
|
49
|
+
Get Started!
|
|
50
|
+
------------
|
|
51
|
+
Ready to contribute? Here's how to set up `tsgettoolbox_ncei` for local development.
|
|
52
|
+
|
|
53
|
+
1. Fork the `tsgettoolbox_ncei` repo at
|
|
54
|
+
https://github.com/timcera/tsgettoolbox_ncei
|
|
55
|
+
|
|
56
|
+
2. Clone your fork locally::
|
|
57
|
+
|
|
58
|
+
$ git clone git@github.com:your_github_login/tsgettoolbox_ncei.git
|
|
59
|
+
|
|
60
|
+
3. Create a virtual python environment with `pip` or `conda` (whatever you
|
|
61
|
+
prefer) and activate it, and install `tsgettoolbox_ncei` in development
|
|
62
|
+
mode::
|
|
63
|
+
|
|
64
|
+
# Using conda would be something like this:
|
|
65
|
+
$ conda create -n tsgettoolbox_ncei python=3.11
|
|
66
|
+
$ conda activate tsgettoolbox_ncei
|
|
67
|
+
$ cd tsgettoolbox_ncei/
|
|
68
|
+
|
|
69
|
+
# The following command will list all the dependencies that will be
|
|
70
|
+
# installed, but not actually install them.
|
|
71
|
+
$ python -m pip install --dry-run -e .
|
|
72
|
+
|
|
73
|
+
# Use conda to install the dependencies listed above, excluding
|
|
74
|
+
# tsgettoolbox_ncei itself. For example:
|
|
75
|
+
$ conda install -c conda-forge numpy pandas
|
|
76
|
+
|
|
77
|
+
# Now install tsgettoolbox_ncei in development mode.
|
|
78
|
+
$ python -m pip install -e .
|
|
79
|
+
|
|
80
|
+
4. For linting, reformatting, and testing you also need to install ruff and
|
|
81
|
+
pytest::
|
|
82
|
+
|
|
83
|
+
$ conda install -c conda-forge ruff pytest
|
|
84
|
+
|
|
85
|
+
5. Create a branch for local development::
|
|
86
|
+
|
|
87
|
+
$ git checkout -b name-of-your-bugfix-or-feature
|
|
88
|
+
|
|
89
|
+
Now you can make your changes locally.
|
|
90
|
+
|
|
91
|
+
6. When you're done making changes, check that your changes pass pytest, the
|
|
92
|
+
ruff linter and ruff formatter.::
|
|
93
|
+
|
|
94
|
+
$ ruff check -f --select "I" .
|
|
95
|
+
$ ruff format .
|
|
96
|
+
$ pytest
|
|
97
|
+
|
|
98
|
+
7. Commit your changes and push your branch to github::
|
|
99
|
+
|
|
100
|
+
$ git add . # or choose the specific files you want to add
|
|
101
|
+
$ git commit -m "Your detailed description of your changes."
|
|
102
|
+
$ git push origin name-of-your-bugfix-or-feature
|
|
103
|
+
|
|
104
|
+
8. Submit a pull request through the github website.
|
|
105
|
+
|
|
106
|
+
Pull Request Guidelines
|
|
107
|
+
-----------------------
|
|
108
|
+
|
|
109
|
+
Before you submit a pull request, check that it meets these guidelines:
|
|
110
|
+
|
|
111
|
+
1. The pull request should include tests.
|
|
112
|
+
2. If the pull request adds functionality, the docs should be updated. Put
|
|
113
|
+
your new functionality into a function with a docstring, and add the
|
|
114
|
+
feature to the list in README.rst.
|
|
115
|
+
3. The pull request should work for Python 3.10 and above.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Copyright (c) 2013, Tim Cera
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
|
6
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
7
|
+
this list of conditions and the following disclaimer.
|
|
8
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
9
|
+
this list of conditions and the following disclaimer in the documentation
|
|
10
|
+
and/or other materials provided with the distribution.
|
|
11
|
+
* Neither the name tsgettoolbox nor the names of its contributors may be
|
|
12
|
+
used to endorse or promote products derived from this software without
|
|
13
|
+
specific prior written permission.
|
|
14
|
+
|
|
15
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
16
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
17
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
18
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE
|
|
19
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
20
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
21
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
22
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
23
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
24
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
include *.cff
|
|
2
|
+
include *.in
|
|
3
|
+
include *.md
|
|
4
|
+
include *.rst
|
|
5
|
+
include *.toml
|
|
6
|
+
include *.txt
|
|
7
|
+
include *.yaml
|
|
8
|
+
include .gitmodules
|
|
9
|
+
recursive-include docs *.bat
|
|
10
|
+
recursive-include docs *.png
|
|
11
|
+
recursive-include docs *.py
|
|
12
|
+
recursive-include docs *.rst
|
|
13
|
+
recursive-include docs Makefile
|
|
14
|
+
recursive-include notebooks *.csv
|
|
15
|
+
recursive-include notebooks *.ipynb
|
|
16
|
+
recursive-include notebooks *.png
|
|
17
|
+
recursive-include notebooks *.py
|
|
18
|
+
recursive-include notebooks *.sh
|
|
19
|
+
recursive-include src *.bat
|
|
20
|
+
recursive-include src *.csv
|
|
21
|
+
recursive-include src *.dat
|
|
22
|
+
recursive-include src *.hbn
|
|
23
|
+
recursive-include src *.in
|
|
24
|
+
recursive-include src *.md
|
|
25
|
+
recursive-include src *.plt
|
|
26
|
+
recursive-include src *.rst
|
|
27
|
+
recursive-include src *.sh
|
|
28
|
+
recursive-include src *.toml
|
|
29
|
+
recursive-include src *.txt
|
|
30
|
+
recursive-include src *.wdm
|
|
31
|
+
recursive-include src *.xlsx
|
|
32
|
+
recursive-include src *.yaml
|
|
33
|
+
recursive-include src *.yml
|
|
34
|
+
recursive-include src Makefile
|
|
35
|
+
recursive-include src *.py
|
|
36
|
+
|
|
37
|
+
recursive-exclude tests *.cfm
|
|
38
|
+
recursive-exclude tests *.csv
|
|
39
|
+
recursive-exclude tests *.data
|
|
40
|
+
recursive-exclude tests *.dly
|
|
41
|
+
recursive-exclude tests *.htm
|
|
42
|
+
recursive-exclude tests *.html
|
|
43
|
+
recursive-exclude tests *.img
|
|
44
|
+
recursive-exclude tests *.jp2
|
|
45
|
+
recursive-exclude tests *.json
|
|
46
|
+
recursive-exclude tests *.py
|
|
47
|
+
recursive-exclude tests *.tar
|
|
48
|
+
recursive-exclude tests *.txt
|
|
49
|
+
recursive-exclude tests *.xml
|
|
50
|
+
recursive-exclude tests *.zip
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tsgettoolbox_ncei
|
|
3
|
+
Version: 27.0.0
|
|
4
|
+
Summary: Plugin for tsgettoolbox to access NOAA National Centers for Environmental Information (NCEI) data.
|
|
5
|
+
Author-email: Tim Cera <tim@cerazone.net>
|
|
6
|
+
License-Expression: BSD-3-Clause
|
|
7
|
+
Project-URL: bitbucket, https://bitbucket.org/timcera/tsgettoolbox_ncei/src/main/
|
|
8
|
+
Project-URL: documentation, https://timcera.bitbucket.io/tsgettoolbox/docs/index.html#tsgettoolbox-documentation
|
|
9
|
+
Project-URL: github, https://github.com/timcera/tsgettoolbox_ncei
|
|
10
|
+
Keywords: rest,time-series,uri,url,web_services
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
15
|
+
Classifier: Intended Audience :: Science/Research
|
|
16
|
+
Classifier: Natural Language :: English
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
25
|
+
Classifier: Topic :: Scientific/Engineering
|
|
26
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
27
|
+
Requires-Python: >=3.10
|
|
28
|
+
Description-Content-Type: text/x-rst
|
|
29
|
+
License-File: LICENSE.txt
|
|
30
|
+
Requires-Dist: numpy
|
|
31
|
+
Requires-Dist: pandas
|
|
32
|
+
Requires-Dist: platformdirs
|
|
33
|
+
Requires-Dist: requests
|
|
34
|
+
Requires-Dist: tsgettoolbox>=27.0.0
|
|
35
|
+
Dynamic: license-file
|
|
36
|
+
|
|
37
|
+
.. image:: https://img.shields.io/coveralls/github/timcera/tsgettoolbox_ncei
|
|
38
|
+
:alt: Test Coverage
|
|
39
|
+
:target: https://coveralls.io/r/timcera/tsgettoolbox_ncei?branch=master
|
|
40
|
+
:height: 20
|
|
41
|
+
|
|
42
|
+
.. image:: https://img.shields.io/pypi/v/tsgettoolbox_ncei
|
|
43
|
+
:alt: Latest release
|
|
44
|
+
:target: https://pypi.python.org/pypi/tsgettoolbox_ncei/
|
|
45
|
+
:height: 20
|
|
46
|
+
|
|
47
|
+
.. image:: https://img.shields.io/pypi/l/tsgettoolbox_ncei
|
|
48
|
+
:alt: BSD-3 clause license
|
|
49
|
+
:target: https://pypi.python.org/pypi/tsgettoolbox_ncei/
|
|
50
|
+
:height: 20
|
|
51
|
+
|
|
52
|
+
.. image:: https://img.shields.io/pypi/pyversions/tsgettoolbox_ncei
|
|
53
|
+
:alt: PyPI - Python Version
|
|
54
|
+
:target: https://pypi.org/project/tsgettoolbox_ncei/
|
|
55
|
+
:height: 20
|
|
56
|
+
|
|
57
|
+
tsgettoolbox_ncei - Quick Guide
|
|
58
|
+
===============================
|
|
59
|
+
The 'tsgettoolbox_ncei' is a plugin-in for 'tsgettoolbox' that supplies
|
|
60
|
+
a command line interface and Python library to get time-series data from the
|
|
61
|
+
California Data Exchange Center (CDEC). The tsgettoolbox_ncei will work with
|
|
62
|
+
Python and 3.10+.
|
|
63
|
+
|
|
64
|
+
Documentation
|
|
65
|
+
-------------
|
|
66
|
+
Reference documentation is at `tsgettoolbox NCEI API`_.
|
|
67
|
+
|
|
68
|
+
Installation
|
|
69
|
+
------------
|
|
70
|
+
At the command line::
|
|
71
|
+
|
|
72
|
+
$ pip install tsgettoolbox_ncei
|
|
73
|
+
|
|
74
|
+
OR
|
|
75
|
+
|
|
76
|
+
$ conda install -c conda-forge tsgettoolbox_ncei
|
|
77
|
+
|
|
78
|
+
Usage Summary - Command Line
|
|
79
|
+
----------------------------
|
|
80
|
+
Just run 'tsgettoolbox --help' to get a list of subcommands. To get detailed
|
|
81
|
+
help for a particular sub-command, for instance 'ncei', type 'tsgettoolbox
|
|
82
|
+
ncei --help'.
|
|
83
|
+
|
|
84
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
85
|
+
| Sub-command | Spatial | Time | Type | Time | Description |
|
|
86
|
+
| | Extent | Extent | | Interval | |
|
|
87
|
+
+=================+=========+========+=========+==========+=======================+
|
|
88
|
+
| ncei_ghcnd_ftp | global | varies | station | D | NCEI Global |
|
|
89
|
+
| | | | | | Historical |
|
|
90
|
+
| | | | | | Climatology Network - |
|
|
91
|
+
| | | | | | Daily (GHCND) from |
|
|
92
|
+
| | | | | | FTP server. |
|
|
93
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
94
|
+
| ncei_ghcnd | global | varies | station | D | NCEI Global |
|
|
95
|
+
| | | | | | Historical |
|
|
96
|
+
| | | | | | Climatology Network - |
|
|
97
|
+
| | | | | | Daily (GHCND) from |
|
|
98
|
+
| | | | | | web services. |
|
|
99
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
100
|
+
| ncei_gsod | global | varies | station | D | NCEI Global Summary |
|
|
101
|
+
| | | | | | of the Day (GSOD) |
|
|
102
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
103
|
+
| ncei_gsom | global | varies | station | M | NCEI Global Summary |
|
|
104
|
+
| | | | | | of the Month (GSOM) |
|
|
105
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
106
|
+
| ncei_gsoy | global | varies | station | A | NCEI Global Summary |
|
|
107
|
+
| | | | | | of Year |
|
|
108
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
109
|
+
| ncei_normal_ann | global | varies | station | A | NCEI annual normals |
|
|
110
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
111
|
+
| ncei_normal_dly | global | varies | station | D | NCEI daily normals |
|
|
112
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
113
|
+
| ncei_normal_hly | global | varies | station | H | NCEI hourly normals |
|
|
114
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
115
|
+
| ncei_normal_mly | global | varies | station | M | NCEI monthly normals |
|
|
116
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
117
|
+
| ncei_precip_15 | global | varies | station | 15T | NCEI 15 minute |
|
|
118
|
+
| | | | | | precipitation |
|
|
119
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
120
|
+
| ncei_precip_hly | global | varies | station | H | NCEI hourly |
|
|
121
|
+
| | | | | | precipitation |
|
|
122
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
123
|
+
| ncei_annual | global | varies | station | A | NCEI annual data |
|
|
124
|
+
| | | | | | summaries |
|
|
125
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
126
|
+
| ncei_ghcndms | global | varies | station | M | NCEI GHCND Monthly |
|
|
127
|
+
| | | | | | Summaries (GHCNDMS) |
|
|
128
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
129
|
+
| ncei_ish | global | varies | station | H | NCEI Integrated |
|
|
130
|
+
| | | | | | Surface hourly |
|
|
131
|
+
+-----------------+---------+--------+---------+----------+-----------------------+
|
|
132
|
+
|
|
133
|
+
+-------------------+-------------+
|
|
134
|
+
| Time Interval | Description |
|
|
135
|
+
| Code | |
|
|
136
|
+
+===================+=============+
|
|
137
|
+
| T | Minute |
|
|
138
|
+
+-------------------+-------------+
|
|
139
|
+
| H | Hourly |
|
|
140
|
+
+-------------------+-------------+
|
|
141
|
+
| D | Daily |
|
|
142
|
+
+-------------------+-------------+
|
|
143
|
+
| M | Monthly |
|
|
144
|
+
+-------------------+-------------+
|
|
145
|
+
| A | Annual |
|
|
146
|
+
+-------------------+-------------+
|
|
147
|
+
|
|
148
|
+
Usage Summary - Python Library
|
|
149
|
+
------------------------------
|
|
150
|
+
To use the tsgettoolbox in a project::
|
|
151
|
+
|
|
152
|
+
from tsgettoolbox import tsgettoolbox
|
|
153
|
+
start_date = "2010-01-01"
|
|
154
|
+
end_date = "2013-01-01"
|
|
155
|
+
df = tsgettoolbox.ncei_precip_hly(
|
|
156
|
+
"COOP:087440",
|
|
157
|
+
start_date=start_date,
|
|
158
|
+
end_date=end_date,
|
|
159
|
+
)
|
|
160
|
+
print(df.head())
|
|
161
|
+
|
|
162
|
+
Refer to the API Documentation at `tsgettoolbox NCEI API`_.
|
|
163
|
+
|
|
164
|
+
Usage Summary - Command Line
|
|
165
|
+
----------------------------
|
|
166
|
+
|
|
167
|
+
tsgettoolbox ncei_precip_hly \
|
|
168
|
+
"COOP:087440" \
|
|
169
|
+
--start_date="2010-01-01" \
|
|
170
|
+
--end_date="2013-01-01" > output.csv
|
|
171
|
+
|
|
172
|
+
Refer to the command line documentation at `tsgettoolbox NCEI CLI`_.
|
|
173
|
+
|
|
174
|
+
Development
|
|
175
|
+
~~~~~~~~~~~
|
|
176
|
+
Development is managed on bitbucket or github.
|
|
177
|
+
https://bitbucket.org/timcera/tsgettoolbox_ncei/overview.
|
|
178
|
+
https://github.com/timcera/tsgettoolbox_ncei
|
|
179
|
+
|
|
180
|
+
.. _tsgettoolbox_documentation: https://timcera.bitbucket.io/linked_pkg_dirs/tsgettoolbox/docs/index.html
|
|
181
|
+
.. _tsgettoolbox NCEI API: https://timcera.bitbucket.io/linked_pkg_dirs/tsgettoolbox/docs/_function_autosummary/tsgettoolbox.ncei_annual.html
|
|
182
|
+
.. _tsgettoolbox NCEI CLI: https://timcera.bitbucket.io/linked_pkg_dirs/tsgettoolbox/docs/command_line.html#ncei-annual
|