mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
4b735521e2
In some situations we could end up with no sample pressure and no interpolated pressure at time = 0. This is now fixed. Fix notes in test dive the exposed the issue. Also change the code in create_plot_info to keep the number of samples and the number of corresponding pi entries in separate variables. This avoids future changes from breaking if they assume they can access dive->sample[nr_samples - 1] (which is a reasonable assumption to make). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
46 lines
2 KiB
XML
46 lines
2 KiB
XML
<dives>
|
|
<program name='subsurface' version='1'></program>
|
|
<dive number='8' date='2011-01-01' time='16:00:00' duration='30:00 min'>
|
|
<depth max='30.0 m' mean='15.0 m' />
|
|
<temperature air='27.0 C' water='26.0 C' />
|
|
<location>8th test dive, with samples</location>
|
|
<notes>SAC should be 0.93 cuft/min or 26.2 l/min
|
|
Tank pressure plotted correctly (linear approximation)
|
|
Descent light green
|
|
First Ascent red, second orange, third yellow, last green
|
|
</notes>
|
|
<cylinder o2='33.0%' size='9.987 l' workpressure='206.843 bar' description='AL72' start='200.0 bar' end='100.0 bar' />
|
|
<cylinder o2='50.0%' size='9.987 l' workpressure='206.843 bar' description='AL72' start='200.0 bar' end='100.0 bar' />
|
|
<event time='15:00 min' name='gaschange' value='50' />
|
|
<sample time='1:00 min' depth='5 m' />
|
|
<sample time='2:00 min' depth='10 m' />
|
|
<sample time='3:00 min' depth='15 m' />
|
|
<sample time='4:00 min' depth='20 m' />
|
|
<sample time='5:00 min' depth='25 m' />
|
|
<sample time='6:00 min' depth='30 m' />
|
|
<sample time='7:00 min' depth='30 m' />
|
|
<sample time='8:00 min' depth='30 m' />
|
|
<sample time='9:00 min' depth='30 m' />
|
|
<sample time='10:00 min' depth='30 m' />
|
|
<sample time='11:00 min' depth='30 m' />
|
|
<sample time='12:00 min' depth='30 m' />
|
|
<sample time='13:00 min' depth='30 m' />
|
|
<sample time='14:00 min' depth='10 m' />
|
|
<sample time='15:00 min' depth='15 m' />
|
|
<sample time='16:00 min' depth='5 m' />
|
|
<sample time='17:00 min' depth='10 m' />
|
|
<sample time='18:00 min' depth='10 m' />
|
|
<sample time='19:00 min' depth='10 m' />
|
|
<sample time='20:00 min' depth='10 m' />
|
|
<sample time='21:00 min' depth='10 m' />
|
|
<sample time='22:00 min' depth='5 m' />
|
|
<sample time='23:00 min' depth='5 m' />
|
|
<sample time='24:00 min' depth='5 m' />
|
|
<sample time='25:00 min' depth='5 m' />
|
|
<sample time='26:00 min' depth='5 m' />
|
|
<sample time='27:00 min' depth='5 m' />
|
|
<sample time='28:00 min' depth='5 m' />
|
|
<sample time='29:00 min' depth='2.5 m' />
|
|
<sample time='30:00 min' depth='0 m' />
|
|
</dive>
|
|
</dives>
|