in3Utils.geoTrans.poly2maskSimple

poly2maskSimple(xdep, ydep, ncols, nrows)[source]

Create a mask from a polyline Usage:

mask = poly2maskSimple(ydep, xdep, ncols, nrows)

Input:

ydep, xdep: Polyline Coordinates ncols, nrows: Raster size

Output:

mask: Raster of the polyline mask