Skip to content

NCPA

queue_listerner instance-attribute

queue_listerner = setup_logging()

logger instance-attribute

logger = getLogger()

external_logger_flag instance-attribute

external_logger_flag = False

tag instance-attribute

tag = 'ncpa'

ncpa_opd instance-attribute

ncpa_opd = zeros_like(pupil, dtype=float32)

__init__

__init__(telescope, logger=None)

Initialize a NCPA generator.

Parameters:

Name Type Description Default
telescope Telescope

Telescope object to which the WFS is attached.

required

load

load(filename)

Load the NCPA OPD from a H5 file.

Parameters:

Name Type Description Default
filename str

Path and base filename (with extension) of the H5 file to load.

required

Returns:

Type Description
bool

True if loaded successfully.

setOPD

setOPD(input_opd)

set the NCPA OPD directly from a variable

Parameters:

Name Type Description Default
input_opd ndarray

Input OPD in [m]

required

Returns:

Type Description
bool

True if loaded successfully,.

getPhase

getPhase()

Return the current NCPA OPD.

Returns:

Type Description
ndarray

NCPA OPD in meters [m].

setup_logging

setup_logging(logging_level=logging.WARNING)

__del__

__del__()