You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you think it's worth having a method in grid? It could look something like this.
defugrid_to_tgrid(arr_ugrid):
""" Interpolates values at U points on a B grid to T points. """withxr.set_options(keep_attrs=True):
return0.25* (
arr_ugrid+# j, iarr_ugrid.roll(nlat=1, roll_coords=False) +# j-1, iarr_ugrid.roll(nlon=1, roll_coords=False) +# j, i-1arr_ugrid.roll(nlat=1, nlon=1, roll_coords=False) #j-1, i-1
)
We should have a UGRID to TGRID function...and the reverse.
The text was updated successfully, but these errors were encountered: