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.

array values for corners 0, 1, and 3. The annotation values will be computed from the<br />

array values for corners 0 and 2.<br />

Geometry<br />

public LatticeInfo(<br />

int sizeI,<br />

// number of I axis cells<br />

int sizeJ,<br />

// number of J axis cells<br />

double[ ] xWorld, // array of X locations for 4 corners<br />

double[ ] yWorld, // array of Y locations for 4 corners<br />

float[ ] iAnnot, // array of inline annotation values for 4<br />

// corners<br />

float[ ] cAnnot, // array of crossline annotation values for 4<br />

// corners<br />

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

The following code sample illustrates the creation of a LatticeInfo object that will be<br />

used in the following sections.<br />

double originX = 100000.0;<br />

double originY = 200000.0;<br />

double spacingI = 25.0;<br />

double spacingJ = 12.5;<br />

double rotation = 0.5235<br />

bool clockwise = false;<br />

int sizeI = 100;<br />

int sizeJ = 100;<br />

bool annotValid = true;<br />

float originI = 100;<br />

float originC = 200;<br />

float annotSpacingI = 10;<br />

float annotSpacingC = 1;<br />

LatticeInfo lattice = new LatticeInfo(originX, originY,<br />

spacingI, spacingJ,<br />

rotation, clockwise,<br />

sizeI, sizeJ,<br />

annotValid,<br />

originI, originC,<br />

annotSpacingI, annotSpacingC);<br />

The LatticeInfo class has the following public properties:<br />

<strong>Schlumberger</strong> Private<br />

<strong>Ocean</strong> Services 4-171

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

Saved successfully!

Ooh no, something went wrong!