Skip to content

PR #392 SeaBird bug #393

@oceancolorcoder

Description

@oceancolorcoder

@ARamsay17 Testing PR on TriOS sensor-based was okay. Testing on pySAS sample data in both sensor- and class-based yielded the error:

Calculating M99 glint correction with complete LUT
Using LUT interpolations.
Calculating Zhang glint correction (LUT).
Interpolating Z17 LUT using cubic method
Zhang17 LUT Elapsed Time: 1.5 s
cannot mask straylight
Traceback (most recent call last):
File "/Users/daurin/GitRepos/HyperCP/Main.py", line 641, in multi2Clicked
self.processMulti()
File "/Users/daurin/GitRepos/HyperCP/Main.py", line 634, in processMulti
Controller.processFilesMultiLevel(
File "/Users/daurin/GitRepos/HyperCP/Source/Controller.py", line 852, in processFilesMultiLevel
Controller.processSingleLevel(pathOut, fp, calibrationMap, 'L2')
File "/Users/daurin/GitRepos/HyperCP/Source/Controller.py", line 772, in processSingleLevel
root = Controller.processL2(root,outFilePath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/Controller.py", line 470, in processL2
node = ProcessL2.processL2(root,station)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/ProcessL2.py", line 1874, in processL2
if not ProcessL2.stationsEnsemblesReflectance(node, root,station):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/ProcessL2.py", line 1766, in stationsEnsemblesReflectance
if not ProcessL2.ensemblesReflectance(node, sasGroup, referenceGroup, ancGroup,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/ProcessL2.py", line 1387, in ensemblesReflectance
l1b_unc, x_breakdown_unc = sensor.ClassBased(node, uncGroup, stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/BaseInstrument.py", line 126, in ClassBased
PDS = pds(node, uncGrp)
^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/PIUDataStore.py", line 73, in init
[self.read_uncertainties(root, input, sensor) for sensor in self.sensors]
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/PIUDataStore.py", line 73, in
[self.read_uncertainties(root, input, sensor) for sensor in self.sensors]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/PIUDataStore.py", line 331, in read_uncertainties
self.uncs[s]['ct'] = self.extract_unc_from_grp(grp=inpt, name=f"{s}_TEMPDATA_CAL", col_name=f'{s}_TEMPERATURE_UNCERTAINTIES')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/PIUDataStore.py", line 474, in extract_unc_from_grp
return np.asarray(list(ds.columns[col_name]))
~~~~~~~~~~^^^^^^^^^^
KeyError: 'ES_TEMPERATURE_UNCERTAINTIES'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions