Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when handling MOPITT collection #306

Open
cheyenneland opened this issue Dec 12, 2024 · 0 comments
Open

Error when handling MOPITT collection #306

cheyenneland opened this issue Dec 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@cheyenneland
Copy link
Collaborator

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.

@jamesfwood jamesfwood added the bug Something isn't working label Dec 17, 2024
@jamesfwood jamesfwood added this to the L2ss-py Updates for 25.1 milestone Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants