0% found this document useful (0 votes)
27 views29 pages

Tutorial Functionmod

The FunctionMod tutorial provides guidance on performing mathematical operations using Jason Geoscience Workbench data files, focusing on creating and managing expressions. It covers various topics including basic expressions, conditional expressions, and managing external functions, with step-by-step instructions for calculations and quality control of results. The document emphasizes the importance of understanding the software's interface and syntax for effective usage.

Uploaded by

heldamalta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views29 pages

Tutorial Functionmod

The FunctionMod tutorial provides guidance on performing mathematical operations using Jason Geoscience Workbench data files, focusing on creating and managing expressions. It covers various topics including basic expressions, conditional expressions, and managing external functions, with step-by-step instructions for calculations and quality control of results. The document emphasizes the importance of understanding the software's interface and syntax for effective usage.

Uploaded by

heldamalta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

Tutorial

FunctionMod
Last updated: release 9.5

Copyright © 1993-2016 CGG September 2016


GeoSoftware
As the leading provider of seismic inversion and reservoir characterization products and
services, CGG GeoSoftware has offices worldwide. Please see our Web site
(jason.cgg.com) for office locations and contact information. For general information,
please send a request to [email protected].

Copyright © 1993-2016 CGG.


All rights reserved.
No part of this documentation may be reproduced, stored in a retrieval system, or transmitted in any form or
by any means, electronic, mechanical, photocopying, recording, or otherwise, without prior written
permission from CGG.
CGG assumes no responsibility or liabilities direct or indirect for any errors or inaccuracies that may appear
in this document or from the use of the information in this document with the software products described
herein.
The software described in this document is furnished under a separate license agreement and may only be
used or copied in accordance with the terms of such license.
Usage rights for this material are governed by the terms of customer’s written license agreements with
CGG.

Trademarks
3D Grid/CPG Builder , 3DiQ , EarthModel , EarthModel® FT™, EPlus™, FunctionMod™, InverMod®,
™ ™ ®

InverTrace®, InverTrace®Basic™, InverTrace®Plus™, Jason™, Jason Geoscience Workbench®, Jason STS™,


Largo™, PowerBench®, PowerLog®, Rock Physics Module™, RockMod®, RockScale®, RockTrace®,
Statmin™, StatMod®, StatMod® MC™, VelMod™, and Wavelets™ are trademarks of CGG and may not be
used without permission.
All names of other companies, products, and services are the property of their respective owners.

ii FunctionMod
FunctionMod

Contents

Chapter 1. Introduction...................................................................................... 1
1.1. Objective ...................................................................................... 1
1.2. Duration and prerequisites ............................................................ 1

Chapter 2. Basic Expressions ........................................................................... 2


2.1. Creating expressions .................................................................... 2
2.2. Assigning variables and parameters ............................................. 3
2.3. Performing the calculation and QC’ing the results ........................ 5
2.4. Combining functions in expressions.............................................. 6

Chapter 3. Using Conditional Expressions (if-then-else) ................................... 7

Chapter 4. Using Tables, Polygons or Pre-defined Functions in your


expressions ................................................................................... 13

Chapter 5. Managing External Functions ........................................................ 16

Chapter 6. Performing Different Calculations on Multiple Layers .................... 17

Chapter 7. Creating Your Own Functions (or Not) .......................................... 23

Chapter 8. Appendix: Restoring the dataset ................................................... 24

Contents iii
Introduction 1

Chapter 1. INTRODUCTION

FunctionMod performs mathematical operations on/with Jason Geoscience


Workbench data files.
The program has three main components:
• A simple user interface for calculations using well, horizon, stratigraphic or
seismic/property data.
• An advanced calculations user interface where you can apply different expressions
to separate layers in a solid model.
• A Function Editor, where you can create new functions.

1.1. Objective
The examples in this tutorial show you how to perform various types of calculation.
The tutorial focuses on how to achieve the results, rather than on the results
themselves.

1.2. Duration and prerequisites


