X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01 Jul 2016 10:51 AM by  anon
Unable to apply cloud mask (fmask) to multispectral source image
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
01 Jul 2016 10:51 AM
    I am using the 'Feature Extraction' tool from the Feature Extraction module available in the ENVI 5.3 Service Pack to calculate a cloud mask using Fmask following the instructions from the Harris Geospatial website: https://www.harrisgeospatial.com/docs/calculatecloudmaskusingfmask.html I am able to create the cloud mask from the multispectral (converted to reflectance) and thermal (converted to brightness temperature) bands, but when I attempt to apply the cloud mask to the multispectral source image, I am unable to select the cloud mask raster in the 'mask selection' dialog. Do you have any suggestions on how I might be able to proceed with this task? The fmask algorithm results in three files (one with no extension, an .enp file, and an .hdr file). Thank you very much in advance for any help you may be able to provide!

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    01 Jul 2016 11:02 AM
    If the mask is not available for selection, this usually means that the mask and the image you are trying to apply it to do not have the same dimensions (in samples and lines). Which image did you use to create the mask? Did you layer stack the images (MS and thermal) and if so, did you create the mask from the stacked images? If you stack the images, they will likely have different spatial dimensions than the original images. So in this case, the mask would be needed to be created from the stacked bands.

    Deleted User



    New Member


    Posts:
    New Member


    --
    05 Jul 2016 10:21 AM
    I am using the *_MTL_Multispectral dataset as the input image, and the "fmask" file (file created from the cloud mask of the stacked images) as the mask. I entered the image stack for both the "Multispectral TOA Reflectance Raster" and the "Brightness Temperature Raster" prompt. I have tried the procedure both ways - with the stacked images and as separate reflectance and brightness temperature rasters, and am still having trouble getting the fmask file to show up when I attempt to apply the cloud mask. The fmask file shows up in the input file, but not in the available files in the "mask selection" dialog. When I browse to the file and select it, it also does not appear in the dialog menu. Lastly, I've attempted to export the fmask file as a tiff, and though I am able to export it as a tiff, I am still unable to use it as a cloud mask. Thanks in advance for any additional suggestions!

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    05 Jul 2016 11:05 AM
    I found the issue and it is a bug. In the current version of ENVI (5.3.1 or SP1), there is a bug that does not allow the classification image to be selected as a mask when using the File->Save As option. This will be fixed in the next release. For now, you can use Apply mask from the toolbox. Select the MS image and the FMask classification image as the mask. The output masked areas will be 0 as the default value.

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 Jul 2016 01:22 PM
    Thank you for your assistance! I will use the "Apply Mask" tool until the next release.
    You are not authorized to post a reply.