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

[Bug] tropomi_no2_co_nc2ioda.py IndexError #1598

Open
ashley314 opened this issue Jan 6, 2025 · 2 comments
Open

[Bug] tropomi_no2_co_nc2ioda.py IndexError #1598

ashley314 opened this issue Jan 6, 2025 · 2 comments
Assignees
Labels
bug Something is not working

Comments

@ashley314
Copy link
Contributor

Current behavior (describe the bug)

When running the ingest suite for tropomi CO for January 5th 2025, the convert throws an error and the entire suite fails.

The command:

python3 /home/ubuntu/skylab/jedi_run/build/bin/tropomi_no2_co_nc2ioda.py -i /home/ubuntu/skylab/jedi_run/workdir/f5092c/20250105T000000Z/obs_tropomi_s5p_co/obs.tropomi_s5p_co.20250105T000000Z.0.nc -o /home/ubuntu/skylab/jedi_run/workdir/f5092c/20250105T000000Z/obs_tropomi_s5p_co/obs.tropomi_s5p_co_total.20250105T000000Z.nc4 -v co -c total -n 0.0 -q 0.5

The error:

Processing variable: carbonmonoxide_total_column
Traceback (most recent call last):
  File "/home/ubuntu/skylab/jedi_run/build/bin/tropomi_no2_co_nc2ioda.py", line 301, in <module>
    main()
  File "/home/ubuntu/skylab/jedi_run/build/bin/tropomi_no2_co_nc2ioda.py", line 297, in main
    writer.BuildIoda(var.outdata, varDims, var.varAttrs, AttrData)
  File "/home/ubuntu/skylab/jedi_run/build/lib/python3.10/pyiodaconv/ioda_conv_engines.py", line 183, in BuildIoda
    ObsVars = self.VerifyDateTime(ObsVars)
  File "/home/ubuntu/skylab/jedi_run/build/lib/python3.10/pyiodaconv/ioda_conv_engines.py", line 168, in VerifyDateTime
    if (isinstance(dtvar[0], str)):
  File "/home/ubuntu/spack-stack-1.7.0/envs/ue-intel-2021.10.0/install/intel/2021.10.0/py-numpy-1.22.3-vvbmdne/lib/python3.10/site-packages/numpy/ma/core.py", line 3222, in __getitem__
    dout = self.data[indx]
IndexError: index 0 is out of bounds for axis 0 with size 0
+ ERROR

To Reproduce

Run skylab's observation ingest suite for tropomi_co using the date of 1/5/25.

Expected behavior

Convert completes or gracefully fails.

Additional information (optional)

@ashley314 ashley314 added the bug Something is not working label Jan 6, 2025
@ashley314 ashley314 self-assigned this Jan 6, 2025
@ashley314
Copy link
Contributor Author

@ashley314
Copy link
Contributor Author

@BenjaminRuston @jeromebarre I want to make you aware of this issue causing the skylab ingest CI to fail. I am not sure what tags to add or who can address it. Let me know, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working
Projects
None yet
Development

No branches or pull requests

3 participants