Completing the tutorial takes some 2 hours.
If you know the basics of FunctionMod, just work through the sections that interest
you most. If you have never seen the program before, it is recommended to start with
the chapter on Basic expressions, and then continue with the other chapters as you see
fit.
To be able to QC the results of the calculations, you should have a working
knowledge of the Jason viewers.

FunctionMod
2 Basic Expressions

Chapter 2. BASIC EXPRESSIONS

Mathematical operations in FunctionMod are referred to as expressions. You can use


all sorts of functions, variables and operators in an expression.
In this example, you will learn how to create and edit expressions in FunctionMod.
Start by opening the module:
1. To open FunctionMod, select Analysis > FunctionMod.
Most of the fields in the main FunctionMod window are blank. Once you have created
an expression, an overview will be given of the expression and settings for the current
(active) calculation. This information is updated as soon as you make changes or
when you retrieve a transform (a session file with all the related data and settings,
including the expression).

2.1. Creating expressions


For each expression, you perform the same steps, regardless of the data type:
• First decide what type of calculation you need: do you want to output a well file, a
seismic/property file, a horizon file, or do you want to perform separate
calculations on different layers in a solid model? Depending on your choice, go to
the appropriate tab in the main window.
• Edit the expression.
• Assign a file name and a data type to the result as well as to the various
parameters used in the expression.
• Generate the results.
The easiest way to start with FunctionMod is to create an expression through the Edit
Expression dialog box. As an example we will estimate the average of an inverted
P-impedance volume in a particular layer, and save the result as an attribute horizon.
1. Go to the Horizon Calculations tab.
You can create an expression in FunctionMod using either of two methods:
• Click Edit to the right of the Expression field to open the Edit Expression
dialog box. Then you can add the expression items into the Expression field.
• Enter the expression into the Expression field and click Set.
Both methods are described below.

FunctionMod
Basic Expressions 3

Using the Edit Expression dialog box

If you are not sure about the syntax of an expression, or if the expression you want to
use is a complicated one, the easiest way to input the functions and operators is
through the Edit Expression dialog box.
1. Click Edit to the right of the Expression field.
2. Look at the available subcategories of functions, variables or operators under
Function category and choose to use the Math and Trigonometry.
3. Note that when you click on any of the items in the Predefined Functions panel,
a description of the function is shown.
4. Select the function that calculates the average (in FunctionMod this is called
mean) and click Add (or double-click on the function name) to add the function to
the Expression field.
5. Click OK to return to the Horizon Calculations tab.
The Expression field now contains the expression mean(v). In the Variables and
parameters table, a row has been added for every variable in the expression. The first
row always defines the output and is given the name Result by default. In this
example there is only one input variable, named v.

Entering an expression directly

Another way to create basic expressions in FunctionMod is to enter the function(s)


and variables you need directly in the Expression field. You can use the same items
(functions, variables, parameters and operators) that are also listed in the Edit
Expression dialog box. For example, to perform a linear calculation you can type
a*x+b in the Expression field. When you click Set, the Variables and Parameters
table contains four rows: Result, a, x and b.
Although this seems an easier way of creating expressions, you need to know the
proper syntax to enter your expression correctly. Note that FunctionMod expressions
are case-sensitive.

2.2. Assigning variables and parameters


Now that you have entered the expression to estimate the average P-impedance in a
layer as mean(v), you need to set the variables and parameters so that FunctionMod
knows which P-impedance file to use and how to save the result.
1. Make sure that the Expression field contains the mean function: mean(v). Once
you have created the function and clicked Set, you will see the variables and
parameters listed. You can now start defining the parameters. This is called
assigning.
2. Assign the Result parameter so that the result is saved as a horizon named
average P-impedance Green in a new horizon file named
estimated_attributes.hor.

FunctionMod
4 Basic Expressions

In the Result row, do as follows:


