Skip to content

Commit 708ca26

Browse files
Patch language dependancy issues with TIME-STAMP in root.attributes
1 parent 175553e commit 708ca26

File tree

7 files changed

+19
-12
lines changed

7 files changed

+19
-12
lines changed

Config/sample_SEABIRD_pySAS.cfg

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"inDir": "/Users/daurin/GitRepos/HyperCP/Data/Sample_Data/pySAS/Full_M99",
3-
"outDir": "/Users/daurin/GitRepos/HyperCP/Data/Sample_Data/pySAS/Full_M99",
2+
"inDir": "/Users/daurin/GitRepos/HyperCP/Data/Sample_Data/pySAS/Class_M99",
3+
"outDir": "/Users/daurin/GitRepos/HyperCP/Data/Sample_Data/pySAS/Class_M99",
44
"ancFileDir": "/Users/daurin/GitRepos/HyperCP/Data/Sample_Data/pySAS",
55
"ancFile": "/Users/daurin/GitRepos/HyperCP/Data/Sample_Data/pySAS/FICE22_pySAS_Ancillary.sb",
66
"CalibrationFiles": {
@@ -101,7 +101,7 @@
101101
"fL1bDefaultAirT": 26.0,
102102
"fL1bDefaultSalt": 38.0,
103103
"fL1bDefaultSST": 28.0,
104-
"fL1bCal": 3,
104+
"fL1bCal": 2,
105105
"fL1bThermal": 1,
106106
"neededCalCharsFRM": {
107107
"LI": [
@@ -178,10 +178,11 @@
178178
"bL2PlotEs": 1,
179179
"bL2PlotLi": 1,
180180
"bL2PlotLt": 1,
181-
"bL2UncertaintyBreakdownPlot": 0,
181+
"bL2UncertaintyBreakdownPlot": 1,
182182
"seaBASSHeaderFileName": "sample_SEABIRD_pySAS.hdr",
183183
"bL2SaveSeaBASS": 1,
184184
"bL2WriteReport": 1,
185+
"bL2filterMetFlags": 0,
185186
"bL2EnableQualityFlags": 1,
186187
"bL2PlotProd": 1,
187188
"bL2Prodoc3m": 1,

Config/sample_SEABIRD_pySAS.hdr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"rho_correction": "M99",
3535
"NIR_residual_correction": "MA95",
3636
"BRDF_correction": "noBRDF",
37-
"comments": "! HyperInSPACE vers = 1.2.14b\n! HyperInSPACE Config = sample_SEABIRD_pySAS.cfg\n! Rotator Home Angle = 0.0\n! Rotator Delay = 2.0\n! Pitch/Roll Filter = On\n! Max Pitch/Roll = 5.0\n! Rotator Min/Max Filter = On\n! Rotator Min = -126.0\n! Rotator Max = 42.0\n! Rel Azimuth Filter = On\n! Rel Azimuth Min = 87.0\n! Rel Azimuth Max = 138.0\n! Deglitch Filter = On\n! ES Dark Window = 11\n! ES Light Window = 5\n! ES Dark Sigma = 3.2\n! ES Light Sigma = 2.5\n! LI Dark Window = 11\n! LI Light Window = 5\n! LI Dark Sigma = 3.0\n! LI Light Sigma = 2.9\n! LT Dark Window = 11\n! LT Light Window = 5\n! LT Dark Sigma = 3.5\n! LT Light Sigma = 2.9\n! FRM Pathway = FRM-Full-Characterization\n! Thermal Source = Internal_Thermistor\n! Default Salt = 38.0\n! Default SST = 28.0\n! Default AOD = 0.2\n! Default Wind = 5.0\n! Default AirTemp = 26.0\n! Wavelength Interp Int = 3.3\n! Max Wind = 10.0\n! Min SZA = 20.0\n! Max SZA = 60.0\n! Spectral Filter = On\n! Filter Sigma Es = 5.0\n! Filter Sigma Li = 8.0\n! Filter Sigma Lt = 3.0\n! Meteorological Filter = On\n! Cloud Flag = 1.0\n! Es Flag = 2.0\n! Dawn/Dusk Flag = 1.0\n! Rain/Humidity Flag = 1.095\n! Ensemble Interval = 300\n! Percent Lt Filter = On\n! Percent Light = 10.0\n! Remove Negatives = On",
37+
"comments": "! HyperInSPACE vers = 1.2.14b\n! HyperInSPACE Config = sample_SEABIRD_pySAS.cfg\n! Rotator Home Angle = 0.0\n! Rotator Delay = 2.0\n! Pitch/Roll Filter = On\n! Max Pitch/Roll = 5.0\n! Rotator Min/Max Filter = On\n! Rotator Min = -126.0\n! Rotator Max = 42.0\n! Rel Azimuth Filter = On\n! Rel Azimuth Min = 87.0\n! Rel Azimuth Max = 138.0\n! Deglitch Filter = On\n! ES Dark Window = 11\n! ES Light Window = 5\n! ES Dark Sigma = 3.2\n! ES Light Sigma = 2.5\n! LI Dark Window = 11\n! LI Light Window = 5\n! LI Dark Sigma = 3.0\n! LI Light Sigma = 2.9\n! LT Dark Window = 11\n! LT Light Window = 5\n! LT Dark Sigma = 3.5\n! LT Light Sigma = 2.9\n! FRM Pathway = FRM_Class-based\n! Thermal Source = Internal_Thermistor\n! Default Salt = 38.0\n! Default SST = 28.0\n! Default AOD = 0.2\n! Default Wind = 5.0\n! Default AirTemp = 26.0\n! Wavelength Interp Int = 3.3\n! Max Wind = 10.0\n! Min SZA = 20.0\n! Max SZA = 60.0\n! Spectral Filter = On\n! Filter Sigma Es = 5.0\n! Filter Sigma Li = 8.0\n! Filter Sigma Lt = 3.0\n! Meteorological Filter = On\n! Cloud Flag = 1.0\n! Es Flag = 2.0\n! Dawn/Dusk Flag = 1.0\n! Rain/Humidity Flag = 1.095\n! Ensemble Interval = 300\n! Percent Lt Filter = On\n! Percent Light = 10.0\n! Remove Negatives = On",
3838
"other_comments": "!\n! COMMENTS\n!\n! FRM4SOC-2 Field InterComparison Experiment (FICE)\n! July 11 - 21, 2022\n! Acqua Alta Oceanographic Tower (AAOT), CNR-ISMAR\n!\n! Ancillary data from: % https://www.comune.venezia.it/content/3-piattaforma-ISMAR-CNR\n! and field notes. relAz refers to target relative azimuth in pySAS.\n!\n! Home",
3939
"missing": -9999,
4040
"delimiter": "comma"

Config/sample_TRIOS_NOTRACKER.cfg

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"inDir": "/Users/daurin/GitRepos/HyperCP/Data/Sample_Data/Manual_TriOS/Class",
3-
"outDir": "/Users/daurin/GitRepos/HyperCP/Data/Sample_Data/Manual_TriOS/Class",
2+
"inDir": "/Users/daurin/GitRepos/HyperCP/Data/Sample_Data/Manual_TriOS/Full",
3+
"outDir": "/Users/daurin/GitRepos/HyperCP/Data/Sample_Data/Manual_TriOS/Full",
44
"ancFileDir": "./Data/Sample_Data",
55
"ancFile": "/Users/daurin/GitRepos/HyperCP/Data/Sample_Data/Manual_TriOS/FICE22_TriOS_Ancillary.sb",
66
"CalibrationFiles": {
@@ -77,7 +77,7 @@
7777
"fL1bDefaultAirT": 26.0,
7878
"fL1bDefaultSalt": 35.0,
7979
"fL1bDefaultSST": 26.0,
80-
"fL1bCal": 2,
80+
"fL1bCal": 3,
8181
"fL1bThermal": 1,
8282
"neededCalCharsFRM": {
8383
"ES": [
@@ -158,6 +158,7 @@
158158
"seaBASSHeaderFileName": "sample_TRIOS_NOTRACKER.hdr",
159159
"bL2SaveSeaBASS": 1,
160160
"bL2WriteReport": 0,
161+
"bL2filterMetFlags": 0,
161162
"bL2PlotProd": 1,
162163
"bL2Prodoc3m": 1,
163164
"bL2Prodkd490": 0,

Config/sample_TRIOS_NOTRACKER.hdr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"rho_correction": "M99",
3535
"NIR_residual_correction": "R06",
3636
"BRDF_correction": "noBRDF",
37-
"comments": "! HyperInSPACE vers = 1.2.14b\n! HyperInSPACE Config = sample_TRIOS_NOTRACKER.cfg\n! Rotator Home Angle = 0.0\n! Rotator Delay = 2.0\n! Pitch/Roll Filter = Off\n! Max Pitch/Roll = 5.0\n! Rotator Min/Max Filter = Off\n! Rotator Min = -40.0\n! Rotator Max = 40.0\n! Rel Azimuth Filter = On\n! Rel Azimuth Min = 90.0\n! Rel Azimuth Max = 135.0\n! Deglitch Filter = Off\n! ES Dark Window = 11\n! ES Light Window = 5\n! ES Dark Sigma = 3.2\n! ES Light Sigma = 2.3\n! LI Dark Window = 11\n! LI Light Window = 5\n! LI Dark Sigma = 3.3\n! LI Light Sigma = 3.0\n! LT Dark Window = 11\n! LT Light Window = 13\n! LT Dark Sigma = 3.2\n! LT Light Sigma = 2.7\n! FRM Pathway = FRM_Class-based\n! Thermal Source = Internal_Thermistor\n! Default Salt = 35.0\n! Default SST = 26.0\n! Default AOD = 0.2\n! Default Wind = 5.0\n! Default AirTemp = 26.0\n! Wavelength Interp Int = 3.3\n! Max Wind = 10.0\n! Min SZA = 20.0\n! Max SZA = 60.0\n! Spectral Filter = On\n! Filter Sigma Es = 5.0\n! Filter Sigma Li = 8.0\n! Filter Sigma Lt = 3.0\n! Meteorological Filter = On\n! Cloud Flag = 1.0\n! Es Flag = 2.0\n! Dawn/Dusk Flag = 1.0\n! Rain/Humidity Flag = 1.095\n! Ensemble Interval = 300\n! Percent Lt Filter = On\n! Percent Light = 10.0\n! Remove Negatives = On",
37+
"comments": "! HyperInSPACE vers = 1.2.14b\n! HyperInSPACE Config = sample_TRIOS_NOTRACKER.cfg\n! Rotator Home Angle = 0.0\n! Rotator Delay = 2.0\n! Pitch/Roll Filter = Off\n! Max Pitch/Roll = 5.0\n! Rotator Min/Max Filter = Off\n! Rotator Min = -40.0\n! Rotator Max = 40.0\n! Rel Azimuth Filter = On\n! Rel Azimuth Min = 90.0\n! Rel Azimuth Max = 135.0\n! Deglitch Filter = Off\n! ES Dark Window = 11\n! ES Light Window = 5\n! ES Dark Sigma = 3.2\n! ES Light Sigma = 2.3\n! LI Dark Window = 11\n! LI Light Window = 5\n! LI Dark Sigma = 3.3\n! LI Light Sigma = 3.0\n! LT Dark Window = 11\n! LT Light Window = 13\n! LT Dark Sigma = 3.2\n! LT Light Sigma = 2.7\n! FRM Pathway = FRM-Full-Characterization\n! Thermal Source = Internal_Thermistor\n! Default Salt = 35.0\n! Default SST = 26.0\n! Default AOD = 0.2\n! Default Wind = 5.0\n! Default AirTemp = 26.0\n! Wavelength Interp Int = 3.3\n! Max Wind = 10.0\n! Min SZA = 20.0\n! Max SZA = 60.0\n! Spectral Filter = On\n! Filter Sigma Es = 5.0\n! Filter Sigma Li = 8.0\n! Filter Sigma Lt = 3.0\n! Meteorological Filter = On\n! Cloud Flag = 1.0\n! Es Flag = 2.0\n! Dawn/Dusk Flag = 1.0\n! Rain/Humidity Flag = 1.095\n! Ensemble Interval = 300\n! Percent Lt Filter = On\n! Percent Light = 10.0\n! Remove Negatives = On",
3838
"other_comments": "!\n! Other comments...\n!",
3939
"missing": -9999,
4040
"delimiter": "comma"

Source/ConfigWindow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def initUI(self):
600600
l2UncertaintyBreakdownPlotsLabel = QtWidgets.QLabel("Unc. Plots (class-based only)", self)
601601
# l2UncertaintyBreakdownPlotLabel = QtWidgets.QLabel(" ", self)
602602
self.l2UncertaintyBreakdownPlotCheckBox = QtWidgets.QCheckBox("", self)
603-
if int(ConfigFile.settings["bL2UncertaintyBreakdownPlot"]) == 1:
603+
if ConfigFile.settings["bL2UncertaintyBreakdownPlot"]:
604604
self.l2UncertaintyBreakdownPlotCheckBox.setChecked(True)
605605

606606
self.l2StationsCheckBox.clicked.connect(self.l2StationsCheckBoxUpdate)

Source/ProcessL1b.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ def read_FidRadDB_cal_char_files(root):
157157
# print(f"Root attribute TIME-STAMP: {root.attributes['TIME-STAMP']}")
158158
# acq_time_seconds = datetime.strptime(root.attributes['TIME-STAMP'], '%a %b %d %H:%M:%S %Y').timestamp()
159159
# Alternative: Grab start time of Es
160-
esDatetime = root.getGroup('ES').datasets['DATETIME'].data[0]
160+
if ConfigFile.settings['SensorType'] .lower() == 'seabird':
161+
esDatetime = root.getGroup('ES_LIGHT').datasets['DATETIME'].data[0]
162+
else:
163+
esDatetime = root.getGroup('ES').datasets['DATETIME'].data[0]
161164
acq_time_seconds = esDatetime.timestamp()
162165

163166
# Check which cal/char files are needed for each of the 3 sensor types (ES, LT, LI) in cal/char regime = Full, i.e. ConfigFile.settings["fL1bCal"] == 3

Source/ProcessL2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,9 @@ def _sliceRawData(ES_raw, LI_raw, LT_raw):
14931493
stats, np.array(waveSubset, float))) # instrument_WB
14941494
xUNC.update(instrument.FRM_L2(rhoScalar, rhoVec, rhoUNC, waveSubset, xSlice))
14951495

1496-
if ConfigFile.settings['bL2UncertaintyBreakdownPlot']:
1496+
# NOTE: Block for FRM-Full for now
1497+
if ConfigFile.settings['bL2UncertaintyBreakdownPlot'] and\
1498+
ConfigFile.settings['fL1bCal'] == 2:
14971499
from Source.Uncertainty_Visualiser import UncertaintyGUI
14981500
gui = UncertaintyGUI()
14991501
gui.plot_FRM(

0 commit comments

Comments
 (0)