FREQCOR_Sel_CF
Selection utilities for filtering (co)spectra used in correction factor computation.
Functions
Select cospectra used for correction factor (CF) computation. |
Exceptions
|
Exception raised for errors in FREQCOR_Sel_CF. |
- exception FREQCOR_Sel_CF.FREQCORSelCFError(message)[source]
Exception raised for errors in FREQCOR_Sel_CF.
- FREQCOR_Sel_CF.FREQCOR_Sel_CF(Icos_CF, freq, sts, meteo_df, Hlcfu, Hlcfs, Hlim_max, FlagVM_T, FlagF_H, FlagVM_w, FVM, FF, outputpath, plot, run_tag=None)[source]
Select cospectra used for correction factor (CF) computation.
- Tests for all (co)spectra
Stationarity test (tau, H) VM tests (T) Min value (H, u*)
- Additional test for cospectra
VM test (w)
- Parameters:
Icos_CF (
pandas.DataFrame) – Ideal cospectra for CF (stability-filtered).freq (
pandas.Series) – Natural frequencies (Hz). Used for plotting only.sts (
int) – Stability class selector (1: unstable, 2: stable).meteo_df (
pandas.DataFrame) – Half-hourly meteorological and flux data (used for H thresholding).Hlcfu (
float) – Minimum sensible heat flux threshold for unstable conditions.Hlcfs (
float) – Maximum sensible heat flux threshold for stable conditions.FlagVM_T (
pandas.Series) – Vickers & Mahrt (1997) global flag for temperature.FlagF_H (
pandas.Series) – Mauder & Foken (2004) quality flag for sensible heat flux.FlagVM_w (
pandas.Series) – Vickers & Mahrt (1997) global flag for vertical wind speed.FVM (
float) – Threshold applied to Vickers & Mahrt flags.FF (
float) – Threshold applied to Mauder & Foken flags.outputpath (
str) – Output directory (used for plots).plot (
list[int]) – Plotting options selector.run_tag (
str, optional) – Run identifier used to generate plot filenames.
- Returns:
Icos_CF – Quality-filtered cospectra used for CF computation.
- Return type:
- Raises:
ValueError – If run_tag is missing while plotting is enabled.
FREQCORSelCFError – If all cospectra are filtered out.