-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix subdaily rate2amount, add hydro transformation from lwe thickness…
… to amount (#1963) ### What kind of change does this PR introduce? * The `_rate_to_amount_converter` relied on the `FREQ_UNITS` directly, now it goes through `infer_sampling_units` instead. In exchange for slightly more code, this fixes the issue for sub-daily freqs and gives a better error for frequencies xclim can't understand. * Add the "lwe thickness -> amount" hydro transformation. The inverse was already there. This is to go from a thickness of liquid water (ex: mm of rain) to an amount (ex: kg m-2), by multiplying by the liquid water density (1000 kg m-3). ### Does this PR introduce a breaking change? No.
- Loading branch information
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters