You are here: Working with the Application Toolbar > Interpret Data > PICScript > Update an Alias

Update Aliases in PICScript

Use update alias to change the assignment of horizons or grids in a PICScript math script.

PICScript uses aliases to represent surfaces (horizons and grids) and seismic attributes in your scripts. This makes it possible to reuse the scripts by simply reassigning the aliases at run time. The update alias procedure is the same whether you are working with a saved script or modifying a script you have just written to rerun it using different inputs.

Updating an Existing Script

  1. Open PICScript. (Located on the Application toolbar under, |PICScript.)
  2. Load an existing script. When an script file is opened, PICScript scans the file for aliased grids or horizons and issues a warning if no match is found.
  3. Click <Scan Script Update List>, on the Inputs/Outputstab, to check for unassigned aliases in your script. A declaration with an unassigned alias is highlighted and a message is displayed.
  4. Click <Update Alias>. Entire declaration is highlighted.
  5. Double-click a grid or horizon in the listing to assign it to the declaration.
  6. To find and update other unassigned aliases, click <Scan Script Update List> again.
  7. Specify parameters and run the script.  See Running a Grid Script or Running a Horizon Script

Modify Aliases for Another Script Run

You may run a script, change output name and alias assignments, then run the script again without closing PICScript.

  1. Enter a new Output Grid Name or Output Horizon Name.
  2. Click <Update Alias>. The first surface declaration in the script will be highlighted.
  3. Double-click a grid or horizon in the listing to assign it to the declaration.
  4. If you do not wish to change this declaration, click <Next Alias> to highlight the next declaration and assign a new alias if needed.
  5. Use the <Next Alias> button to walk through the declarations highlighting each for replacement.
  6. Specify parameters and run the script.