PICScript - Example Surfacetemp Script

This example script demonstrates:

The dip( ) function can be used to measure th ,magnitude of change for any statistic. Here we will use it to measure the magnitude of change for a horizon.

//HorizonScriptMode

//This is a comment line

//

//DECLARATION SECTION

//Declare input horizons and aliases

// Declare the 2 input surfaces

surfacein C_38 from time as top;

surfacein B_46 from time as bottom;

// Declare a temporary surface to hold

//      the isochron

surfacetemp isochron;

// Declare the output

output amp;

//

//FUNCTION SECTION

// Make the isochron inside the func block

// because data points must be read one at a time

func{

   isochron = topbottom;

}

// Dip is not computed inside the func block

// Dip must have access to the whole surface

amp = dip (isochron,2);