ILAMB.ilamblib.ComposeSpatialGrids

ILAMB.ilamblib.ComposeSpatialGrids(var1, var2)[source]

Creates a grid which conforms the boundaries of both variables.

This routine takes the union of the latitude and longitude cell boundaries of both grids and returns a new set of latitudes and longitudes which represent cell centers of the new grid.

Parameters

var1,var2 (ILAMB.Variable.Variable) – The two variables for which we wish to find a common grid

Returns

  • lat (numpy.ndarray) – a 1D array of latitudes of cell centroids

  • lon (numpy.ndarray) – a 1D array of longitudes of cell centroids