Skip to main content

Load U.S. CRN data.

Project description

uscrn

Easily load U.S. CRN data.

Version on PyPI Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

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


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)

Uploaded Source

Built Distribution

uscrn-0.1.0b0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

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

Hashes for uscrn-0.1.0b0.tar.gz
Algorithm Hash digest
SHA256 a6603840a25936498324d3855fd7fd3044c2fcc17c6c834457fcac7e45258d7b
MD5 6471a23447d419133f5c140c34e7bbcc
BLAKE2b-256 ad46054db47bc9a2765027e746bf96f2c394e29e03907f910f87575681c0e18e

See more details on using hashes here.

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

Hashes for uscrn-0.1.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 84a2c01b401323ac67fef0782eb0da6b058cbe406aed51fcf377dd8dc8c5614c
MD5 8d413a9d23e02a1601f503bf9370b009
BLAKE2b-256 a959e7256aad4938f0e53f774c062252baa805b469ac0eb86f8172ea9c197507

See more details on using hashes here.

Provenance

Supported by

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