GUIBRUSHR.Retrieval.ModelCalculation.Classes.Resolution module

Resolution class for handling high and low resolution spectroscopic data.

This module provides functionality to manage different resolution modes for spectroscopic instruments and process low-resolution data.

class GUIBRUSHR.Retrieval.ModelCalculation.Classes.Resolution.Resolution(resolution, instruments_HR, instruments_LR, target_vsys, lbl_high_res=None, lbl_low_res=None)[source]

Bases: object

Manages resolution settings and data processing for spectroscopic instruments.

This class handles both high-resolution (HR) and low-resolution (LR) modes, processing instrument data accordingly and creating appropriate data objects.

instruments_HR

High-resolution instruments collection

instruments_LR

Low-resolution instruments collection

lbl_high_res

High-resolution label data (optional)

LR

Boolean flag indicating if low-resolution mode is active

HR

Boolean flag indicating if high-resolution mode is active

__init__(resolution, instruments_HR, instruments_LR, target_vsys, lbl_high_res=None, lbl_low_res=None)[source]

Initialize the Resolution object with specified parameters.

Parameters:
  • resolution – String indicating resolution mode (“Low”, “High”, or both)

  • instruments_HR – Collection of high-resolution instruments

  • instruments_LR – Collection of low-resolution instruments

  • target_vsys – Target system velocity parameter

  • lbl_high_res – Optional high-resolution label data

  • lbl_low_res – Optional low-resolution label data

create_low_resolution_obj(target_vsys)[source]

Create low-resolution data objects for all low-resolution instruments.

This method loads pickled low-resolution data for each instrument and creates LowResolutionData objects with the loaded parameters.

Parameters:

target_vsys – Target system velocity parameter for data processing

high_resolution()[source]

Check if high-resolution mode is active.

Returns:

Boolean indicating if high-resolution mode is enabled

low_resolution()[source]

Check if low-resolution mode is active.

Returns:

Boolean indicating if low-resolution mode is enabled

only_high_resolution()[source]

Check if only high-resolution mode is active (excluding low-resolution).

Returns:

Boolean indicating if only high-resolution mode is enabled

only_low_resolution()[source]

Check if only low-resolution mode is active (excluding high-resolution).

Returns:

Boolean indicating if only low-resolution mode is enabled