• Click on <not assigned> in the Assignments column to open the Select New
Horizons File dialog box.
• Select the FunctionMod_tutorial directory.
• Enter the new file name estimated_attributes.hor.
• Click Next. The Select Horizon dialog box opens.
• Enter the name of the horizon (average P-impedance Green) in the Name(s)
field.
• Click OK to save your input and close the dialog box.
• Click on None in the JGW Type column and set the type to P-Impedance.
3. Assign the v parameter to the appropriate model file by clicking on the following
cells in the v row:
• Click on the cell in the Assign.Type column and select Model file.
• Click on <not assigned> in the Assignments column and select the file
FunctionMod_tutorial/inverted_impedance.mod, then click OK. Notice that
the JGW Type is filled in automatically.
4. To set the trace gate, select Demo_Area from the drop-down list.
5. Set the vertical gate defining the layer:
• Set the Vertical domain to Time.
• Click … to select the Vertical gate. The Vertical Gate (Time) dialog box
opens:
 Set Use horizons.
 Select the HORIZONS/Horizons.hor file.
 Define the extent to reach from the Green_Top to the Green_Top with
Offset from bottom horizon 200ms.
 Click OK.
The Horizon Calculations tab should look as follows:

FunctionMod
Basic Expressions 5

Figure 1: Horizon Calculations tab with an example of a horizon calculation

In FunctionMod you can save your session with all the related data and settings (such
as expressions) in a transform, for use in future sessions. For this exercise this is not
necessary but if you wish to save your work, select File > Save Transform.

2.3. Performing the calculation and QC’ing the results


You have now set up the function, and you can run it whenever suits you. To start the
actual calculation:
1. Inspect the Horizon Calculations tab. You should see the expression you just
created with all its assignments.
2. Either click the Generate button near the bottom or the Generate icon in the
horizontal toolbar (the traffic light ).
If you need to run several transforms one after another, or if you want to generate the
results at specific times later, select Output > Define Batch Processing. For more
information, refer to the Help system.
3. After the results have been generated, you should always QC them in one of the
viewers. In this example you created a new attribute horizon, so you should
examine the result in Map View. Note that the colors are flipped.

FunctionMod
6 Basic Expressions

Figure 2: Map View of the average P-impedance in the Green layer

2.4. Combining functions in expressions


In the previous exercise, you used only one function in the expression. You can
however combine multiple functions in one expression. To create such an expression
you can either enter it directly or use the Edit Expression dialog box. The latter is the
recommended way, especially for complicated expressions.
The following is a general step-by-step description of how to combine functions in
expressions.
1. Go to the appropriate calculations tab.
2. Click Edit next to the Expression field. The Edit Expression dialog box opens
with all the available functions.
3. Select the first function you want to use and click Add. The function is added to
the Expression field in the Edit Expression dialog box.
4. Select the next function (left column) or mathematical operator (right column) you
want to use and click Add. Alternatively, enter the function and/or operator into
the Expression field.
5. Do the same for all functions and/or operators you want to include. When you are
done, click OK.
Note: If you have combined functions in such a way that they are mathematically incorrect, an
error message is displayed. Correct the expression and continue.

In the calculations tab, the Expression field now displays the complete expression;
and the Variables and Parameters table contains rows for the Result and for each
variable in your expression. Proceed to assign all the variables to parameters (see
Assigning variables and parameters on page 3), then generate the output (see
Performing the calculation and QC’ing the results on page 5).

FunctionMod
Using Conditional Expressions (if-then-else) 7

Chapter 3. USING CONDITIONAL EXPRESSIONS


(IF-THEN-ELSE)

Conditional expressions are also referred to as if-then-else expressions. You state a


