02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Geometry<br />

Construct a LatticeInfo based on positions for corners 0, 1, and 3. Each corner will<br />

have x and y positions provided and a check will be made on the positions to ensure that<br />

they represent a rectangle.<br />

xWorld_i0jN,yWorld_i0jN<br />

xWorld_iNj0,yWorld_iNj0<br />

origin<br />

corner 0<br />

xWorld_i0j0,yWorld_i0j0<br />

Fig. 4-2 LatticeInfo Created from Corner Positions<br />

public LatticeInfo(<br />

int sizeI,<br />

// number of I axis cells<br />

int sizeJ,<br />

// number of J axis cells<br />

double xWorld_i0j0, // X location of origin corner cell (0, 0)<br />

double yWorld_i0j0, // Y location of origin corner cell (0, 0)<br />

double xWorld_iNj0, // X location of cell at end of I axis (N, 0)<br />

double yWorld_iNj0, // Y location of cell at end of I axis (N, 0)<br />

double xWorld_i0jN, // X location of cell at end of J axis (0, N)<br />

double yWorld_i0jN, // Y location of cell at end of J axis (0, N)<br />

float iAnnot_i0j0, // inline annotation value at origin cell<br />

float cAnnot_i0j0, // crossline annotation value at origin cell<br />

float iAnnot_iNjN, // inline annotation value at cell opposite<br />

// the origin cell<br />

float cAnnot_iNjN, // crossline annotation value at cell<br />

// opposite the origin cell<br />

bool annotationValid); // flag indicating annotation values valid<br />

Construct a LatticeInfo based on positions for all corners contained in X and Y arrays.<br />

Some of the data in the arrays will be redundant since not all four corner positions are<br />

needed to define a LatticeInfo object. The corner locations will be computed from the<br />

4-170 <strong>Ocean</strong> Application Development Framework 2008.1<br />

<strong>Schlumberger</strong> Private

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!