Skip to main content

Internal Python library filled with sugar for swallowing downscalingCMIP6 parameter files

Project description

Test codecov

dearprudence

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

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 needs 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-1.0.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

dearprudence-1.0.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dearprudence-1.0.0.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for dearprudence-1.0.0.tar.gz
Algorithm Hash digest
SHA256 40cf1c50bef867c0640584b321072a119736f46baac36b1e2ed7eda1882d8a91
MD5 7424e35a72be127b49a38a7bfc6e4b57
BLAKE2b-256 3159f8fe255b53fc6d05e06e8852309c1e7a2c486c62fa277a163b765bb410b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearprudence-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 44d6e5f9abee81b82debed251b7d7aea2efca756b1ae55370af796ff2b5581fa
MD5 a3273bf93376da01dfcfd51766598517
BLAKE2b-256 020a4ca12771a269c4f1c2f326d76255f2c317747c6416570c4d029f846a7196

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