Published January 13, 2023
| Version v0.40.0
Software
Open
Ouranosinc/xclim: v0.40.0
Creators
-
Logan, Travis1
-
Aoun, Abel2
-
Bourgault, Pascal1
-
Dupuis, Éric1
-
Huard, David1
-
Lavoie, Juliette1
-
Rondeau-Genesse, Gabriel1
-
Smith, Trevor James1
-
Alegre, Raquel3
-
Barnes, Clair3
-
Biner, Sébastien
- Caron, David4
- Ehbrecht, Carsten
-
Fyke, Jeremy5
-
Keel, Tom3
-
Labonté, Marie-Pier1
-
Lierhammer, Ludwig6
- Low, Jwen-Fai
- Quinn, Jamie3
- Roy, Philippe
-
Squire, Dougie7
- Stephens, Ag8
- Tanguy, Maliko9
- Whelan, Chistopher
- 1. Ouranos
- 2. CERFACS
- 3. University College London
- 4. @jakarto3d
- 5. ECCC
- 6. Helmholtz-Zentrum Hereon
- 7. CSIRO
- 8. STFC CEDA
- 9. CEH
Description
History
0.40.0 (2023-01-13)
Contributors to this version: Trevor James Smith (@Zeitsperre), Pascal Bourgault (@aulemahal), David Huard (@huard), Juliette Lavoie (@juliettelavoie).
New features and enhancements- Virtual modules can add variables to
xclim.core.utils.VARIABLESthrough the newvariablessection of the yaml files. (GH/1129, PR/1231). xclim.core.units.convert_units_tocan now perform automatic conversions based on the standard name of the input when needed. (GH/1205, PR/1206).- Conversion from amount (thickness) to flux (rate), using
amount2rateandrate2amount. - Conversion from amount to thickness for liquid water quantities, using the new
amount2lwethicknessandlwethickness2amount. This is similar to the implicit transformations enabled by the "hydro" unit context. - Passing
context='infer'will activate the "hydro" context if the source or the target are DataArrays with a standard name that is compatible, as decided by the newxclim.core.units.infer_contextfunction.
- Conversion from amount (thickness) to flux (rate), using
- New
genericindicator realm. Now holds indicators previously meant for streamflow analysis in thelandrealm:fit,return_level(previouslyfreq_analysis) andstats. (GH/1130, PR/1225). - Thresholds and other quantities passed as parameters of indicators can now be multi-dimensional
DataArrays.xarraybroadcasting mechanisms will apply. These parameters are now annotated as "Quantity" in the signatures (xclim.core.utils.Quantity), instead of "str" as before. Attributes where such thresholds where included will now read "<an array>" (french: "<une matrice>") for these new cases. Multi-dimensional quantities are still largely unsupported, except where documented in the docstring. (GH/1093, PR/1236).
- Rewrite of
xclim.core.calendar.time_bnds. It should now be more resilient and versatile, but allcftime_*andcfindex_*functions were removed. (GH/74, PR/1207). hydrocontext is not always enabled, as it led to unwanted unit conversions. Unit conversion operations now need to explicitly declare thehydrocontext to support conversions fromkg / m2 /stomm/day. (GH/1208, PR/1227).- Many previously deprecated indices and indicators have been removed from
xclim(PR/1228), with replacement indices/indicators suggested as follows:xclim.indicators.atmos.fire_weather_indexes→xclim.indicators.atmos.cffwis_indicesxclim.indices.freshet_start→xclim.indices.first_day_temperature_abovexclim.indices.first_day_above→xclim.indices.first_day_temperature_abovexclim.indices.first_day_below→xclim.indices.first_day_temperature_belowxclim.indices.tropical_nights→xclim.indices.tn_days_abovexclim.indices.generic.degree_days→xclim.indices.generic.cumulative_difference
- The following modules have been removed (PR/1228):
xclim.indices.fwi→ functions migrated toxclim.indices.firexclim.subset(mock submodule) → functions migrated toclisops.core.subset
- Indicators
standardized_precipitation_indexandstandardized_precipitation_evapotranspiration_indexwill now requirepr_calandwb_calas keyword arguments only. (PR/1236). - The internal object
PercentileDataArrayhas been removed. (PR/1236). - The
xclim.testing.utils.get_all_CMIP6_variablesandxclim.testing.utils.update_variable_yamlfunction were removed as the former was extremely slow and unusable. (PR/1258). - The wind speed input of
atmos.potential_evapotranspirationandatmos.water_budgetwas renamed tosfcWind(capital W) as this is the correct CMIP6 name. (PR/1258). - Indicator
land.stats,land.fitandland.freq_analysisare now deprecated and will be removed in version 0.43. They are being phased out in favor of generic indicatorsgeneric.stats,generic.fitandgeneric.return_levelrespectively. (GH/1130, PR/1225).
- The weighted ensemble statistics are now performed within a context in order to preserve data attributes. (GH/1232, PR/1234).
- The
make docsMakefile recipe was failing with an esoteric error. This has been resolved by splitting thelinkcheckanddocssteps into separate actions. (GH/1248. PR/1251). - The setup step for
pytestneeded to be addressed due to the fact that files were being accessed/modified by multiple tests at a time, causing segmentation faults in some tests. This has been resolved by splitting functions into those that fetch or generate test data (underxclim.testing.tests.data) and the fixtures that supply accessors to them (underxclim.testing.tests.conftest). (GH/1238, PR/1254). - Relaxed the expected output for
test_spatial_analogs[friedman_rafsky]to support expected results fromscikit-learn1.2.0. - The MBCn example in documentation has been fixed to properly imitate the source. (GH/1249, PR/1250).
- Streamflow indicators relying on indices defined in
xclim.indices.statswere not checking input variable units. These indicators will now raise an error if input data units are not m^3/s. (GH/1130, PR/1225). - Adjusted some documentation examples were not being rendered properly. (GH/1264, PR/1266).
- Minor adjustments to GitHub Actions workflows (newest Ubuntu images, updated actions version, better CI triggering). (PR/1221).
- Pint units
contextadded to various operations, tests andIndicatorattributes. (GH/1208, PR/1227). - Updated article from Alavoine & Grenier (2022) within documentation. Many article reference URLs have been updated to use HTTPS where possible. (GH/1246, PR/1247).
- Added relevant variable dataflag checks for potential evaporation, convective precipitation, and air pressure at sea level. (PR/1241).
- Documentation restructured to include
ReadMepage (asAbout) with some minor changes to documentation titles. (PR/1233). xclimdevelopment build now usesnbqato effectively run black checks over notebook cells. (PR/1233).- Some
toxrecipes (opt-slow,conda) are temporarily deactivated until atox>=4.0-compatibletox-condaplugin is released. (PR/1258). - A notebook (
extendingxclim.ipynb) has been updated to remove mentions of obsoletexclim.subsetmodule. (PR/1258). - Merge of sdba documentation from the module and the rst files, some cleanup and addition of a section refering to github issues. (PR/1230).
Files
Ouranosinc/xclim-v0.40.0.zip
Files
(897.8 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:b6597b5fbc1d0eaaf00f2d7979b88f40
|
897.8 kB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/Ouranosinc/xclim/tree/v0.40.0 (URL)