ClimateImpactLab / dodola

Containerized application for running individual tasks in a larger, orchestrated CMIP6 bias-adjustment and downscaling workflow.
https://climateimpactlab.github.io/dodola/
Apache License 2.0
14 stars 7 forks source link

Port Diana Gergel's QPLAD from CIL xclim fork #197

Open brews opened 2 years ago

brews commented 2 years ago

This adds a port of @dgergel's QuantilePreservingAnalogDownscaling for QPLAD downscaling.

This is ported from a ClimateImpactLab fork of xclim.

Porting this code lets us run QPLAD in dodola without depending on pip-installing an old fork of xclim, instead, installing xclim from conda-forge. A xclim=0.30.1 dependency from conda-forge was added to environment.yaml because I think this is the last version the xclim fork synced from https://github.com/Ouranosinc/xclim. v0.30.1 of xclim was released Oct 1st, 2021. Currently, the latest version of xclim is v0.36.0.

brews commented 2 years ago

I had to move and rename a few things, but for the most part, the ported code is still intact and unharassed.

codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 74.28571% with 18 lines in your changes are missing coverage. Please review.

Project coverage is 88.59%. Comparing base (fa5d319) to head (0e8b56d). Report is 5 commits behind head on main.

Files Patch % Lines
dodola/core.py 74.28% 18 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #197 +/- ## ========================================== - Coverage 89.34% 88.59% -0.76% ========================================== Files 8 8 Lines 1352 1420 +68 ========================================== + Hits 1208 1258 +50 - Misses 144 162 +18 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.