C2SM / iconarray

R&D Python package for processing ICON data with xarray
https://c2sm.github.io/iconarray/
BSD 3-Clause "New" or "Revised" License
10 stars 2 forks source link

add a scale_factor for the crop algorithm #44

Closed cosunae closed 1 year ago

cosunae commented 1 year ago

Description

the crop algorithms requires a resolution scale factor between the icon grid and an auxiliary latlon grid, use to ensure that only one grid cell will be contain in each latlon cell. A default of 0.3 works mostly, but sometimes depending on the grid this scale needs to be lower. In this PR we allow to pass the scale factor by argument, and the algorithm will raise if fails, asking the user to decrease the scale_factor

cosunae commented 1 year ago

launch jenkins