uxarray.helpers.grid_center_lat_lon#

uxarray.helpers.grid_center_lat_lon(ds)#

Using scrip file variables grid_corner_lat and grid_corner_lon, calculates the grid_center_lat and grid_center_lon.

Parameters

ds (xarray.Dataset) – Dataset that contains grid_corner_lat and grid_corner_lon data variables

Returns

  • center_lon (numpy.ndarray) – The calculated center longitudes of the grid box based on the corner points

  • center_lat (numpy.ndarray) – The calculated center latitudes of the grid box based on the corner points