Skip to content

ProcessL1B_seabird.py bug #396

@ARamsay17

Description

@ARamsay17

Traceback (most recent call last):
File "", line 1, in
File "c:\Users\ar17\AppData\Local\miniforge3\envs\hypercp\Lib\site-packages\numpy\lib\arraypad.py", line 748, in pad
pad_width = _as_pairs(pad_width, array.ndim, as_index=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\ar17\AppData\Local\miniforge3\envs\hypercp\Lib\site-packages\numpy\lib\arraypad.py", line 514, in _as_pairs
raise ValueError("index can't contain negative values")
ValueError: index can't contain negative values

issue is with ProcessL1B_seabird.py line 500:
LAMP = np.pad(LAMP, (0, nband-len(LAMP)), mode='constant')

len(LAMP) is 1400 instead of <= 255. This is read directly from the calibration files. I think an interpolation step is being missed earlier in the code to put LAMP data to radcal wavebands

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