FieldsMap¶
-
class
mpdaf.MUSE.
FieldsMap
(filename=None, nfields=None, **kwargs)[source]¶ Bases:
object
Class to work with the mosaic field map.
- Parameters
Methods Summary
compute_weights
(self)Return a list of weight maps (one per fields).
get_FSF
(self, y, x, kernels[, weights])Return the local FSF.
get_field_mask
(self, field_name)Return an array with non-zeros values for pixels matching a field.
get_pixel_fields
(self, y, x)Return a list of fields that cover a given pixel (y, x).
get_pixel_fields_indexes
(self, y, x)Return a list of fields indexes (between 0 and nfields) that cover a given pixel (y, x).
variable_PSF_convolution
(self, img, kernels)Function used for the convolution of an image by a set of PSF.
Methods Documentation
-
compute_weights
(self)[source]¶ Return a list of weight maps (one per fields).
The weight gives the influence of the field for each pixel. In the overlap area the weight changes linearly to have a smooth transition.
-
get_field_mask
(self, field_name)[source]¶ Return an array with non-zeros values for pixels matching a field.
field_name
can be an integer (between 1 and nfields+1) or a string (e.g. UDF-03).
-
get_pixel_fields_indexes
(self, y, x)[source]¶ Return a list of fields indexes (between 0 and nfields) that cover a given pixel (y, x).
-
variable_PSF_convolution
(self, img, kernels, weights=None)[source]¶ Function used for the convolution of an image by a set of PSF.
We use shift-variant blur techniques to model the variation of the PSF.
- Reference: Denis, L. Thiebaut E., Soulez F., Becker J.-M. and Mourya R.
‘Fast approximations of shift-variant blur’, International Journal of Computer Vision, Springer Verlag, 115(3), 253-278 (2015)