IOGP GN7-2. 2019-02-17 true false true The example here is not a realistic wellbore survey but demonstrates the magnitude of differences in computed coordinates when different corrections are applied. A straight path is modelled to a bottom hole at 5 km depth, approximately 14 km away from the surface location, using a constant inclination 70.54002°, bearing 51.3178° from grid north, and survey stations every 30.0167 metre. Forward calculation for a well with surface coordinates in WGS 84 / UTM zone 25N, EPSG CRS code 32625. Since this is a conformal map projection, psf_E = psf_N. Easting of Well Reference Point WRP_E = 800,000 m Northing of Well Reference Point WRP_N = 1,000,000 m Point scale factor at WRP psf_E = psf_N = 1.00071 Zero Depth Point MSL height H = 25 m (not used in equations) Local axes n and e are aligned with grid north and grid east, respectively. Initialisation: E = 800,000 m; N = 1,000,000 m. psf_flag=0;dcf_flag=0 psf_flag=1;dcf_flag=0 psf_flag=2;dcf_flag=2 i D(m) n(m) e(m) psfE=psfN dcf E(m) N(m) E(m) N(m) E(m) N(m) 1 0.00 0.00 0.00 1.000714 1.000000 800000.00 1000000.00 800000.00 1000000.00 800000.00 1000000.00 2 10.00 15.00 24.00 1.000714 1.000002 800000.00 1000000.00 800000.00 1000000.00 800000.00 1000000.00 3 20.00 30.00 48.00 1.000714 1.000003 800024.00 1000015.00 800024.02 1000015.01 800024.02 1000015.01 4 30.00 45.00 72.00 1.000714 1.000005 800048.00 1000030.00 800048.03 1000030.02 800048.03 1000030.02 5 40.00 60.00 96.00 1.000715 1.000006 800072.00 1000045.00 800072.05 1000045.03 800072.05 1000045.03 … 497 4960.00 7440.00 11904.00 1.000804 1.000779 811904.00 1007440.00 811912.50 1007445.31 811917.68 1007448.55 498 4970.00 7455.00 11928.00 1.000804 1.000781 811928.00 1007455.00 811936.52 1007460.32 811941.72 1007463.57 499 4980.00 7470.00 11952.00 1.000804 1.000782 811952.00 1007470.00 811960.53 1007475.33 811965.76 1007478.60 500 4990.00 7485.00 11976.00 1.000804 1.000784 811976.00 1007485.00 811984.55 1007490.34 811989.79 1007493.62 501 5000.00 7500.00 12000.00 1.000804 1.000785 812000.00 1007500.00 812008.57 1007505.35 812013.83 1007508.65 urn:ogc:def:method:EPSG::1077 Wellbore local to projected (GNL) For wellbore survey. Note: These formulas have been transcribed from EPSG Guidance Note #7-2. Users are encouraged to use that document rather than the text which follows as reference because limitations in the transcription will be avoided. The method has options for the application of two corrections: i) point scale factor (psf) is used to scale horizontal offsets to the local scale for the projected CRS, resolved into east and north components (when a conformal map projection is used, psf_E = psf_N): (i) no psf correction is applied, (ii) the point scale factor at the well reference point is applied to the complete wellbore, and (iii) the point scale factor at each point along the wellbore is applied. ii) depth correction factor (dcf) is used to scale horizontal offsets according to the depth of the point in the wellbore: (i) no dcf correction is applied, or (ii) a dcf correction is applied at each point along the wellbore. The inputs are: WRP_E : Easting of the Well Reference Point in the target projected CRS; WRP_N : Northing of the Well Reference Point in the target projected CRS; psf flag : 0 for none; 1 for constant at first point; 2 to apply a variable point scale factor; dcf flag : 0 for none; 2 to apply a variable depth correction factor along the path; n[] : Array of length num_points containing local northing coordinates, oriented to Grid North of the target projected CRS; e[] : Array of length num_points containing local easting coordinates, oriented to Grid East of the target projected CRS; D[] : Array of length num_points containing depths below the Vertical Reference Surface at survey stations down the wellbore. Care must be taken to convert local easting and northing to the same unit as used by the target projected CRS before applying the following equations. If psf flag=0 and dcf flag=0 then the target coordinates are computed using a simple 2D translation: E = WRP_E + e N = WRP_N + n If psf flag=1 and dcf flag=0 then the target coordinates are computed using a scaled offset as: E = WRP_E + e * psf_E N = WRP_N + n * psf_N If psf flag=2 and dcf flag=2 then an iterative method is needed to compute the variable point scale factor and depth correction factor along the wellbore. The LMP method is recommended in this situation, but if the GNL method is used then map convergence should also be calculated variable along-hole to reference the local coordinates to grid north. Output arrays E and N of length num_points are computed as follows: For i=1:num_points for psf_E and psf_N, compute_psf(E[i-1], N[i-1]) dcf = R / (R – D[i]) E[i] = E[i-1] + (e[i] – e[i-1]) * psf_E * dcf N[i] = N[i-1] + (n[i] – n[i-1]) * psf_N * dcf where for i=1, for the first station: E = WRP_E; N = WRP_N; e = 0; n = 0, and: compute_psf() is a function that returns the local point scale factors in easting and northing directions at the given location; R = 6371000 m. Note: Using a constant rather than the ellipsoidal local radii of curvature for the depth correction factors in easting and northing directions at the given location results in an insignificantly small error (e.g., for a lateral of 10 km at 10 km depth the worst case difference is 8 centimetres: 6371/(6371-10)=1.001572 vs. 6340/(6340-10)=1.001580). Reverse case: to compute (n,e) from given (E,N): For psf_flag=0 and dcf_flag=0: n = N – WRP_N e = E – WRP_E For psf_flag=1 and dcf_flag=0: n = (N – WRP_N / psf_N e = (E – WRP_E) / psf_E For psf_flag=2 and dcf_flag=2 (additionally requiring D as input): For i=1:num_points for psf_E and psf_N, compute_psf(E[i-1], N[i-1]) dcf = R / (R – D[i]) n[i] = n[i-1] + (N[i] – N[i-1]) / (psf_N * dcf_N) e[i] = e[i-1] + (E[i] – E[i-1]) / (psf_E * dcf_E) where for the first station i=0 is initialised as in the forward case.