Skip to content

Commit d4c2624

Browse files
troubleshoot CNR
1 parent e957fde commit d4c2624

File tree

7 files changed

+17
-11
lines changed

7 files changed

+17
-11
lines changed

Config/sample_SEABIRD_pySAS.cfg

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
"fL1bqcDawnDuskFlag": 1.0,
156156
"fL1bqcRainfallHumidityFlag": 1.095,
157157
"fL2SVA": 40,
158-
"bL2Stations": 0,
158+
"bL2Stations": 1,
159159
"fL2TimeInterval": 300,
160160
"bL2EnablePercentLt": 1,
161161
"fL2PercentLt": 10.0,
@@ -167,9 +167,9 @@
167167
"bL2SimpleNIRCorrection": 0,
168168
"bL2SimSpecNIRCorrection": 1,
169169
"bL2NegativeSpec": 1,
170-
"bL2BRDF": 1,
170+
"bL2BRDF": 0,
171171
"bL2BRDF_fQ": 0,
172-
"bL2BRDF_IOP": 1,
172+
"bL2BRDF_IOP": 0,
173173
"bL2WeightMODISA": 1,
174174
"bL2WeightSentinel3A": 0,
175175
"bL2WeightVIIRSN": 0,
@@ -186,9 +186,7 @@
186186
"bL2SaveSeaBASS": 1,
187187
"bL2WriteReport": 1,
188188
"bL2EnableQualityFlags": 1,
189-
"FidRadDB": 1,
190189
"bL2filterMetFlags": 0,
191-
"sL1aqcphotoFormat": "%Y%m%d_%H%M%S.jpg+0300",
192190
"bL2PlotProd": 0,
193191
"bL2Prodoc3m": 1,
194192
"bL2Prodkd490": 0,

Config/sample_SEABIRD_pySAS.hdr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"cruise": "FICE22",
88
"platform": "AAOT",
99
"documents": "FICE22_pySAS_Ancillary.sb",
10-
"instrument_manufacturer": "Sea-Bird",
11-
"instrument_model": "HyperSAS",
10+
"instrument_manufacturer": "SeaBird",
11+
"instrument_model": "HyperOCR",
1212
"calibration_date": "20221015",
13-
"calibration_files": "HSL0385_Tartu.cal,.DS_Store,CP_SAT0385_STRAY_20220602142331.txt,CP_SAT0385_POLAR_20220603115256.txt,HLD0385_Tartu.cal,SAS045_20220606.sip,SATMSG.tdf,CP_SAT0488_STRAY_20220603021236.TXT,CP_SAT0385_RADCAL_20220606105303.txt,CP_SAT0386_THERMAL_20220603193311.TXT,HSE0488_Tartu.cal,CP_SAT0386_RADCAL_20220606105628.TXT,CP_SAT0385_THERMAL_20220604193311.txt,CP_SAT0488_ANGULAR_20220530141651.TXT,CP_SAT0488_THERMAL_20220525093631.TXT,SATTHS0045A.tdf,UMTWR_v0.tdf,CP_SAT0386_POLAR_20220603123340.TXT,CP_SAT0488_RADCAL_20220606140951.TXT,CP_SAT0386_STRAY_20220602181047.TXT,HED0488_Tartu.cal,HSL0386_Tartu.cal,GPRMC_NMEA0183v3.01.tdf,HLD0386_Tartu.cal",
13+
"calibration_files": "HSL0385_Tartu.cal,CP_SAT0385_POLAR_20220603115256.txt,HLD0385_Tartu.cal,SAS045_20220606.sip,SATMSG.tdf,HSE0488_Tartu.cal,SATTHS0045A.tdf,UMTWR_v0.tdf,HED0488_Tartu.cal,HSL0386_Tartu.cal,GPRMC_NMEA0183v3.01.tdf,HLD0386_Tartu.cal",
1414
"data_type": "above_water",
1515
"data_status": "preliminary",
1616
"water_depth": "NA",
@@ -33,7 +33,7 @@
3333
"nadir": "40",
3434
"rho_correction": "M99",
3535
"NIR_residual_correction": "R06",
36-
"BRDF_correction": "L11",
36+
"BRDF_correction": "NoBRDF",
3737
"comments": "! HyperInSPACE vers = 1.2.14\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",
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,

Config/sample_TRIOS_NOTRACKER.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"fL1bqcDawnDuskFlag": 1.0,
128128
"fL1bqcRainfallHumidityFlag": 1.095,
129129
"fL2SVA": 40,
130-
"bL2Stations": 0,
130+
"bL2Stations": 1,
131131
"fL2TimeInterval": 300,
132132
"bL2EnablePercentLt": 0,
133133
"fL2PercentLt": 10.0,
@@ -158,6 +158,7 @@
158158
"bL2SaveSeaBASS": 1,
159159
"bL2WriteReport": 0,
160160
"bL2EnableQualityFlags": 1,
161+
"bL2filterMetFlags": 0,
161162
"bL2PlotProd": 0,
162163
"bL2Prodoc3m": 1,
163164
"bL2Prodkd490": 0,

Source/ProcessL1aTriOS.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def parse_filename(fileStr):
6767
try:
6868
a_name, a_type = parse_filename(file.split('/')[-1])
6969
except IndexError:
70+
print(f'Full path file: {file}')
7071
print(" ERROR: no identifier recognized in TRIOS L0 file name" )
7172
print(" L0 filename should have a cast to identify triplet instrument")
7273
print(" ending in 4 digits before S.mlb (light) or D.mlb for caps-on dark. ")

Source/ProcessL1b.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,10 @@ def processDarkCorrection(node, sensorType):
610610

611611
for gp in node.groups:
612612
if not gp.id.endswith('_L1AQC') and 'FrameType' in gp.attributes:
613+
if gp.attributes["FrameType"] == "Not Required":
614+
Utilities.writeLogFileAndPrint(f'ERROR: Check the FrameType for {sensorType}')
615+
break
616+
613617
if gp.attributes["FrameType"] == "ShutterDark" and gp.getDataset(sensorType):
614618
darkGroup = gp
615619
darkData = gp.getDataset(sensorType)

Source/SeaBASSHeader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def createDefaultSeaBASSHeader(name):
7272
SeaBASSHeader.settings["cruise"] = name.split('.')[0] # I generally name configuration files after cruise.
7373
SeaBASSHeader.settings["platform"] = ''
7474

75-
SeaBASSHeader.settings["documents"] = ''
75+
SeaBASSHeader.settings["documents"] = 'README.md'
7676

7777
SeaBASSHeader.settings["instrument_manufacturer"] = ''
7878
SeaBASSHeader.settings["instrument_model"] = ''

Source/SeaBASSWriter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ def formatHeader(fp,node, level):
118118
headerBlock['east_longitude'] = eastLon
119119
if headerBlock['west_longitude'] == '':
120120
headerBlock['west_longitude'] = westLon
121+
if headerBlock['documents'] == '':
122+
headerBlock['documents'] = 'README.md'
121123
if level == '2':
122124
headerBlock['wind_speed'] = aveWind
123125
return headerBlock

0 commit comments

Comments
 (0)