Load U.S. CRN data.
Project description
uscrn
Easily load U.S. CRN data.
Example:
import uscrn as crn
df = crn.get_data(2019, "hourly", n_jobs=6) # pandas.DataFrame
ds = crn.to_xarray(df) # xarray.Dataset
Both df
(pandas) and ds
(xarray) include dataset and variable metadata.
For df
, these are in df.attrs
and can be preserved by
writing to Parquet with the PyArrow engine with pandas v2.1+.
df.to_parquet("crn_2019_hourly.parquet", engine="pyarrow")
Mamba install example:
mamba create -n crn -c conda-forge python=3.10 joblib numpy pandas pyyaml requests xarray pyarrow netcdf4
mamba activate crn
pip install --no-deps uscrn
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
uscrn-0.1.0b0.tar.gz
(13.9 kB
view details)
Built Distribution
uscrn-0.1.0b0-py3-none-any.whl
(14.1 kB
view details)
File details
Details for the file uscrn-0.1.0b0.tar.gz
.
File metadata
- Download URL: uscrn-0.1.0b0.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6603840a25936498324d3855fd7fd3044c2fcc17c6c834457fcac7e45258d7b |
|
MD5 | 6471a23447d419133f5c140c34e7bbcc |
|
BLAKE2b-256 | ad46054db47bc9a2765027e746bf96f2c394e29e03907f910f87575681c0e18e |
Provenance
File details
Details for the file uscrn-0.1.0b0-py3-none-any.whl
.
File metadata
- Download URL: uscrn-0.1.0b0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a2c01b401323ac67fef0782eb0da6b058cbe406aed51fcf377dd8dc8c5614c |
|
MD5 | 8d413a9d23e02a1601f503bf9370b009 |
|
BLAKE2b-256 | a959e7256aad4938f0e53f774c062252baa805b469ac0eb86f8172ea9c197507 |