Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
## Changes in 0.3.5 (in development)

- Fixed a bug in `rectify_dataset` where the conversion from block-space indices to
global-space indices was incorrect when `output_indices_names` was provided.

## Changes in 0.3.4

- Added `utils.transform_resolution` to convert spatial resolution between coordinate
reference systems (CRS).


## Changes in 0.3.3

- Added function `utils.resolution_degrees_to_meters` to convert spatial resolution
from degrees to meters at a given geographic latitude.


## Changes in 0.3.2

- Change inconsistent license classifier in `pyproject.toml`
Expand Down
2 changes: 1 addition & 1 deletion xcube_resampling/rectify.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def _downscale_source_dataset(
interp_methods: Mapping[Hashable, SpatialInterpMethod],
agg_methods: SpatialAggMethods | None,
prevent_nan_propagations: PreventNaNPropagations,
) -> (xr.Dataset, GridMapping):
) -> tuple[xr.Dataset, GridMapping]:
if all(v in (0, "nearest") for v in interp_methods.values()):
return source_ds, source_gm

Expand Down
4 changes: 2 additions & 2 deletions xcube_resampling/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,10 +851,10 @@ def _map_to_source_indices(pixel_target_ij, indexing):
"""
offsets_x = da.zeros_like(pixel_target_ij[0])
offsets_y = da.zeros_like(pixel_target_ij[1])
th = offsets_x.chunksize[0]
tw = offsets_x.chunksize[1]

ny, nx = indexing.ij_bboxes.shape[1:]
th, tw = indexing.tile_size

for j in range(ny):
for i in range(nx):
bbox = indexing.ij_bboxes[:, j, i]
Expand Down
2 changes: 1 addition & 1 deletion xcube_resampling/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

__version__ = "0.3.4"
__version__ = "0.3.5.dev0"
Loading