mpas_tools.mesh.creation.signed_distance.mask_from_geojson¶
- mpas_tools.mesh.creation.signed_distance.mask_from_geojson(fc, lon_grd, lat_grd)[source]¶
Make a rasterized mask on a lon/lat grid from shapes (geojson multipolygon data).
- Parameters
fc (geometrics_features.FeatureCollection) – The regions to be rasterized
lon_grd (numpy.ndarray) – A 1D array of longitude values
lat_grd (numpy.ndarray) – A 1D array of latitude values
- Returns
mask (numpy.ndarray) – A 2D mask with the shapes rasterized (0.0 outside, 1.0 inside)