Skip to content

90 Refine calibration constant selection. - #91

Open
HavardStridBuholdt wants to merge 1 commit into
mainfrom
90-refine-calibration-constant-selection-logic
Open

90 Refine calibration constant selection.#91
HavardStridBuholdt wants to merge 1 commit into
mainfrom
90-refine-calibration-constant-selection-logic

Conversation

@HavardStridBuholdt

Copy link
Copy Markdown
Collaborator

Addressing issue #90

Also added default calibration constants.

Had to redefine how we store the calibration constants. The structure of data_cube.pol_cali and data_cube.LC are still the same but they now include and additional entry default that stores the default constants per channel. data_cube.etaused and data_cube.LCused are now nested dictionaries with entries {'eta'/'LC': ... , 'eta_std'/'LCStd': ..., 'method': ...} per channel. The method entry shows where the chosen calibration constant comes from, D90, D90_db, klett, raman, klett_db, raman_db, or default.

Default constants are only selected if no other exists.

The update also introduces the following new config variable dependencies:

  • flagDepolCali: enable or disable the retrieval of DCs from the measurement.
  • flagLCCalibration: enable or disable the retrieval of LCs from the measurement.
  • flagUsePreviousDepolCali: enable or disable the loading of DCs from the database.
  • flagUsePreviousLC: enable or disable the loading of LCs from the database.
  • calibrationDB: now used to construct a default database-path if the loading of CCs is enabled but no path was given in the function input.

If both the retrieval of CCs from the measurement and the loading of CCs form the database is disabled, the default values will always be chosen.

@HavardStridBuholdt HavardStridBuholdt linked an issue Aug 11, 2026 that may be closed by this pull request
@HavardStridBuholdt

Copy link
Copy Markdown
Collaborator Author

Merge #87 before this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refine calibration constant selection logic

1 participant