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
lon (ndarray) – Numpy array containing the midpoints of the longitude.
lat (ndarray) – Numpy array containing the midpoints of the latitude.
coords (list of nx2 arays) – List of the coordinates outlining the regions
fill (float, optional) – Fill value for for Default: np.NaN.
numbers (list of int, optional) – If not given 0:n_coords - 1 is used.