iprocess_mask is an interface to 'process_mask' F90 facility. It requires some disk space on which to write the parameter file and the other temporary files. Most data can be provided/generated as an external FITS file, or as a memory array.
npix = nside2npix(256) |
mask = replicate(1, npix) & mask[randomu(seed,100)*npix] = 0 |
iprocess_mask, mask, distance, /ring, /silent |
mollview, distance |
A binary mask in which 100 randomly located pixels are 0-valued (=invalid) is generated. Then the distance (in Radians) of the valid pixels to the closest invalid pixels is computed and plotted.
Version 3.83, 2024-11-13