/** * Sets resampled coordinates for the specified well log. Uses this directional survey and the * log's map coordinates (xe,yn,ze) to compute the resampled coordinates (x1,x2,x3). * * @param log the well log. */ public void setCoordinates(WellLog log) { assert id == log.id : "id of well log and directional survey match"; Locater locater = new Locater(log.xe, log.yn, log.ze, z, t, p); int n = log.z.length; log.x1 = new float[n]; log.x2 = new float[n]; log.x3 = new float[n]; for (int i = 0; i < n; ++i) { Coordinates.Csm csm = locater.locate(log.z[i]); log.x1[i] = (float) csm.x1; log.x2[i] = (float) csm.x2; log.x3[i] = (float) csm.x3; } }