condition and if the condition is true, then one statement is executed; if the condition
is false, another statement is executed.
For example, suppose you want to create a facies curve that distinguishes sand from
shale. You could then use the gamma ray (GR) curve as a condition. If gamma ray is
lower than 80 gAPI it can be considered sand, otherwise it is shale:
GR < 80 ? sand : shale
This is the syntax to formulate an if (?), then, else (:) statement. The result will be a
curve with the value sand in places where the gamma ray is lower than 80 and shale
everywhere else.
Because Jason cannot handle curves that include text, the text values sand and shale
must each be mapped to an integer, for example 0 and 1. The easiest way to create
your own text-to-integer mapping is to use the Jason Project Settings. After creating
the mapping, the function would look as follows:
GR < 80 ? 0 : 1
You can also add an extra condition to the else section. Suppose you want to
differentiate between sand, shaley-sand and shale with the mapping of sand = 0, shale
= 1 and shaley-sand = 2. You can then set up the if-then-else expression as follows: if
gamma ray is lower than 80 gAPI = 0 (sand), if it is higher than 90 gAPI = 1 (shale),
and everything in between 80-90 gAPI = 2 (shaley-sand). This expression looks as
follows:
GR < 80 ? 0 : GR > 90 ? 1 : 2
This can be read as:
if gamma ray < 80, then
set to 0 (= mapped to sand);
else
if gamma ray > 90, then
set to 1 (= mapped to shale);
else
set to 2 (= mapped to shaley-sand)

The example above is used for this exercise. Start by creating a facies mapping of the
facies types: sand, shale and shaley-sand. You can then use this mapping to perform
an if-then-else calculation.
1. To create the mapping of the facies, proceed as follows.
• In the Workbench, select Project > Jason Project Settings.
• Go to the Types and Units tab, where you can add new data types:

FunctionMod
8 Using Conditional Expressions (if-then-else)

 Go to the subtab Edit User Defined Types.


 Click Add type and give the new data type the name sand-shale.
 Click … in the Edit column:
In the Edit Data Type dialog box, check the box Categorical data type and click Edit
Categories.
Click Add and enter the facies type sand. Leave the integer representation as 0 (the
default).
Click Add two more times to create the facies types shale and shaley_sand. Do not
change the integer representations for these either.
Click OK.

Figure 3 Categorical data for sand-shale

 Since this categorical data type does not have a unit associated with it,
leave the entry none in the Unit field.
 Click OK to close the Edit Data Type dialog box. You have now created a
facies type curve called sand-shale with facies types sand, shale and
shaley-sand.
• When you are done, click OK to close the Project Settings.
2. Now you can compute the facies type curve using an if-then-else expression:
• Return to FunctionMod. If the main window is no longer open, select Analysis
> FunctionMod from the Jason Workbench.
• In the Well Calculations tab:
 Select well WELLS_DB/AllCurvesGroup/db@OCS-G_05825_5.wll.
 As the Expression enter GR < 80 ? 0 : GR > 90 ? 1 : 2 and either click
Set, or press Enter on the keyboard. Two rows are added to the Variables
and Parameters table.
Most curves are mapped to codes that can be used in an expression. For example, if
you use GR in the expression, FunctionMod will automatically assign the gamma ray
curve to the GR variable. You could also use a different name, but then you have to

FunctionMod
Using Conditional Expressions (if-then-else) 9

assign the curve yourself.

To see which codes are assigned to which curves, in FunctionMod select Edit > Edit
log code mapping.
3. Assign the parameters and variables for the calculation:
• For Result, click <Not assigned> in the Assignments column.
 Select sand-shale in the Select Variable Type dialog box.
• Define the sampling and the vertical gate for the computation:
 Underneath the table, set the sampling to Measured Depth on a vertical
gate defined by Well Log Extent using the Gamma ray curve. Your Well
Calculations tab should now look like this:

Figure 4: FunctionMod Well Calculations tab

 Make sure that the JGW types are set correctly: your entries should read
sand-shale for your result and Gamma ray for your GR parameter.
You can easily apply the same calculation to multiple wells by selecting these under
Perform the same calculations on additional wells.
• Save your session with all the related data and settings using File > Save
Transform As, so that you can use the transform in future sessions.
• Click Generate to generate the results. The curve is added to the well.
4. Open Well Log View to check the results:

FunctionMod
10 Using Conditional Expressions (if-then-else)

• Select well WELLS_DB\AllCurvesGroup\db@OCS-G_05825_5.wll and the log


sand-shale:

Figure 5: Well Log View of the computed sand-shale log of


