Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR]: Regridding nan update (dask part only) #634

Merged
merged 1 commit into from
Apr 2, 2024
Merged
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
4 changes: 2 additions & 2 deletions xcdat/regridder/regrid2.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _regrid(
lon_mapping, lon_weights = _map_longitude(src_lon_bnds, dst_lon_bnds)

# convert to pure numpy
input_data = input_data_var.astype(np.float32).data
input_data = input_data_var.astype(np.float32).values

y_name, y_index = _get_dimension(input_data_var, "Y")
x_name, x_index = _get_dimension(input_data_var, "X")
Expand Down Expand Up @@ -498,4 +498,4 @@ def _get_bounds_ensure_dtype(ds, axis):
if bounds.dtype != np.float32:
bounds = bounds.astype(np.float32)

return bounds.data
return bounds.values
Loading