Open ICWallis opened 2 years ago
Thank you for this issue @ICWallis , now I've had time to look at it, a couple of things that would make it easier to help:
import csv
import numpy as np
zeros_dls
, but I assume perhaps you mean the dls
that you created?
Thank you for including your example files and this code.I think what you're trying to achieve is not currently supported by wellpathpy
, in our position_log
Class, we currently require an existing deviation, I know that this is not your use case.
Currently we can resample a position log (that is based on a deviation), onto a new sample interval using minimum curvature but again, this does not match what you need.
I've marked this issue as an enhancement as this is functionality I think we probably should support in a future release. I'll leave this issue open for now until we get a chance to address it.
Thanks. I did wonder if this was out-of-scope for the current wellpathpy.
Sorry for missing those bits in the example:
I went back and re-read the source code and now see where the method uses the deviation survey to make the deviation survey. Sorry I missed that the first time around.
You don't need it for the minimum curvature per se, the (presumed source) deviation is kept for resampling. If all you want to do is compute a deviation survey from a position log you can even use None.
If this is a sufficiently common operation we could consider making it a free function and pull the implementation out of minimum_curvature.
I'm not sure if this should be raised as an issue or enhancement.
I would like to be able to generate a deviation log (md, az, inc) when I only have positional data (tvd, n, e).
I tested wp against case study data and it works well. But when I use an empty src to make the minimum_curvature class and pass in the case study positional log as lists, I get a slightly different deviation survey result. Not sure why.
The testing method is below and case study data are attached.
Case_study_pos_data.csv Case_study_dev_data.csv