WELLS_DB/AllCurvesGroup/OCS-G_05825_5.wll.

You can use more than one variable in FunctionMod functions. For example, you
just computed a facies curve based on only a gamma ray curve that does not
distinguish between fluids. To distinguish between pay sands and wet sands, you
need to include resistivity, as follows:
5. In the Jason Project Settings, create a new user-defined categorical data type
called MyLitho with the following facies types and mapping values: sand = 0,
shale = 1, shaley_sand = 2, and oil_sand = 3.

6. In FunctionMod, enter the following expression:


Result = GR > 90 ? 1 : GR > 80 ? 2 : RESIS > 2 ? 3 : 0
This can be read as:
if gamma ray > 90, then
set to 1 (= mapped to shale);

FunctionMod
Using Conditional Expressions (if-then-else) 11

else
if gamma ray > 80, then
set to 2 (= mapped to shaley-sand);
else
if resistivity > 2
set to 3 (= mapped to oil_sand);
else
set to 0 (= mapped to sand)

7. Assign the variables and parameters in the table:

Figure 6: Well Calculation example for computing a facies curve in FunctionMod

8. Compute the facies type curve.


9. Save the transform using File > Save Transform As.
10. Inspect the results in a new panel of Well Log View and zoom in on the area
below the Green_Top.

FunctionMod
12 Using Conditional Expressions (if-then-else)

Figure 7: Well Log View of the computed sand-shale-oil curve with adjusted color scaling.
Gamma ray [50-200 gAPI] curve is displayed in black. Resistivity log [0-20 ohm*m] is shown
in light blue in the right panel

FunctionMod
Using Tables, Polygons or Pre-defined Functions in your expressions 13

Chapter 4. USING TABLES, POLYGONS OR PRE-


DEFINED FUNCTIONS IN YOUR
EXPRESSIONS

FunctionMod lets you use tables, polygons or pre-defined external functions in


expressions. There are different ways to do this, but the easiest one is to simply enter
any name in the Expression field (which you can then later assign to a table, polygon
or pre-defined external function) and append the appropriate number of function
arguments, separated by commas:
• If you want to use a table, you need one function argument (x).
• If you want to use a polygon, you need two function arguments (x1,x2).
• If you want to use a function, you need as many function arguments as the
function has variables. If your function contains 3 variables, append (x1, x2, x3).
You will then be allowed to select only functions that have 3 parameters. If you do
not know the number of parameters that your function uses, add it using the Edit
button instead.
Depending on the number of arguments in the Expression field, the column Assign.
Type will offer one or more types to assign: tables, polygons and/or functions.
This exercise will show you how to use a table in an expression. As an example you
are going to calculate reservoir property volumes using the elastic parameter volumes
resulting from an inversion.
1. In FunctionMod, select File > New Transform.
2. Go to the Seismic/Property Calculations tab.
3. The calculation is done via a table that contains the relation between the elastic
parameter (P-impedance) and the reservoir property (Porosity). Therefore, you
need one function argument:
• Enter a name in the Expression field and append the function argument in
brackets. For example, enter a(x).
• Click Set.
4. Assign a new model file to Result, called new_porosity.mod in the
FunctionMod_tutorial directory.

• Set the JGW Type to Porosity.


5. Assign FunctionMod_tutorial/inverted_impedance.mod to x. Note that the JGW
Type and Unit are assigned automatically.
6. In the row for parameter a, check that the Assign.Type cell is set to Table. If not,
click on Assign.Type and from the dropdown list, choose Table; then assign
FunctionMod_tutorial/ai2por.tab.

FunctionMod
14 Using Tables, Polygons or Pre-defined Functions in your expressions

Figure 8: FunctionMod with an example of model calculations

If you expect to use the table in other expressions as well, you can add it as an
external function. The advantage is that you do not have to define the row for a
anymore, as FunctionMod already knows what table to use. See Managing External
Functions (page 16) for more information.
7. Set the following parameters:
• Vertical domain to Time.
• Trace gate to Demo_Area.
8. Compute the porosity volume by clicking Generate.
• The file new_porosity.mod will be added to your project.
9. Examine the result in Section View or 3D View.

