GUIBRUSHR.General_Constants.Classes.Instrument module

class GUIBRUSHR.General_Constants.Classes.Instrument.Instrument(name, path_instrument, resolution, hwhm_km_s=None, wl_min=None, wl_max=None, nights=None, lr_data=None)[source]

Bases: object

Represents an astronomical instrument with its spectral properties and observation nights.

Variables:
  • name (str) – Instrument name.

  • path_instrument (str) – Path to instrument data directory.

  • resolution (float) – Spectral resolution.

  • hwhm_km_s (float) – Half-width at half-maximum in km/s.

  • wl_min (float) – Minimum wavelength.

  • wl_max (float) – Maximum wavelength.

  • nights (str) – Underscore-separated observation date identifiers.

  • dates (list) – Individual date identifiers parsed from nights.

  • ndate (int) – Number of dates.

  • nights_unique_bool (NDArray) – Boolean array flagging unique night entries.

  • night_arr (NDArray) – Array of Night objects.

  • lr_data – Low-resolution data associated with this instrument.

__init__(name, path_instrument, resolution, hwhm_km_s=None, wl_min=None, wl_max=None, nights=None, lr_data=None)[source]
append_night_obj(night_obj)[source]

Append a Night object to the night_arr array.