regionmask.create_mask_contains

regionmask.create_mask_contains(lon, lat, coords, fill=nan, numbers=None)

create the mask of a list of regions, given the lat and lon coords

Parameters
lonndarray

Numpy array containing the midpoints of the longitude.

latndarray

Numpy array containing the midpoints of the latitude.

coordslist of nx2 arays

List of the coordinates outlining the regions

fillfloat, optional

Fill value for for Default: np.NaN.

numberslist of int, optional

If not given 0:n_coords - 1 is used.