Skip to content

PIU PR #387 PIU/BaseInstrument.py No. 2 #389

@oceancolorcoder

Description

@oceancolorcoder

@ARamsay17
Class-based regime pySAS sample data:

Zhang_Rho_Uncertainty Elapsed Time: 18.2 s
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 1876, in processL2
if not ProcessL2.stationsEnsemblesReflectance(node, root,station):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/ProcessL2.py", line 1768, in stationsEnsemblesReflectance
if not ProcessL2.ensemblesReflectance(node, sasGroup, referenceGroup, ancGroup,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/ProcessL2.py", line 1394, in ensemblesReflectance
l1b_unc, x_breakdown_unc = sensor.ClassBased(node, uncGroup, stats)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/BaseInstrument.py", line 124, in ClassBased
PDS = pds(node, uncGrp)
^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/PIUDataStore.py", line 70, in init
[self.read_uncertainties(input, sensor) for sensor in self.sensors]
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/PIUDataStore.py", line 70, in
[self.read_uncertainties(input, sensor) for sensor in self.sensors]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daurin/GitRepos/HyperCP/Source/PIU/PIUDataStore.py", line 305, in read_uncertainties
cal_date = dt.strptime(root.getGroup(calDate_string).attributes['CalibrationDate'], "%Y%m%d%H%M%S")
^^^^
NameError: name 'root' is not defined

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