Skip to content

Source

queue_listerner instance-attribute

queue_listerner = setup_logging()

logger instance-attribute

logger = getLogger()

external_logger_flag instance-attribute

external_logger_flag = False

optBand instance-attribute

optBand = optBand

wavelength instance-attribute

wavelength = tmp[0]

bandwidth instance-attribute

bandwidth = tmp[1]

zeroPoint instance-attribute

zeroPoint = tmp[2] / 368

magnitude instance-attribute

magnitude = magnitude

phase instance-attribute

phase = []

phase_no_pupil instance-attribute

phase_no_pupil = []

fluxMap instance-attribute

fluxMap = []

nPhoton instance-attribute

nPhoton = zeroPoint * 10 ** (-0.4 * magnitude)

tag instance-attribute

tag = 'source'

altitude instance-attribute

altitude = altitude

coordinates instance-attribute

coordinates = coordinates

laser_coordinates instance-attribute

laser_coordinates = laser_coordinates

chromatic_shift instance-attribute

chromatic_shift = chromatic_shift

Na_profile instance-attribute

Na_profile = Na_profile

FWHM_spot_up instance-attribute

FWHM_spot_up = FWHM_spot_up

type instance-attribute

type = 'LGS'

is_initialized instance-attribute

is_initialized = True

__init__

__init__(
    optBand: str,
    magnitude: float,
    coordinates: list = [0, 0],
    altitude: float = np.inf,
    laser_coordinates: list = [0, 0],
    Na_profile: float = None,
    FWHM_spot_up: float = None,
    chromatic_shift: list = None,
    logger=None,
)

Initialize a Source object.

Parameters:

Name Type Description Default
optBand str

Optical band identifier (e.g., 'V', 'H').

required
magnitude float

Apparent magnitude of the star.

required
coordinates list

Sky coordinates [zenith, azimuth] in [arcsec, degrees], by default [0, 0].

[0, 0]
altitude float

Altitude of the source in meters. Defaults to infinity (NGS).

inf
laser_coordinates list

Launch coordinates for a laser source [x, y] in meters.

[0, 0]
Na_profile float

Sodium layer profile [altitudes, values]. Required for LGS.

None
FWHM_spot_up float

FWHM of the LGS spot in arcsec.

None
chromatic_shift list

Shift per atmospheric layer due to chromatic dispersion, in arcsec.

None
logger Logger

Logger instance for logging.

None

photometry

photometry(arg)

Returns photometric properties of the selected band.

Parameters:

Name Type Description Default
arg str

Name of the photometric band (e.g., 'V', 'H', 'Na').

required

Returns:

Type Description
list or int

List of [wavelength, bandwidth, zero-point flux] or -1 if invalid.

print_properties

print_properties()

Print the main properties of the source.

Returns:

Type Description
None

setup_logging

setup_logging(logging_level=logging.WARNING)

__del__

__del__()