FunctionMod
Using Tables, Polygons or Pre-defined Functions in your expressions 15

Figure 9: SectionView results of new_porosity.mod in density on the Demo_Area trace gate

FunctionMod
16 Managing External Functions

Chapter 5. MANAGING EXTERNAL FUNCTIONS

External functions in FunctionMod are functions (.fun files), tables or polygons that
were not predefined but made by you or by another user. These items can be used in
FunctionMod expressions. You can also add a function, table or polygon to the
overview in the Edit Expression dialog box, with the advantage that you do not have
to remember any syntax.
Below are some general instructions on how to manage external functions.
1. To add an item to the overview in the Edit Expression dialog box, do the
following:
• Depending on the item you want to add, go to the appropriate calculations tab
in FunctionMod.
• Next to Expression, click Edit to open the Edit Expression dialog box.
• Under Function category choose External Functions. An additional button
Manage is shown to the right of the window.
• Click Manage to open the Manage External Functions dialog box.
• Click Function, Table or Polygon to add an item to the Loaded functions
list. The standard file selection dialog box opens.
• Select the function, table or polygon and click OK.
• Click OK again to close the Manage External Functions dialog box. The
external function is now listed in the Edit Expression dialog box.
• To use the external function, select it and click Add.
• Click OK to close the Edit Expression dialog box, and to return to the
calculations tab.
2. Assign the variables and parameters as before, and generate the results.

FunctionMod
Performing Different Calculations on Multiple Layers 17

Chapter 6. PERFORMING DIFFERENT


CALCULATIONS ON MULTIPLE LAYERS

FunctionMod lets you perform different seismic or property calculations in each layer
of a solid model in one run.
As an example you will build a trend model where different calculations are
performed for three layers of the solid model. For these layers you want the following
calculations to be performed:
• Orange: mean of predefined traces.
• Red: the trend function which calculates a linear trend between the two
means.
• Deep: mean of predefined traces.
1. To perform the calculations for the Red layer, you will need the external function
Trend.fun that is available in the FunctionMod_tutorial directory.

• Copy the function to the main project directory. If the function is not in the
JASON_DATA folder (the Jason Workbench project directory), you will not be
able to select it in the Advanced Calculations tab.
2. In FunctionMod, go to the Advanced Calculations tab.
3. Define the parameters:
• Select Vertical gate of Input = Solid model. This means that the layers in the
solid model are used as input. At a later stage, when you define the output, you
can assign specific functions to the different layers.
• Click Edit to the right of Vertical gate of Input and select SM as the solid
model to use, then click OK.
• In the next dialog box that opens, you will see the solid model layers in
alphabetical order. In addition to the three layers from the solid model, you
should also see the layers ABOVE, GAPS and BELOW that are created by
FunctionMod. They define the area above the top layer, the gaps in your
model (for example because of reverse faults), and below the bottom layer,
respectively.
 Select all the listed layers.
• Change the Vertical gate of Output to Solid model. This solid model defines
the layers for the calculation. Click Edit to the right of Vertical gate of
Output, and select the same solid model as you did for the Vertical gate of
Input.
Note: Make sure both solid models are the same. If the input and output solid models are
different, your calculations will come out wrong.

FunctionMod
18 Performing Different Calculations on Multiple Layers

• For Horizontal gate, retrieve the 3D trace gate Demo_Area.


4. Click Edit next to the Assignments field to open the Transform dialog box where
you can define the transform.
5. Ensure that the Global Settings are set as follows:
• File type should be set to Seismic/Property.
• Sample interval should be set to 4 ms (0.004 s).
6. The Output File Settings should be set as follows:
• By default, the output Data type is set to P-Impedance. Keep this setting.
• Define the File name for your output file to be
FunctionMod_tutorial/trend.mod. You can enter the directory/name of a
(new) file in the File name field, or do as follows:
 Click … to open the Select New Files dialog box.
 Click Add to open the Model File dialog box.
 Select the directory FunctionMod_tutorial and enter the name of the new
