https://github.com/brews/dearprudence
Internal Python library filled with sugar for swallowing downscalingCMIP6 parameter files.
https://github.com/brews/dearprudence
cmip6 downscaling gdpcir library package python yaml
Last synced: about 1 year ago
JSON representation
Internal Python library filled with sugar for swallowing downscalingCMIP6 parameter files.
- Host: GitHub
- URL: https://github.com/brews/dearprudence
- Owner: brews
- License: apache-2.0
- Created: 2021-11-24T14:06:11.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T20:06:44.000Z (about 1 year ago)
- Last Synced: 2025-04-17T01:27:37.801Z (about 1 year ago)
- Topics: cmip6, downscaling, gdpcir, library, package, python, yaml
- Language: Python
- Homepage:
- Size: 399 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/brews/dearprudence/actions/workflows/test.yaml)
[](https://codecov.io/gh/brews/dearprudence)
# dearprudence
Internal Python library filled with sugar for swallowing downscalingCMIP6 parameter files.
## Examples
```python
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:
```shell
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:
```shell
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](https://github.com/brews/dearprudence/issues).
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](https://www.python.org/dev/peps/pep-0008/). Fork away!