Skip to content

Commit 0360dad

Browse files
Comment out FRM breakdown plots
1 parent 4880ed0 commit 0360dad

File tree

1 file changed

+62
-62
lines changed

1 file changed

+62
-62
lines changed

Source/ProcessInstrumentUncertainties.py

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -2290,37 +2290,37 @@ def FRM(self, node, uncGrp, raw_grps, raw_slices, stats, newWaveBands):
22902290
output[f"{sensortype.lower()}Sample"] = self.interpolateSamples(
22912291
output[f"{sensortype.lower()}Sample"], wvls, newWaveBands)
22922292

2293-
if ConfigFile.settings['bL2UncertaintyBreakdownPlot']:
2294-
p_unc = UncertaintyGUI(prop) # initialise plotting obj - punpy MCP as arg
2295-
time = node.attributes['TIME-STAMP'].split(' ')[-2] # for labelling
2296-
if sensortype.upper() == 'ES':
2297-
p_unc.plot_unc_from_sample_1D(
2298-
sample_data5, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Cosine", xlim=(400, 800)
2299-
)
2300-
else:
2301-
p_unc.plot_unc_from_sample_1D(
2302-
sample_pol_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name="Polarisation", xlim=(400, 800)
2303-
)
2304-
p_unc.plot_unc_from_sample_1D(
2305-
sample_data4, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Thermal", xlim=(400, 800)
2306-
)
2307-
p_unc.plot_unc_from_sample_1D(
2308-
sample_data3, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Calibration", xlim=(400, 800)
2309-
)
2310-
p_unc.plot_unc_from_sample_1D(
2311-
sample_data2, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Straylight", xlim=(400, 800)
2312-
)
2313-
p_unc.plot_unc_from_sample_1D(
2314-
sample_data1, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Nlin", xlim=(400, 800)
2315-
)
2316-
p_unc.plot_unc_from_sample_1D(
2317-
sample_dark_corr_data, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Dark_Corrected", xlim=(400, 800),
2318-
save={
2319-
"cal_type": node.attributes["CAL_TYPE"],
2320-
"time": node.attributes['TIME-STAMP'],
2321-
"instrument": "SeaBird"
2322-
}
2323-
)
2293+
# if ConfigFile.settings['bL2UncertaintyBreakdownPlot']:
2294+
# p_unc = UncertaintyGUI(prop) # initialise plotting obj - punpy MCP as arg
2295+
# time = node.attributes['TIME-STAMP'].split(' ')[-2] # for labelling
2296+
# if sensortype.upper() == 'ES':
2297+
# p_unc.plot_unc_from_sample_1D(
2298+
# sample_data5, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Cosine", xlim=(400, 800)
2299+
# )
2300+
# else:
2301+
# p_unc.plot_unc_from_sample_1D(
2302+
# sample_pol_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name="Polarisation", xlim=(400, 800)
2303+
# )
2304+
# p_unc.plot_unc_from_sample_1D(
2305+
# sample_data4, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Thermal", xlim=(400, 800)
2306+
# )
2307+
# p_unc.plot_unc_from_sample_1D(
2308+
# sample_data3, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Calibration", xlim=(400, 800)
2309+
# )
2310+
# p_unc.plot_unc_from_sample_1D(
2311+
# sample_data2, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Straylight", xlim=(400, 800)
2312+
# )
2313+
# p_unc.plot_unc_from_sample_1D(
2314+
# sample_data1, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Nlin", xlim=(400, 800)
2315+
# )
2316+
# p_unc.plot_unc_from_sample_1D(
2317+
# sample_dark_corr_data, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Dark_Corrected", xlim=(400, 800),
2318+
# save={
2319+
# "cal_type": node.attributes["CAL_TYPE"],
2320+
# "time": node.attributes['TIME-STAMP'],
2321+
# "instrument": "SeaBird"
2322+
# }
2323+
# )
23242324

23252325
return output
23262326