file in the Name field.
 Click OK to close the dialog box. The directory/file name is listed in the
Select New Files dialog box.
 Click OK to return to the Transform dialog box.
Note: If you enter or select an existing directory/file name, the file will be overwritten.

• In the Transform dialog box, click Add to add the output file settings to the
listing.
7. The next step is to define how the output file is to be created:
• Click on the filename you just added.

• Click Assign. The Assign Function and Parameters dialog box appears.
All the layers from the output solid model are listed, as well as ABOVE, GAPS
and BELOW that were created by FunctionMod. You can use all layers to perform
calculations on, but note the following:

FunctionMod
Performing Different Calculations on Multiple Layers 19

• If you assign a function or value to ABOVE and/or BELOW, you actually


assign the function/value to the area from your initial time in your time gate
(t0) to the upper layer of your solid model.
• If your solid model contains gaps and you want to avoid undefined values in
your output model file at the gaps, you should assign a function or value to
GAPS.
8. Select the layers you want to perform the calculations on. For this exercise select
the layers Deep, Red and Orange.
The selected layers are added to the column Function assignments:

Figure 10: Assign Functions and Parameters dialog box to assign a function or value to layers

9. You are now ready to start assigning different functions to the layers. The purpose
of this transform is to execute the following functions for the following layers:
• Orange: mean of predefined traces.
• Red: the trend function which calculates a linear trend between the means of
the layer above and below.
• Deep: mean of predefined traces.
You can add each function as follows:
• Click on layer Orange in the Function assignments column. The button
Assign becomes available.
• Click Assign to open the Select Function dialog box. As the output file already
has been assigned to an output type, only functions that produce that type of
file are available in the list.
• Select the mean_predefined_trace function from the list.
• Click OK.
Once you have selected the appropriate function for this layer, the parameters of
the function are shown in the third column. The name of this column changes to
reflect the selected function.
On your screen, the right-most column should now be called Parameters for
mean_predefined_trace and the parameters that need to be defined are listed. In
this case there is only one parameter to define: v (trace).

FunctionMod
20 Performing Different Calculations on Multiple Layers

• Click v (trace). The button Assign parameter becomes available.


• Click Assign parameter to open the Assign Parameter: “v” dialog box.
• As you want to calculate the mean P-impedance value for the Orange layer,
check Seismic/Property and click … to select the file
FunctionMod_tutorial/inverted_impedance.mod.

• Click OK to return to the Assign Functions and Parameters dialog box.


10. Click on the Red layer to assign the function Trend.fun. The syntax is:
Trend=u_value + (l_value-u_value)*(t-u_hor)/(l_hor-u_hor), where:

u_value = the mean of the upper layer


l_value = the mean of the lower layer
t = time
u_hor = top of the layer in time
l_hor = bottom of the layer in time
For this exercise, Layer Attributes Extraction is used to estimate the mean of P-
impedance in each layer of the solid model. The results are stored in the file
FunctionMod_tutorial/Tattributes.hor.

• Click Assign and select the Trend function.


• Assign the parameters as follows:
 u_value = horizon T_P-Impedance_men_Orange from the
FunctionMod_tutorial/Tattributes.hor file.

 l_value = horizon T_P-Impedance_men_Deep from the


FunctionMod_tutorial/Tattributes.hor file.
 u_hor = Red_Top from the SM/Tinterface.hor file.
 t = Current time.
 l_hor = Deep from the SM/Tinterface.hor file.
11. You can copy a function and its parameters from one layer to another. For the
Deep layer you want to use the same settings as for the Orange layer. Therefore:
• Select the layer with the function you want to copy in the column Function
assignments. In this example: Orange.
• Click the Copy button. A dialog box appears, listing the other layers of the
solid model.
• Select the layers you want to copy the function to. In this example: Deep.
Note that it is absolutely necessary that every layer you want to copy the function
to, is present in the column Function assignments.
• Click OK. The function with its parameters are now copied. If necessary, you
can change the parameter for the Deep layer. In this example you do not have
to make any changes.

