Intake interface to NOAA CO-OPS data
Project description
intake-coops
Intake interface to NOAA CO-OPS data
Uses the noaa_coops
package to read in NOAA CO-OPS data.
Currently limited to currents only with limited selections. Returns an xarray
Dataset, but there are intake
Sources for both DataFrame
and xarray
.
This is intake v1 still.
Project based on the cookiecutter science project template.
Installation
PyPI
>>> pip install intake-coops
Local installation
Clone from github (HTTPS or SSH)
>>> git clone https://github.com/axiom-data-science/intake-coops.git
Install environment file
>>> conda env create -f environment.yml
Activate new environment
>>> conda activate intake-coops
Install package locally in package directory
>>> pip install -e .
Example Usage
If you input to intake.open_coops_cat()
the keyword argument process_adcp=True
, the ADCP Dataset will contain velocity on u and v components, along- and across-channel components, and along- and across-channel subtidal signal (processed with pl33 tidal filter, also included).
import intake_coops
stations = ["COI0302", "COI0512"]
cat = intake_coops.COOPSCatalogReader(stations).read()
# sources in catalog
print(list(cat))
# look at a source
print(cat["COI0302"])
# read in data to a Dataset
ds = cat["COI0302"].read()
ds
<xarray.Dataset> Size: 3MB
Dimensions: (t: 8399, depth: 13)
Coordinates:
* t (t) datetime64[ns] 67kB 2003-07-16T00:08:00 ... 2003-08-19T23:...
* depth (depth) float64 104B 0.03 1.04 2.04 3.02 ... 10.03 11.03 12.04
longitude float64 8B -149.9
latitude float64 8B 61.27
Data variables:
b (t, depth) float64 873kB 13.0 12.0 11.0 10.0 ... 4.0 3.0 2.0 1.0
d (t, depth) float64 873kB 22.0 44.0 55.0 ... 211.0 211.0 212.0
s (t, depth) float64 873kB 37.1 55.6 45.4 21.3 ... 83.0 79.2 76.0
Development
To also develop this package, install additional packages with:
$ conda install --file requirements-dev.txt
To then check code before committing and pushing it to github, locally run
$ pre-commit run --all-files
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file intake_coops-0.4.0.tar.gz
.
File metadata
- Download URL: intake_coops-0.4.0.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00f7b0b1141f3c9e341d78caf9cd4c420ef470598c99be77b801587da31e9e8c |
|
MD5 | ec6da1c63f8b999c8ed47a74ea956fb1 |
|
BLAKE2b-256 | 02904da6e8a32045cc06b22eb168042786678b7a4c0b1da37003c965ad1d230c |
File details
Details for the file intake_coops-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: intake_coops-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9347dbcd98d2a947e3411bb5786203d4d2c3cb66d1e0b2243176c63d436ae607 |
|
MD5 | 6fe97a5ae19655392719c840548bb6b2 |
|
BLAKE2b-256 | 6e1380e088f7d5705c864dfba728da34308ebb9a199635ac5ffaf2572e74715a |