You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added possibility to apply land or ocean mask if present in the file
Adapted method from ESMF to detect smashed cells
Masking degenerate (i.e. collapsed and smashed) cells
Dropping lat/lon bounds if an integrity check fails
Added a few attributes to the Grid object
clisops.ops.regrid: added option to request a land/sea mask for the output grid
clisops.utils.dataset_utils
Added function determine_lon_lat_range to determine the min. and max. lat and lon values
Added function fix_unmasked_missing_values_lon_lat to identify and mask yet unmasked missing values in lat and lon arrays
Added force parameter to cf_convert_between_lon_frames
Bug Fixes
clisops.utils.dataset_utils
Fixed issue in cf_convert_between_lon_frames causing the longitude frame to not be adjusted in case of NaNs in the longitude array
Addressed issues in generate_bounds_curvilinear
latitudes are now clipped above 90 or below -90 degrees north
longitudes are converted to longitude frame -180, 180
longitude bounds are adjusted at the Greenwich meridian or anti meridian to avoid grid cells wrapping once or more times around the globe
Bounds are generated significantly faster due to making use of index slicing and numpy.vectorize
Breaking Changes
Adapted functions from roocs_utils.xarray_utils.xarray_utils into clisops.utils.dataset_utils
get_coord_by_type now returns the name of the coordinate variable and not the coordinate variable
get_coord_by_type optionally returns a list with further matches for the coordinate variable
get_coord_by_type does no longer raise an exception when more than one coordinate variable matches the requested type
get_coord_by_type raises ValueError instead of Exception when the coordinate type is unknown
detect_coordinate raises KeyError instead of AttributeError if no coordinate could be detected
detect_gridtype raises ValueError for unsupported grid types rather than InvalidParameterValue and Exception
clisops.core.regrid
Grid.detect_coordinate: raises KeyError instead of AttributeError if no coordinate could be detected
clisops.ops.regrid
Regrid._calculate: issues UserWarning instead of letting clisops.core.Weights.__init__ raise an Exception when input and output grid are alike
Other Changes
The testing suite has been refactored to make better use of context handlers when opening files with xarray, preventing synonymous read errors and improving the overall performance of the tests.
Several tests that were failing due to significantly long runtimes have been marked as slow and are now skipped by default.
GitHub Workflows now use a timeout of 20 minutes for the build suite to prevent hanging builds.