If there are any variables in the script you are going to write, define them using the definition options found in "Working with the Variable Type Menu" on page 4-4.
To create a script property function
1 In the property browser, click the property or variable for which you want to create a function.
2 In the Variable type box, select Script.
3 Create the script by doing one of the following:
• Type the name and the text of the script function in the Script box.
Note The name of the function should be identical to the name of the property you are defining. Also, you need to declare all variables (including x, y, z, if there are any) used in the function. Separate the names of the variables by a space. If you fail to declare a variable that you have used in the function, the command will not recognize it as a variable or fetch its definition.
• To load a previously saved function, click Load. The Load File dialog box appears and prompts you to select the text file that contains the function.
Note Ensure that all the variables are defined, which you can do after the function is created.
4 If you want to save your script function, click Save As. The Save File dialog box appears and prompts you to save the function as a text file under a file name that you specify.
Note Only the definition of the function itself is saved, not the definition of the variables used in the function.
5 Click Update Variable Definition to apply your changes.
Important Once created, script functions are not easily deleted.
4.5 Visualizing Property Functions 4-25 User Guide
4.5 Visualizing Property Functions
Because there is no substance in a model layer, there is no media to support the visualization of a property function in a layer. To view a property function, you need to paint the function on a grid, and then display the grid with the painted property.
For more information, see the following:
• "Painting a Voxet with a Velocity Model Property," page 4-25
• "Painting a Velocity Function on a Grid," page 4-26
4.5.1 Painting a Voxet with a Velocity Model Property
Use this command to paint a velocity model property on a voxet that has the same or greater spatial extent as your model.
To paint a Voxet with a property
1 To create a property in a Voxet, see Part IV: Foundation Modeling, "Copying, Deleting, and Renaming an Object Property" on page 12-6.
2 Select either:
• Voxet commands > Property > With Property Model to open the dialog box.
• Surface, Voxet, or SGrid commands > Model3d or Model (as applicable) >
Paint Voxet to open the dialog box.
3 In the Model box, enter the model that contains the property function.
4 In the Property box, enter the property that you want to review.
5 In the Layer name box, select the layer to which the property function is attached.
6 In the Voxet voxet box, select the Voxet onto which you want to paint the selected model property.
7 In the Voxet Property box, select the name of the property that you want to paint over.
Note The selected property will be painted over by values derived from the property function in the model.
4.5.2 Painting a Velocity Function on a Grid
You can use the Block Velocity Functions on Grid command to "paint" a velocity function on a grid so that you can visualize the velocity function velocities. The grid should have the same or greater spatial extent as the velocity function. You can paint the velocity function with different velocity types.
To paint a velocity
function on a grid 1 Select Velocity commands > Velocity Modeling > Block Velocity Functions on Grid to open the Block Velocity Function on Grid dialog box.
2 In the Grid box, select the grid on which you want to paint the velocity function.
3 In the Velocity function box, select the velocity function that you want to paint.
4 In the Velocity box, select the velocity property of the velocity function.
5 In the Output type box, select the velocity type that you want to paint on the grid.
6 In the Output velocity box, enter the name of the new velocity property that you want to paint on the grid.
7 For Input velocity function interpolation, select of the following methods for interpolating between velocity data points.
• linear. The velocity is linearly interpolated from the two values on either side of it.
• constant. The velocity is constant within an interval.
8 Click OK or Apply.
4.6 Adding Properties to Velocity Models 4-27 User Guide
4.6 Adding Properties to Velocity Models
Use this function to create global properties for velocity models. You can also designate a property type for each property. You use property types to group universal statistical parameters so that all the properties that you define as being in the same property type are in the same statistical pool.
For example, you may have three different type of permeability measurements: one from core samples, one from skin damage estimation and one from theoretical calculation. You could name them permc, perms and permt, respectively.
If you assign all three to the same property type Perm, then the data points from all three properties will be included when you calculate the mean (or any other statistical measure) of the property type Perm.
To add a property to a velocity model
1 To open the Create Property dialog box, do either of the following:
• Select Surface, Voxet, or SGrid commands > Model3D or Model (as applicable)
> Add Property.
• From the Property Model Editor, click Add Property.
2 Specify the property options as described in Part IV: Foundation Modeling, "Creating an Object Property or Well Log" on page 12-3. If it is not already preselected, select Velocity as the Category.
4.7 Deleting Properties from Velocity Models
For information, see Part IV: Foundation Modeling, "Copying, Deleting, and Renaming an Object Property" on page 12-6.
5-1