Source¶
__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 ¶
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 the main properties of the source.
Returns:
| Type | Description |
|---|---|
None
|
|