ISIS Application Documentation
mask | Printer Friendly View | TOC | Home |
Set pixels to NULL using a mask cube
Overview | Parameters | Example 1 | Example 2 |
Description
This program masks (or NULLs) pixels in an input cube.
Requirements
There are four ways to use the mask program; and, with all four options, listed below, you will use the PRESERVE parameter. As the name implies, you will "preserve" pixels either inside (which is the program default) or outside a given range. Preserve=inside: means the program will preserve pixels inside the provided range, and pixels that are not inside the range are nulled. Preserve=outside: means the program will preserve pixels outside the provided range, and pixels that are not outside the range are nulled. Three Ways to Mask:
Note that due to the way masking works, an output file will be created regardless of whether or not the mask was applied to the corresponding input. To determine the degree to which an input cube was masked, look for the "PixelsMasked" group in print.prt . If no pixels were masked, there will be a comment present which reads "No pixels were masked in this image". CategoriesRelated Objects and DocumentsApplicationsHistory
|
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 02/21/2025 19:28:12 |
Parameter GroupsFiles
Mask Options
Special Pixels
|
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 02/21/2025 19:28:12 |
Use this parameter to select the filename. All bands within the file will be masked.
Type | cube |
---|---|
File Mode | input |
Filter | *.cub |
Use this parameter to select the filename to be used as the mask. If you enter a multiband cube you must specify the band. If this parameter is not explicitly entered, each band of the FROM cube will be used as its own mask.
Type | cube |
---|---|
File Mode | input |
Internal Default | NULL |
Filter | *.cub |
This file will contain the results of the masked cube
Type | cube |
---|---|
File Mode | output |
This defines the minimum range of valid data in the mask cube.
Type | double |
---|---|
Internal Default | ISIS minimum |
Less Than or Equal | MAXIMUM |
This defines the maximum range of valid data in the mask cube.
Type | double |
---|---|
Internal Default | ISIS maximum |
Greater Than or Equal | MINIMUM |
This parameter indicates whether the pixels chosen to mask are within the range given or outside the range given. If INSIDE, pixels inside of given range will be preserved, and if OUTSIDE, pixels outside the range will be masked.
Type | string | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Default | INSIDE | |||||||||
Option List: |
|
This indicates which special pixel values are to be included as valid pixels in the mask. For example, a NULL in the mask cube will cause the output to be NULL if the NULL or ALL option is selected. If NONE is selected, then the input pixel will be propagated to the output cube.
Type | string | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default | NULL | ||||||||||||
Option List: |
|
Example 1An example of using a single band from the input cube as a mask. Description
This is an example of a mask that is comprised of one band of the multiband input cube.
It shows how the larger band (band 1) is cropped when the smaller band (band 9) is used
as the mask. Note the +9 at the end of the file name specifies a single band.
Command Line
mask
mask from=I06107001RDR.cub to=I06107001RDR_MaskByBand9.cub mask=I06107001RDR.cub+9
An example of how to run this program from the command line.
GUI ScreenshotInput ImageOutput Image |
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 02/21/2025 19:28:12 |
Example 2An example of not specifying a mask. Description
This example does not specify a mask. Each band of the input cube will be used as its own
mask. The effect is the specified DNs are stenciled out using the minimum and maximum
values.
Command Line
mask
mask from=I06107001RDR.cub to=I06107001RDR_MaskByDN.cub minimum=-0.000143
maximum=-0.000116 preserve=outside
An example of how to run this program from the command line.
GUI ScreenshotInput ImageOutput Image |
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 02/21/2025 19:28:12 |