JCSDA-internal / ioda-converters

Various converters for getting obs data in and out of IODA
9 stars 5 forks source link

[Bug] Conversion of TMS TROPICS fails #1551

Closed fabiolrdiniz closed 2 months ago

fabiolrdiniz commented 2 months ago

@ashley314 noticed that the SkyLab ingest suite is failing since tms_tropics-05 has been added to the mix of observing systems to be converted. An example of the failure can be seen below:

++ python3 /home/ubuntu/skylab/jedi_run/jedi-bundle/iodaconv/src/hdf5/tropics_2ioda.py -d 2024091500 -i obs.tms.tropics-05.20240915T000000Z.0 -o /home/ubuntu/skylab/jedi_run/workdir/2e7ac6/20240915T000000Z/obs_tms/obs.tms_tropics-05.20240915T000000Z.0.nc4
Traceback (most recent call last):
  File "/home/ubuntu/skylab/jedi_run/jedi-bundle/iodaconv/src/hdf5/tropics_2ioda.py", line 460, in <module>
    main(args)
  File "/home/ubuntu/skylab/jedi_run/jedi-bundle/iodaconv/src/hdf5/tropics_2ioda.py", line 129, in main
    writer.BuildIoda(obs_data, VarDims, VarAttrs, GlobalAttrs)
  File "/home/ubuntu/skylab/jedi_run/build/lib/python3.10/pyiodaconv/ioda_conv_engines.py", line 187, in BuildIoda
    self.WriteObsVars(ObsVars, VarDims, VarAttrs)
  File "/home/ubuntu/skylab/jedi_run/build/lib/python3.10/pyiodaconv/ioda_conv_engines.py", line 129, in WriteObsVars
    fillval = get_default_fill_val(Vvals.dtype, isinstance(Vvals[0], dt.datetime))
IndexError: index 0 is out of bounds for axis 0 with size 0
+ ERROR