ENH: [metadata] Make tx90p configurable threshold appears in metadata
bzah opened this issue · 0 comments
bzah commented
- icclim version: 5.2
- Python version: n/a
Description
tx90p and other similar indices can be configured with threshold
parameter.
However, in the output the resulting index name, should not be tx90p but rather tx{xx}p
, with {xx} being filled with the proper value.
Additionally we should probably support index_name=tx{xx}p
format when using icclim.index.
We could also generate a few more indices in the generated API using this format to have icclim.tx99p in the public API.
Minimal reproducible example
tx99p = icclim.index(index_name="tx90p", threshold=99, in_files="tasmax.nc")