FunctionMod
Performing Different Calculations on Multiple Layers 21

To check that the right function and variables are being used, simply click on the
layer. The parameters are then shown in the right-most column.
12. After adding the functions and parameters, the dialog box should look as follows:

Figure 11: Example of an advanced calculation per layer of a solid model

13. Note that only the layers and functions from the Function assignments column
will be used to compute the output later. For example, suppose your Assign
Functions and Parameters dialog box looks like this:

Figure 12: Example of an advanced calculation on only three layers from the solid model

Only two layers are selected and visible in the Function assignments column.
The output will only be calculated for these two layers, even though functions
may exist for the other layers.
• Make sure that all the layers on which you want calculations done, are present
in the Function assignments column.
• Click OK to close the dialog box.
14. Click OK to close all open dialog boxes except the main FunctionMod window.
15. If you expect to use this setup of functions per layer for this solid model in the
future, you should save the transform using File > Save Transform (As).
16. Generate the output file by clicking Generate.
17. Check the results in Section View:

FunctionMod
22 Performing Different Calculations on Multiple Layers

Figure 13: Section View of the trend model, the solid model and the horizons

This example shows how a trend model can be built for separate layers in a solid
model. The trend you built here is a little simpler than you would normally use, but
you now have a basic understanding to build the models you need.

FunctionMod
Creating Your Own Functions (or Not) 23

Chapter 7. CREATING YOUR OWN FUNCTIONS (OR


NOT)

It is possible to create your own functions or edit existing functions in FunctionMod.


Note that this is not recommended, unless you have programming experience.
Most of the calculations that you might want to perform should be available through
one of the calculations tabs. If, however, you do experience the need for a new
function, we recommend you contact your local support person at Jason. Tell him/her
what kind of function you would need, and they will discuss the options and
workarounds with you. If a new function is indeed required, they will help you create
it or perhaps assign someone to create it for you.

FunctionMod
24 Appendix: Restoring the dataset

Chapter 8. APPENDIX: RESTORING THE DATASET

For this tutorial you need the GeoSoftware sample project called Amberjack 9v6 that
was installed along with the installation of the software.
If that project is not available, you need to restore the Amberjack_Tutorial_9v6
GeoSoftware project:
1. Go to Start > All Programs > CGG GeoSoftware > Tools > Project
Management 9.6.
2. Go to the Backup & Restore tab.
3. Click Restore. This opens the Restore GeoSoftware Project dialog box.
4. For Project File select GeoSoftware 9.6
\samples\Amberjack_Tutorial_9v6.gswzip.

5. Change the Target Location to the directory where you want to install your
GeoSoftware project.

6. Keep the default Project Name and click OK.


The project is restored. After a short while, you will get a warning that the database
that was used when the backup of the project was created cannot be found: "The
following database from the archive is invalid".
You need to specify a different database, either on your network or on a local drive.
For example, you can select the sample database that was delivered with the
GeoSoftware installation.
7. Click OK.
8. In Specify Database, click Select Config File and select an existing database.
This can be either an existing database created with a previous 9.x version, a
newly-created database for 9v6 using the Database Management tool, or the
sample database SampleDB.fjdb that was installed with the software.
9. The Host Name is filled automatically.
10. Enter Administrator as the User. Leave the Password field blank.

FunctionMod
Appendix: Restoring the dataset 25

11. Click Log in.


12. Click OK in the Project Restored dialog box.
13. Click Exit in the GeoSoftware Project Management dialog box.
14. Go to Start > All Programs > CGG GeoSoftware > GeoSoftware Launcher
9.6.
15. In Project Select Project, select the project that you have just created, and log in as
Administrator.
Note: If you don't log in as Administrator, you cannot edit the existing curve groups of the wells
in the database.

The Session tab in the information pane shows which project, database and well
project have been selected.
16. Select Applications > Jason Workbench.

FunctionMod

You might also like