Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Make sure dependant dataset is subset before resampling in coregistra…
Browse files Browse the repository at this point in the history
…tion

Closes #747
  • Loading branch information
Jānis Gailis committed Sep 18, 2018
1 parent 212609e commit 1e8a409
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cate/ops/coregistration.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def _resample_dataset(ds_master: xr.Dataset, ds_slave: xr.Dataset, method_us: in

lon = ds_master['lon'].sel(lon=lon_slice)
lat = ds_master['lat'].sel(lat=lat_slice)
ds_slave = ds_slave.sel(lon=lon_slice, lat=lat_slice)

with monitor.starting("coregister dataset", len(ds_slave.data_vars)):
kwargs = {'lon': lon, 'lat': lat, 'method_us': method_us, 'method_ds': method_ds, 'parent_monitor': monitor}
Expand Down

0 comments on commit 1e8a409

Please sign in to comment.