If-Then-Else...

Main: Compute > From FmTops > If-Then-Else

The If-Then-Else compute function performs a conditional data substitution on a selected formation top according to the entered criteria.

Possible reasons to use this tool might be to correct erroneously loaded tops, or to build a continuous unconformity surface across a basin.

Examples:
  • If the selected top (Top Name) meets set criteria, then output to the selected output top:

  • this or another top name and depth value

  • a constant value

  • a null value

  • If the selected top (Top Name) does not meet the set criteria, then output to the selected output top:

  • this or another top name and depth value

  • a constant value

  • a null value

  • Ignore (Nothing will be output)

To run If-Then-Else calculations:
  1. Set the IF statement.

    1. Click the down arrow to select a Top.

    2. Click the down arrow beside IS field to select the condition:
      (<, <=,>, >=,=, <>).

      • Note: This field is ignored when Missing (Null) is selected.

    3. Select an option to compare: Top Name, Constant MD (requires a value).

  2. Set the Then condition. This is the action taken if the IF conditions you set are met (True).

  3. Set the Else condition. This is the action taken if the IF conditions you set are not met (False).

  4. Set the Output Top. A top can be added by entering a new Top name in the field. When the computation is run, Petra will prompt to add the new Top information.

  1. Set the Compute For option: All project wells, All Wells Selected in Main, Current Well Only.

To save (Export) or load (Import) compute settings use the Export or Import buttons. The file extension used for IF-Then-Else files is *.ite.