JCSDA-internal / ioda-converters

Various converters for getting obs data in and out of IODA
8 stars 2 forks source link

[Bug] pressureVertice of tropomi_co converted IODA file should be in single precision (float32) #1462

Closed weiwilliam closed 5 months ago

weiwilliam commented 5 months ago

Current behavior (describe the bug)

The converted TropOMI CO pressureVertice is in float64 rather than float32, which causes problem in UFO. https://github.com/JCSDA-internal/ioda-converters/blob/cbbdf93dcd826c8d461d298b3957d6e55aaff10d/src/compo/tropomi_no2_co_nc2ioda.py#L128C17-L128C38

ncdump header from testoutput/tropomi_co_total.nc

        double pressureVertice(Location, Vertice) ;
                pressureVertice:_FillValue = 9.96920996838687e+36 ;
                string pressureVertice:coordinates = "longitude latitude" ;
                string pressureVertice:units = "Pa" ;

Expected behavior

the header should be

        float pressureVertice(Location, Vertice) ;
                pressureVertice:_FillValue = 9.96921e+36f ;
                string pressureVertice:coordinates = "longitude latitude" ;
                string pressureVertice:units = "Pa" ;