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 from the bleeding edge with pip:

pip install git+https://github.com/brews/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().

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.1.0a1.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

dearprudence-0.1.0a1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file dearprudence-0.1.0a1.tar.gz.

File metadata

  • Download URL: dearprudence-0.1.0a1.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for dearprudence-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 1a8eaaff2d1fe124f8a775c279991663098886b8b8f17cc04d8f1b34a8e5a5e3
MD5 3e48b4b0f4deef257faa2af141490375
BLAKE2b-256 55ceb1e9f5168ab64a43052952eefdab8d4b54cee4814ecc0453718e0f79a68c

See more details on using hashes here.

File details

Details for the file dearprudence-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: dearprudence-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for dearprudence-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 338cfa9a80f4be66541c342f3e94435223acc4f1bcc491513f6badadb16488e4
MD5 45d9ab87344edd25209a0659d6d2ac8f
BLAKE2b-256 4e6e7c891a2b6c81e3f3e456827e55a196634277fcf0e8a074bbf22ef9925bcd

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