Center-to-Center Separation Between Two Wellbores #147
-
Hello, @jonnymaserati . First of all, you are best and welleng is awesome! Since you already have all more complex features implemented, I wonder if there is a quick way in welleng to calculate the center-to-center distance from a given reference well MD to the closest offset well point? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for the question @Georgy1987! You actually prompted me to make some updates and issue a new version #149. Install the new version - the following code should do it, but you might want to do so in a new env and to use the mesh version you probably need the [all] dependencies:
Then create an
Then to get the # Create a IscwsaClearance instance:
c_iscwsa = we.clearance.IscwsaClearance(
survey_ref, survey_off, minimize_sf=True
)
# To get the md along the `ref` well of the closest point to the `off` well:
md_iscwsa = c_iscwsa.ref.md[np.argmin(c_iscwsa.distance_cc)] Good luck! |
Beta Was this translation helpful? Give feedback.
Thanks for the question @Georgy1987! You actually prompted me to make some updates and issue a new version #149.
Install the new version - the following code should do it, but you might want to do so in a new env and to use the mesh version you probably need the [all] dependencies:
Then create an
welleng.clearance.IscwsaClearance
instance - take a look at thetest_clearance_iscwsa.py
file in thetests
folder for inspiration.Then to get the
md
on the reference well at the closest point to the offset well: