maskborder_nest
Arguments appearing in italic are optional.call maskborder_nest( nside, mask_in, mask_out, nbordpix, [ border_value] )
name & dimensionality | kind | in/out | description |
---|---|---|---|
nside | I4B | IN | The Nside value of the input mask. |
mask_in(0:Npix-1) | I4B | IN | Input binary NESTED-ordered mask. Npix = 12*nside*nside |
mask_out(0:Npix-1) | I4B | OUT | Output NESTED-ordered mask, in which inner border pixels (defined as 0-valued and adjacent to 1-valued pixels) take the value 2 (or border_value). Can be the same array as mask_in. |
nbordpix | I4B | OUT | Number of border pixels found |
border_value | I4B | IN | value to be given to border pixels in output mask. default:2. |
For a binary input mask mask_in, it will look for border pixels and output their number in nborpix. In this example the mask_in will be modified so that border pixels take value 2 on output.
Version 3.11, 2013-04-24