-
Notifications
You must be signed in to change notification settings - Fork 0
Utils
Crop satellite image using ESRI shapefile
imgpath : Path to satellite image.
shppath : Path to ESRI shapefile.
mask1 : Satellite image as numpy ndarray Same extent of raw image.
meta : Metadata of image. Needed at the time of save image.
Mask image according ESRI shapefile area.
imgpath : Path to satellite image.
shppath : Path to ESRI shapefile.
nodata : no data value, optional, Value used for fill the outer shapefile area. The default is 0.
mask1 : Satellite image as numpy ndarray Same extent of raw image.
meta : Metadata of image. Needed at the time of save image.
Stack bands of satellite image.
imglist : list of image files. image file paths with directory and name.
ilist : Satellite image as mumpy ndarray Stacked in same order of input list.
immeta : Updated metadata of the image with same file format. Needed at the time of save image.
Normalized Difference Index. e.g. NDVI.
band_1 : First band of the index e.g. NIR band for NDVI.
band_2 : Second band of the index e.g. RED band for NDVI.
nodata : nodata value if any present in the input image, optional The default is 0.
replace : Change the nodata value to nan, optional, If True change the nodata value to np.nan. The default is True.
Normalized Difference Index.