Skip to content

CalibrationDate not available in factory mode #403

@oceancolorcoder

Description

@oceancolorcoder

@ARamsay17 pySAS sample data test in Factory regime:

Using LUT interpolations.
Calculating Zhang glint correction (LUT).
Interpolating Z17 LUT using cubic method
Zhang17 LUT Elapsed Time: 1.5 s
Traceback (most recent call last):
  File "/Users/daurin/GitRepos/HyperCP/Main.py", line 584, in singleL2Clicked
    self.processSingle("L2")
  File "/Users/daurin/GitRepos/HyperCP/Main.py", line 558, in processSingle
    Controller.processFilesSingleLevel(
  File "/Users/daurin/GitRepos/HyperCP/Source/Controller.py", line 904, in processFilesSingleLevel
    Controller.processSingleLevel(pathOut, fp, calibrationMap, level)
  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 1877, in processL2
    if not ProcessL2.stationsEnsemblesReflectance(node, root,station):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/daurin/GitRepos/HyperCP/Source/ProcessL2.py", line 1769, in stationsEnsemblesReflectance
    if not ProcessL2.ensemblesReflectance(node, sasGroup, referenceGroup, ancGroup,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/daurin/GitRepos/HyperCP/Source/ProcessL2.py", line 1390, 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 <listcomp>
    [self.read_uncertainties(root, input, sensor) for sensor in self.sensors]
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/daurin/GitRepos/HyperCP/Source/PIU/PIUDataStore.py", line 317, in read_uncertainties
    cal_date  = dt.strptime(root.getGroup(calDate_string).attributes['CalibrationDate'], "%Y%m%d%H%M%S")
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'CalibrationDate'

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