The muse_qi_mask recipe



Create image masks for use with the quick image reconstruction.


Trace and wavelength calibration tables (24 of them each, one per IFU) are used to build wavelength maps. If the input data is binned, the wavelength maps are binned in the same way (averaging of pixels). The wavelength maps are then thresholded to create masks of the desired wavelength range. Finally, the mask is “untrimmed”, i.e. empty regions for the pre- and overscans are added (in a simple way, assuming quadrants of equal size, and padding of 32 pixels on all quadrant edges). Note: this recipe is not part of the main MUSE pipeline but to be used in the integration phase to create image masks until the system is fully qualified. It therefore does only minimal error checking.



Create an object for the recipe muse_qi_mask.

import cpl
muse_qi_mask = cpl.Recipe("muse_qi_mask")



IFU to handle. If set to 0, all IFUs are processed serially, which is the recommendation for this recipe, since only then all extensions end up in the same output file. (int; default: 0) [default=0].

The following code snippet shows the default settings for the available parameters.

import cpl
muse_qi_mask = cpl.Recipe("muse_qi_mask")

muse_qi_mask.param.nifu = 0

You may also set or overwrite some or all parameters by the recipe parameter param, as shown in the following example:

import cpl
muse_qi_mask = cpl.Recipe("muse_qi_mask")
res = muse_qi_mask( ..., param = {"nifu":0})

See also

cpl.Recipe for more information about the recipe object.

Bug reports

Please report any problems to Peter Weilbacher. Alternatively, you may send a report to the ESO User Support Department.