We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53ae524 commit 32c0967Copy full SHA for 32c0967
xrspatial/utils.py
@@ -704,9 +704,9 @@ def _extract_latlon_coords(agg: xr.DataArray):
704
if lat_vals.ndim == 1 and lon_vals.ndim == 1:
705
# Regular grid: broadcast to 2-D
706
lat_2d = np.broadcast_to(lat_vals[:, np.newaxis],
707
- (agg.sizes[dim_y], agg.sizes[dim_x])).copy()
+ (agg.sizes[dim_y], agg.sizes[dim_x]))
708
lon_2d = np.broadcast_to(lon_vals[np.newaxis, :],
709
710
elif lat_vals.ndim == 2 and lon_vals.ndim == 2:
711
lat_2d = lat_vals
712
lon_2d = lon_vals
0 commit comments