uxarray.helpers.grid_center_lat_lon#
- uxarray.helpers.grid_center_lat_lon(ds)#
Using scrip file variables
grid_corner_lat
andgrid_corner_lon
, calculates thegrid_center_lat
andgrid_center_lon
.- Parameters:
ds (xarray.Dataset) – Dataset that contains
grid_corner_lat
andgrid_corner_lon
data variables- Returns:
center_lon (
numpy.ndarray
) – The calculated center longitudes of the grid box based on the corner pointscenter_lat (
numpy.ndarray
) – The calculated center latitudes of the grid box based on the corner points