Subsurface ignores a temp of 0˚C

Henrik Brautaset Aronsen subsurface at henrik.synth.no
Wed Jan 23 11:36:27 PST 2013


Jan Schubert wrote:
> On 01/23/13 20:22, Henrik Brautaset Aronsen wrote:
>> And I've attached a picture from the dive entry point, just for show :)
>
> Cool, thx for sharing.
>
> I remember a warning printed to the console for a temperature of -1C 
> at one of my dives, but I'm not able to find it again and do not 
> remember any other issue beside the warning shown. Might have been 
> imported from Predator or OSTC directly...

Yeah, I get ..

   Strange temperature reading -1.0 C

.. if I have a dive with ..

<temperature air='0.0 C' water='-1.0 C' />

It seems to be because the integer_or_float function in parse-xml.c 
doesn't know about negative degrees.

Henrik


More information about the subsurface mailing list