summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-19 14:43:37 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-19 15:12:30 -0500
commite7491d3bf50ad31bbee38abc9da823c9cbdb9cd1 (patch)
tree350f5e0c1f7ca23d4aabd6ccfd616881d564ba67 /packaging
parente1019cafa87058562d9f5844619841546029a57c (diff)
downloadsubsurface-e7491d3bf50ad31bbee38abc9da823c9cbdb9cd1.tar.gz
Make pressure plot shading by sac rate consistent
Some parts of the existing code used the depth at the time of the sample to calculate the sac rate - it makes much more sense to use the average depth. But that requires us to loop over the entries and average the individual sac rates per segment instead of just using the beginning and end depth of the multi-segment interval we use for smoothing purposes. This may seem like a subtle detail, but it does in fact matter when we plot the synthetic tank pressure values that we create when we have no tank pressure data in the samples. Another detail we change here is to not artificially start with a forward looking segment of the full SAC_WINDOW but instead just start with the first two data points and then simply let the time window grow until it hits SAC_WINDOW - at which point it becomes a sliding window. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging')
0 files changed, 0 insertions, 0 deletions