@@ -2754,37 +2754,37 @@ def FRM(self, node, uncGrp, raw_grps, raw_slices, stats, newWaveBands):
27542754
output[f"{sensortype.lower()}Sample"] = self.interpolateSamples(
27552755
output[f"{sensortype.lower()}Sample"], wvls, newWaveBands)
27562756

2757-
if ConfigFile.settings['bL2UncertaintyBreakdownPlot']:
2758-
p_unc = UncertaintyGUI(prop) # initialise plotting obj - punpy MCP as arg
2759-
time = ' '.join(node.attributes['TIME-STAMP'][0:-1].split('T')) # time string for labelling
2760-
if sensortype.upper() == 'ES':
2761-
p_unc.plot_unc_from_sample_1D(
2762-
sample_cos_corr_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Cosine", xlim=(400, 800)
2763-
)
2764-
else:
2765-
p_unc.plot_unc_from_sample_1D(
2766-
sample_pol_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name="Polarisation", xlim=(400, 800)
2767-
)
2768-
p_unc.plot_unc_from_sample_1D(
2769-
sample_thermal_corr_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Thermal", xlim=(400, 800)
2770-
)
2771-
p_unc.plot_unc_from_sample_1D(
2772-
sample_calibrated_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Calibration", xlim=(400, 800)
2773-
)
2774-
p_unc.plot_unc_from_sample_1D(
2775-
sample_straylight_corr_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Straylight", xlim=(400, 800)
2776-
)
2777-
p_unc.plot_unc_from_sample_1D(
2778-
sample_linear_corr_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Nlin", xlim=(400, 800)
2779-
)
2780-
p_unc.plot_unc_from_sample_1D(
2781-
sample_offset_corrected_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Dark_Corrected", xlim=(400, 800),
2782-
save={
2783-
"cal_type": node.attributes["CAL_TYPE"],
2784-
"time": node.attributes['TIME-STAMP'],
2785-
"instrument": "TriOS"
2786-
}
2787-
)
2757+
# if ConfigFile.settings['bL2UncertaintyBreakdownPlot']:
2758+
# p_unc = UncertaintyGUI(prop) # initialise plotting obj - punpy MCP as arg
2759+
# time = ' '.join(node.attributes['TIME-STAMP'][0:-1].split('T')) # time string for labelling
2760+
# if sensortype.upper() == 'ES':
2761+
# p_unc.plot_unc_from_sample_1D(
2762+
# sample_cos_corr_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Cosine", xlim=(400, 800)
2763+
# )
2764+
# else:
2765+
# p_unc.plot_unc_from_sample_1D(
2766+
# sample_pol_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name="Polarisation", xlim=(400, 800)
2767+
# )
2768+
# p_unc.plot_unc_from_sample_1D(
2769+
# sample_thermal_corr_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Thermal", xlim=(400, 800)
2770+
# )
2771+
# p_unc.plot_unc_from_sample_1D(
2772+
# sample_calibrated_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Calibration", xlim=(400, 800)
2773+
# )
2774+
# p_unc.plot_unc_from_sample_1D(
2775+
# sample_straylight_corr_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Straylight", xlim=(400, 800)
2776+
# )
2777+
# p_unc.plot_unc_from_sample_1D(
2778+
# sample_linear_corr_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Nlin", xlim=(400, 800)
2779+
# )
2780+
# p_unc.plot_unc_from_sample_1D(
2781+
# sample_offset_corrected_mesure, radcal_wvl, fig_name=f"breakdown_{sensortype}_{time}", name=f"Dark_Corrected", xlim=(400, 800),
2782+
# save={
2783+
# "cal_type": node.attributes["CAL_TYPE"],
2784+
# "time": node.attributes['TIME-STAMP'],
2785+
# "instrument": "TriOS"
2786+
# }
2787+
# )
27882788

27892789
return output # return products as dictionary to be appended to xSlice
27902790

0 commit comments

Comments
 (0)