I have numerous Landsat images, with each band as an individual raster. For each Landsat scene I also have a mask which contains the areas without clouds. For each unique scene, across all bands, I want to mask out the corresponding clear areas. For example, one scene has 3 bands and they are titled:
LT50300281984137PAC00_sr_band1.tifLT50300281984137PAC00_sr_band2.tif LT50300281984137PAC00_sr_band3.tifand for each of these rasters I want to use the mask:
LT50300281984137PAC00_mask.tifAnother scene from a different date contains:
LT50300281994260XXX03_sr_band1.tifLT50300281994260XXX03_sr_band2.tifLT50300281994260XXX03_sr_band3.tifand for each of these rasters I want to use the mask:
LT50300281994260XXX03_mask.tifI know this will probably use the process arcpy.gp.ExtractByMask_sa but I am not sure how to make sure the correct mask is applied to the correct input files. I have 80 masks in total to apply to 240 bands (3 per Landsat scene).
أكثر...
LT50300281984137PAC00_sr_band1.tifLT50300281984137PAC00_sr_band2.tif LT50300281984137PAC00_sr_band3.tifand for each of these rasters I want to use the mask:
LT50300281984137PAC00_mask.tifAnother scene from a different date contains:
LT50300281994260XXX03_sr_band1.tifLT50300281994260XXX03_sr_band2.tifLT50300281994260XXX03_sr_band3.tifand for each of these rasters I want to use the mask:
LT50300281994260XXX03_mask.tifI know this will probably use the process arcpy.gp.ExtractByMask_sa but I am not sure how to make sure the correct mask is applied to the correct input files. I have 80 masks in total to apply to 240 bands (3 per Landsat scene).
أكثر...