climix merge requestshttps://git.smhi.se/climix/climix/-/merge_requests2023-03-01T10:42:14Zhttps://git.smhi.se/climix/climix/-/merge_requests/204Index function for requested indices (fixes #282 #283)2023-03-01T10:42:14ZCarolina NilssonIndex function for requested indices (fixes #282 #283)Index function to compute thresholded occurrences. Name: CountThresholdedOccurrences, suggestion for another name?
Use -f to import metadata file with index definitions:
```
indices:
txgt0rrge1:
reference: SMHI
default_period:...Index function to compute thresholded occurrences. Name: CountThresholdedOccurrences, suggestion for another name?
Use -f to import metadata file with index definitions:
```
indices:
txgt0rrge1:
reference: SMHI
default_period: annual
output:
var_name: "txgt0rrge1"
standard_name:
proposed_standard_name:
long_name: "Number of precipitation days with daily minimum temperature above zero degC (Precip >= 1 and Tmin > 0)"
units: "1"
cell_methods:
- time: sum within days
- time: sum over days
input:
low_data: tasmin
high_data: pr
index_function:
name: count_thresholded_occurrences
parameters:
threshold_low_data:
kind: quantity
standard_name: air_temperature
long_name: "Level crossing value for daily air temperature"
data: 0
units: "degree_Celsius"
threshold_high_data:
kind: quantity
standard_name: lwe_precipitation_rate
long_name: "Wet day threshold"
data: 1
units: "mm day-1"
logical_condition:
kind: logical
base_operator:
logical:
and:
- low_data > threshold_low_data
- high_data >= threshold_high_data
ET:
short_name:
long_name:
definition:
comment:
txgt13lt18:
reference: SMHI
default_period: annual
output:
var_name: "txgt13lt18"
standard_name:
proposed_standard_name:
long_name: "Number of days with daily maximum temperature above thirteen degC and below eighteen degC (13 < Tmax < 18)"
units: "1"
cell_methods:
- time: sum within days
- time: sum over days
input:
data: tasmax
index_function:
name: count_thresholded_occurrences
parameters:
threshold_low_data:
kind: quantity
standard_name: air_temperature
long_name: "Level crossing value for daily air temperature"
data: 13
units: "degree_Celsius"
threshold_high_data:
kind: quantity
standard_name: air_temperature
long_name: "Level crossing value for daily air temperature"
data: 18
units: "degree_Celsius"
logical_condition:
kind: logical
base_operator:
logical:
and:
- low_data > threshold_low_data
- high_data < threshold_high_data
ET:
short_name:
long_name:
definition:
comment:
```0.17 (Black Lion)https://git.smhi.se/climix/climix/-/merge_requests/235Pinning numba<0.57 (fixes #322)2023-09-13T13:02:16ZJoakim LöwPinning numba<0.57 (fixes #322)Pinning `numba<0.57` because of issues with release 0.57Pinning `numba<0.57` because of issues with release 0.570.19 (Poco Mas)https://git.smhi.se/climix/climix/-/merge_requests/222Prepare pre-release 0.18.0rc12023-04-21T15:42:36ZKlaus ZimmermannPrepare pre-release 0.18.0rc1Klaus ZimmermannKlaus Zimmermannhttps://git.smhi.se/climix/climix/-/merge_requests/221Prepare pre-release 0.18.0rc12023-04-21T15:42:47ZKlaus ZimmermannPrepare pre-release 0.18.0rc1https://git.smhi.se/climix/climix/-/merge_requests/220Prepare pre-release 0.18.0rc12023-04-21T15:28:15ZKlaus ZimmermannPrepare pre-release 0.18.0rc1https://git.smhi.se/climix/climix/-/merge_requests/154Remove empty/inon-existing directories from input file list (closes #230)2021-07-06T15:10:53ZLars BärringRemove empty/inon-existing directories from input file list (closes #230)Klaus ZimmermannKlaus Zimmermannhttps://git.smhi.se/climix/climix/-/merge_requests/146Restructure logging to become more user-oriented (closes #190)2022-11-17T09:55:35ZLars BärringRestructure logging to become more user-oriented (closes #190)Note the comment in [main.py line 120](https://git.smhi.se/a001257/climix/-/commit/7967c3023a1a1ce91050dae96d7ca9636dd2b388#note_12701) regarding possible improvement (that I do not know how to solve (via a class??)Note the comment in [main.py line 120](https://git.smhi.se/a001257/climix/-/commit/7967c3023a1a1ce91050dae96d7ca9636dd2b388#note_12701) regarding possible improvement (that I do not know how to solve (via a class??)0.16Klaus ZimmermannKlaus Zimmermannhttps://git.smhi.se/climix/climix/-/merge_requests/194ThresholdedRunningStatistics.lazy_func(...) should call RunningStatistics.laz...2022-12-05T10:09:54ZJoakim LöwThresholdedRunningStatistics.lazy_func(...) should call RunningStatistics.lazy_func(...) (fixes #265)`ThresholdedRunningStatistics.lazy_func(...)` called `RunningStatistics.call_func(...)`, changed to call `RunningStatistics.lazy_func(...)` instead. Have tested with `rx5day` and `rx{ND}day` (using `rx1day` and `rx3day`) with same result...`ThresholdedRunningStatistics.lazy_func(...)` called `RunningStatistics.call_func(...)`, changed to call `RunningStatistics.lazy_func(...)` instead. Have tested with `rx5day` and `rx{ND}day` (using `rx1day` and `rx3day`) with same results before and after change.0.16https://git.smhi.se/climix/climix/-/merge_requests/155Updated guess_output_template with code from midas, after some changes (close...2022-09-28T13:32:20ZLars BärringUpdated guess_output_template with code from midas, after some changes (closes #231)0.16Klaus ZimmermannKlaus Zimmermannhttps://git.smhi.se/climix/climix/-/merge_requests/181Update Fork with changes in Upstream2022-10-19T13:29:19ZCarolina NilssonUpdate Fork with changes in UpstreamCarolina NilssonCarolina Nilssonhttps://git.smhi.se/climix/climix/-/merge_requests/5Update to better metadata handling2019-05-13T13:52:27ZLars BärringUpdate to better metadata handlingKlaus ZimmermannKlaus Zimmermannhttps://git.smhi.se/climix/climix/-/merge_requests/38Variable no_runs renamed to n_runs to avoid misunderstanding2019-05-28T12:49:38ZLars BärringVariable no_runs renamed to n_runs to avoid misunderstandingVariable named `no_runs` is easily misinterpreted to mean "no runs" rather than "number of runs". Thus changed to `n_runs` where the "n" part is often used to signify "number of".Variable named `no_runs` is easily misinterpreted to mean "no runs" rather than "number of runs". Thus changed to `n_runs` where the "n" part is often used to signify "number of".Klaus ZimmermannKlaus Zimmermannhttps://git.smhi.se/climix/climix/-/merge_requests/131WIP: Added debug logging of metadata files. Closes #186.2020-10-26T19:03:10ZLars BärringWIP: Added debug logging of metadata files. Closes #186.Added debug level logging of which directories are scanned for metadata and which index definition files are read.Added debug level logging of which directories are scanned for metadata and which index definition files are read.https://git.smhi.se/climix/climix/-/merge_requests/2WIP: Begin fixing 1) imports, 2) code formatting (a step towards PEP8)2019-02-22T15:11:16ZLars BärringWIP: Begin fixing 1) imports, 2) code formatting (a step towards PEP8)Main open issues at this stage:
* [ ] The dicts general_stuff and defaults (now in `meta/__init__.py`) need to go somewhere else [@Klaus: any ideas?]
* [ ] The metadata .json file should be moved to somewhere else [@Klaus: as per you...Main open issues at this stage:
* [ ] The dicts general_stuff and defaults (now in `meta/__init__.py`) need to go somewhere else [@Klaus: any ideas?]
* [ ] The metadata .json file should be moved to somewhere else [@Klaus: as per your suggestion]
* [ ] Introduction of logging instead of print is not complete [@Lars: to fix]
* [ ] All sorts of minor stuff (e.g. encoding line, and what not) as we go ... [@Lars: to fix]Klaus ZimmermannKlaus Zimmermannhttps://git.smhi.se/climix/climix/-/merge_requests/36WIP: FIrst go at beginning/end of spell2019-05-28T07:57:32ZLars BärringWIP: FIrst go at beginning/end of spell@a002160 : Could you have a look at the code and see if it has prospects to be merged [later]. If so, I will continue to create the corresponding metadata.yaml, which will be separate at least until later because these indices are non-ET.@a002160 : Could you have a look at the code and see if it has prospects to be merged [later]. If so, I will continue to create the corresponding metadata.yaml, which will be separate at least until later because these indices are non-ET.https://git.smhi.se/climix/climix/-/merge_requests/73WIP: Index function beginning of spell2022-09-15T00:56:49ZLars BärringWIP: Index function beginning of spellBeginning of spell with delay. "use case" is the *beginning of growing season* part of ETCCDI **`gsl`**Beginning of spell with delay. "use case" is the *beginning of growing season* part of ETCCDI **`gsl`**https://git.smhi.se/climix/climix/-/merge_requests/132WIP: Index function diurnal_temperature_range: introduce reducer as argument ...2021-02-18T21:21:54ZLars BärringWIP: Index function diurnal_temperature_range: introduce reducer as argument instead of being hard-coded (closes #187)Requires master_table.xlsx version that implements [cf_index_meta issue #13](https://bitbucket.org/cf-index-meta/cf-index-meta/issues/13/update-index-function-dtr-to-become-more)Requires master_table.xlsx version that implements [cf_index_meta issue #13](https://bitbucket.org/cf-index-meta/cf-index-meta/issues/13/update-index-function-dtr-to-become-more)Lars BärringLars Bärringhttps://git.smhi.se/climix/climix/-/merge_requests/42WIP: Index function first occurrence (following on from !37)2019-07-03T18:18:33ZLars BärringWIP: Index function first occurrence (following on from !37)0.7.0Lars BärringLars Bärringhttps://git.smhi.se/climix/climix/-/merge_requests/52WIP: index_function for first_occurence, and index First autumn frost (faf)2019-07-03T18:15:39ZLars BärringWIP: index_function for first_occurence, and index First autumn frost (faf)Resolved some initial issues. Remains
* error related to no standard name
* how to handle "no occurrence" differently from missing dataResolved some initial issues. Remains
* error related to no standard name
* how to handle "no occurrence" differently from missing data0.7.0Lars BärringLars Bärringhttps://git.smhi.se/climix/climix/-/merge_requests/54WIP: Index function last occurrence2019-07-04T07:30:31ZLars BärringWIP: Index function last occurrenceThis branch was tested by merging with branch `first_autumn_frost`. The following issues remains:
* [ ] proper metadata to distinguish between missing data and no occurrence (#93)
* [ ] day-of-year is counted from beginning of the sea...This branch was tested by merging with branch `first_autumn_frost`. The following issues remains:
* [ ] proper metadata to distinguish between missing data and no occurrence (#93)
* [ ] day-of-year is counted from beginning of the season, not beginning of the year (#94)
* [ ] the `first_autumn_frost` is an `annual` index (not a seasonal one) (#95)0.7.0Klaus ZimmermannKlaus Zimmermann