climix merge requestshttps://git.smhi.se/climix/climix/-/merge_requests2023-11-07T10:37:28Zhttps://git.smhi.se/climix/climix/-/merge_requests/185Add season_length index function2023-11-07T10:37:28ZJoakim LöwAdd season_length index functionAdd season_length index function
related to #216Add season_length index function
related to #2160.20 (Urbane Goat)https://git.smhi.se/climix/climix/-/merge_requests/245Fix to get integration tests configuration file discoverable. (fixes #325)2023-11-05T15:29:56ZJoakim LöwFix to get integration tests configuration file discoverable. (fixes #325)Using `__file__` to get path of importing package instead of `importlib.resources`.Using `__file__` to get path of importing package instead of `importlib.resources`.0.20 (Urbane Goat)https://git.smhi.se/climix/climix/-/merge_requests/244Implementation of new index (precip condition and double temperature condition)2023-11-05T13:23:53ZRenate WilckeImplementation of new index (precip condition and double temperature condition)Implemented new index function CountJointOccurrencesPrecipitationDoubleTemperature that takes in two climate variables, three conditions and three thresholds.
Implemented new index in yaml file tmgem2le2rrge1 using new index function.
C...Implemented new index function CountJointOccurrencesPrecipitationDoubleTemperature that takes in two climate variables, three conditions and three thresholds.
Implemented new index in yaml file tmgem2le2rrge1 using new index function.
Closes #3280.20 (Urbane Goat)Renate WilckeRenate Wilckehttps://git.smhi.se/climix/climix/-/merge_requests/243Added array_equal function and fixed issues in tests not passing (Fixes #335)2023-09-21T10:11:04ZCarolina NilssonAdded array_equal function and fixed issues in tests not passing (Fixes #335)0.20 (Urbane Goat)Carolina NilssonCarolina Nilssonhttps://git.smhi.se/climix/climix/-/merge_requests/242Update changelog for release 0.19.0 (closes #332)2023-09-14T12:18:50ZKlaus ZimmermannUpdate changelog for release 0.19.0 (closes #332)0.19 (Poco Mas)Klaus ZimmermannKlaus Zimmermannhttps://git.smhi.se/climix/climix/-/merge_requests/241Update index docs for clix-meta-0.6.0 (closes #331)2023-09-14T12:09:30ZKlaus ZimmermannUpdate index docs for clix-meta-0.6.0 (closes #331)0.19 (Poco Mas)Klaus ZimmermannKlaus Zimmermannhttps://git.smhi.se/climix/climix/-/merge_requests/237Updating clix-meta files to v0.6.0 (fixes #320)2023-09-14T12:07:04ZJoakim LöwUpdating clix-meta files to v0.6.0 (fixes #320)Updated `index_definitions.yml` and `variables.yml` to clix-meta v0.6.0.Updated `index_definitions.yml` and `variables.yml` to clix-meta v0.6.0.0.19 (Poco Mas)https://git.smhi.se/climix/climix/-/merge_requests/240Blackify source code (closes #330)2023-09-14T08:32:16ZKlaus ZimmermannBlackify source code (closes #330)0.19 (Poco Mas)Klaus ZimmermannKlaus Zimmermannhttps://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/238Fixes masked array issue with numba (fixes #322)2023-09-13T13:00:55ZCarolina NilssonFixes masked array issue with numba (fixes #322)Numba v-0.57.0 is raising an error for masked arrays since there is no support for them. This causes an issue for Spell_length and First_spell. Since the mask is strict, i.e, stored before the computation (for any grid-cell containing a ...Numba v-0.57.0 is raising an error for masked arrays since there is no support for them. This causes an issue for Spell_length and First_spell. Since the mask is strict, i.e, stored before the computation (for any grid-cell containing a masked value) and applied after, the mask is not affecting the computations.
To fix the error I fill the masked values with False (the data is bool because of a threshold comparison), which also returns a ordinary array.
The output is unchanged because of the strict masking.0.19 (Poco Mas)https://git.smhi.se/climix/climix/-/merge_requests/233Add unit tests for FirstOccurrence and LastOccurrence (fixes #311)2023-09-13T12:23:39ZCarolina NilssonAdd unit tests for FirstOccurrence and LastOccurrence (fixes #311)1. Unit tests has been added to FirsOccurence and LastOccurrence index functions.
2. FirstOccurrence returned 0 for the first day this is now changed to 1. This means that "something" that occurred on 1 Jan will give output: 1 [days]. Th...1. Unit tests has been added to FirsOccurence and LastOccurrence index functions.
2. FirstOccurrence returned 0 for the first day this is now changed to 1. This means that "something" that occurred on 1 Jan will give output: 1 [days]. This also matches the output from Last Occurrence.0.19 (Poco Mas)https://git.smhi.se/climix/climix/-/merge_requests/232Fixed unit tests for RunningStatistics and ThresholdedRunningStatistics (fixe...2023-07-03T15:50:07ZCarolina NilssonFixed unit tests for RunningStatistics and ThresholdedRunningStatistics (fixes #307)Fixed unit tests for running statistics and thresholded running statistics:
- Thresholded values in thresholded running statistics are set to 0 and included in the running view.
- For any masked input data the masking willm be strict, i....Fixed unit tests for running statistics and thresholded running statistics:
- Thresholded values in thresholded running statistics are set to 0 and included in the running view.
- For any masked input data the masking willm be strict, i.e. the whole grid-cell will be masked.
- If there are any masked values on the edges from previous/following fuse period the grid-cell will be masked.
- The first and last years edges are padded with NaN values and are not included in the fuse computation.0.19 (Poco Mas)https://git.smhi.se/climix/climix/-/merge_requests/229Fixed Percentile and ThresholdedPercentile not passing all unit tests (fixes ...2023-06-19T14:40:12ZCarolina NilssonFixed Percentile and ThresholdedPercentile not passing all unit tests (fixes #310)Percentile and ThresholdedPercentile now excludes masked values in the computation. The masking is now strict, which means that if there is a masked value in a gridcell in the input data the output for that gridcell is also masked.Percentile and ThresholdedPercentile now excludes masked values in the computation. The masking is now strict, which means that if there is a masked value in a gridcell in the input data the output for that gridcell is also masked.0.19 (Poco Mas)https://git.smhi.se/climix/climix/-/merge_requests/228Fixed CountJointOccurrences not passing unit tests (fixes #305)2023-05-24T14:39:03ZCarolina NilssonFixed CountJointOccurrences not passing unit tests (fixes #305)CountJointOccurrences could return true where parts of the input data was masked. Now, it will return false for any masked data. Since this function counts the number of occurrences, any masked data will now be counted as "not occurred"....CountJointOccurrences could return true where parts of the input data was masked. Now, it will return false for any masked data. Since this function counts the number of occurrences, any masked data will now be counted as "not occurred".
Strict masking has been implemented such that any masked input data in a gridcell will result in that gridcell being masked in the output.0.19 (Poco Mas)https://git.smhi.se/climix/climix/-/merge_requests/231Fixed RunningStatistics and ThresholdedRunningStatistics (fixes #307)2023-05-16T13:58:41ZCarolina NilssonFixed RunningStatistics and ThresholdedRunningStatistics (fixes #307)running_statistics and thresholded_running_statistics now handels masked data.
- If any sliding window contains a masked value the whole window will be masked. Allowing a grid-cell to have some masked value and still searching for a win...running_statistics and thresholded_running_statistics now handels masked data.
- If any sliding window contains a masked value the whole window will be masked. Allowing a grid-cell to have some masked value and still searching for a window without masked values.
- The mask will be preserved for the tail and head parts, which are attached to the pre-statistics.
- The post-processing function preserves the mask for the pre-statistics and the head and tail parts. The padding at the ends and the thresholded values are also masked.0.19 (Poco Mas)https://git.smhi.se/climix/climix/-/merge_requests/230Fixed cube_diff (fixes #314, fixes #313)2023-05-15T12:58:00ZCarolina NilssonFixed cube_diff (fixes #314, fixes #313)Added a doc string to var_name and removed deprecated `display.column_space`.Added a doc string to var_name and removed deprecated `display.column_space`.0.19 (Poco Mas)https://git.smhi.se/climix/climix/-/merge_requests/227Update changelog for bugfix release 0.18.12023-04-25T13:29:43ZKlaus ZimmermannUpdate changelog for bugfix release 0.18.1Klaus ZimmermannKlaus Zimmermannhttps://git.smhi.se/climix/climix/-/merge_requests/226Fix packaging (closes #312)2023-04-25T13:22:24ZKlaus ZimmermannFix packaging (closes #312)Klaus ZimmermannKlaus Zimmermannhttps://git.smhi.se/climix/climix/-/merge_requests/225Improve readthedocs config2023-04-25T13:12:46ZKlaus ZimmermannImprove readthedocs configKlaus ZimmermannKlaus Zimmermannhttps://git.smhi.se/climix/climix/-/merge_requests/224Update changelog for 0.18.02023-04-23T13:57:57ZKlaus ZimmermannUpdate changelog for 0.18.00.18 (Gull Olle)Klaus ZimmermannKlaus Zimmermann