Skip to main content

Internal Python library filled with sugar for swallowing downscalingCMIP6 parameter files

Project description

Test

dearprudence

Internal Python library filled with sugar for swallowing downscalingCMIP6 parameter files.

This is a working prototype under active development. It may break things or radically change without warning.

Examples

import dearprudence


tasmax_spec = dearprudence.read_params("GFDL-ESM4-tasmax.yaml")

print(tasmax_spec[0].ssp)
# Cmip6Record(activity_id='ScenarioMIP',
#             experiment_id='ssp370', 
#             table_id='day', 
#             variable_id='tasmax', 
#             source_id='GFDL-ESM4', 
#             institution_id='NOAA-GFDL', 
#             member_id='r1i1p1f1',
#             grid_label='gr1',
#             version='20180701')

tasmax_spec[0].variable_id = "foobar"
dearprudence.write_params("pointlessly_modified.yaml", tasmax_spec)

if dearprudence.cmip6_catalog_has(tasmax_spec[0].ssp):
    print("Exists in CMIP6 In The Cloud!")

Installation

Install with pip using:

pip install dearprudence

dearprudence requires Python > 3.9. No external packages are required. The intake_esm package may need to be installed to use dearprudence.check_cmip6_catalog().

Install the unreleased bleeding-edge version of the package with:

pip install git+https://github.com/brews/dearprudence

Support

Source code is available online at https://github.com/brews/dearprudence/. This software is Open Source and available under the Apache License, Version 2.0.

Development

Please file bugs in the bug tracker.

Want to contribute? Great! Fork the main branch and file a pull request when you're ready. Please be sure to write unit tests and follow pep8. Fork away!

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

dearprudence-0.2.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

dearprudence-0.2.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file dearprudence-0.2.0.tar.gz.

File metadata

  • Download URL: dearprudence-0.2.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for dearprudence-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dc20d285d01088ae50f9e329913a98a6506ed2e60f3828a4e8e39c57967cb678
MD5 625d7b924c422b4383fef64fccb0d8b6
BLAKE2b-256 7e0b16def77d786aa331257f2a9684b4fed7087acb5e9d04011edd11fe06c24d

See more details on using hashes here.

File details

Details for the file dearprudence-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: dearprudence-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for dearprudence-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40e2c8437d1fda05028029ac2d884a4fad5f2c7910616e25bbc8b7c140048f96
MD5 2274f54c58fed6ca801b0a40175d66ce
BLAKE2b-256 0608aa3b422b08573eb863c2fa31628d7ee82df9667278de80cdc00542a9b221

See more details on using hashes here.

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