oocgcm.core.grids.generic_2d_grid.change_grid_location_f_to_v

generic_2d_grid.change_grid_location_f_to_v(scalararray, conserving='y_flux')

Return a xarray corresponding to scalararray averaged at a new grid location.

Parameters:

scalararray : xarray.DataArray

original array to be relocated

conserving : str

any of ‘area’, ‘x_flux’ or ‘y_flux’.
  • ‘area’ : conserves the area
  • ‘x_flux’ : conserves the flux in x-direction (eastward)
  • ‘y_flux’ : conserves the flux in y-direction (northward)