DH mask

class Asterix.wfsc.maskDH.MaskDH(Correctionconfig)

Bases: object

A very small class to do all the mask related stuff: retrieve parameters and combined them measure the mask and measure the string to save matrices. They’re fast to measure so we do not need to save except in ‘onbench’ case.

AUTHOR : Johan Mazoyer

Methods

creatingMaskDH(dimFP, FP_sampling[, ...])

Create a binary mask.

tostring()

create a mask String to be used to save .fits files.

creatingMaskDH(dimFP, FP_sampling, dir_save_all_planes=None, **kwargs)

Create a binary mask.

AUTHOR : Johan Mazoyer

Parameters:
dimFPint

size of the output FP mask

FP_samplingfloat

resolution of focal plane pixel per lambda / D

dir_save_all_planesstring or None, default None.

If not None, absolute directory to save all planes in fits for debugging purposes. This can generate a lot of fits especially if in a loop, use with caution.

Returns:
maskDH2D array

binary mask delimiting the DH

tostring()

create a mask String to be used to save .fits files. directly update self.stringdh.

AUTHOR : Johan Mazoyer

Returns:
stringdhstr

mask String to save .fits files