Closed mohsenminaei closed 1 year ago
I am using welleng 0.5.1 on Windows.
Hi @mohsenminaei and thanks for the question!
When interpolating, the original stations are maintained, so your count is the sum of the original survey stations plus the interpolated ones. There's a few reasons for doing this... if you only use the interpolated stations and then fit a path through these, you'll get a slightly different trajectory since the original points will no longer be on the minimum curvature path.
To see which stations are interpolated, you can use the interpolated
property.
>>> survey_interpolated = survey.interpolate_survey(step=10)
>>> survey_interpolated.interpolated
This will return a List[bool]
indicating which stations have been interpolated (True
).
If you want to extract only the stations where the md
is divisible by the step interval, you could make a sort of index mask with a modulo operator and apply that to the properties you're after:
mask = survey_interpolated.md % 10 == 0
If I apply this to your example:
>>> len(survey_interpolated.md[mask])
... 2051
Hope this helps?
BTW: note that the survey
module uses meters... this won't impact the survey calculations since they're dimensionless, but stuff like dls
won't be correct in feet.
Thanks so much @jonnymaserati for your super quick response. It makes sense now, your explanation was very helpful.
I have the following data:
I create a survey using
My goal is to have the well path with 10 ft step. So I do this:
Since the last value of md is 20501, I expect to get 2051 values, but I get 2131 values. There are some random points between two valid md points, such as below:
Is this a known issue? Is there a workaround for it? Thanks for your help in advance.