Skip to content

Error when handling MOPITT collection #306

Open
@cheyenneland

Description

We received an error when running MOPITT collection MOP02J_9 for the granule MOP02J-20230429-L2V19.10.3.he5.

Sample run:
python run_subsetter.py MOP02J-20230429-L2V19.10.3.he5 MOP02J.nc --bbox -180 -90 180 90 --variables HDFEOS/SWATHS/MOP02/Geolocation_Fields/Latitude HDFEOS/SWATHS/MOP02/Geolocation_Fields/Longitude HDFEOS/SWATHS/MOP02/Data_Fields/DryAirColumn

File "/l2ss-py/podaac/subsetter/group_handling.py", line 252, in h5file_transform instrument = additional_file_attributes.attrs['InstrumentName'].decode("utf-8")
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "l2ss-py/l2ss_venv_two/lib/python3.10/site-packages/h5py/_hl/attrs.py", line 56, in getitem attr = h5a.open(self._id, self._e(name))
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5a.pyx", line 80, in h5py.h5a.open
KeyError: "Can't open attribute (can't locate attribute: 'InstrumentName')"

Our MOPITT collections do not have InstrumentName under the File Attributes.

Tested with version 2.12.0a2

Note: The ASDC has dependencies for our on-prem subsetter decommissioning.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

  • Status

    No status

Relationships

None yet

Development

No branches or pull requests

Issue actions