PICScript smooth()

smooth (input,smoother,mode);

You can apply an average smoother to grids and horizons directly from the WinPICS map window. The map function allows you to apply one average smoother to 2D and a another for 3D. Use PICScript to apply a median smoother, when you want to use smoothing as part of a more complex script, or if you want to smooth some data in your project differently from the rest of your data.

This is a stand alone surface function. Therefore it can not be used inside a function block (func { }). The results of a function block or other surface function can be used as input to the smooth function. Similarly, the results of the smooth function can be stored in a temporary surface variable and the variable can be used in another function. See Surfacetemp.

Script Example

surfacein Mississipian_aV1 from time as original;

output avgvel;

//GridScriptMode

avgvel = dip (original,5,median);

English translation

Output to the average velocity field of the database, the original surface after smoothing. Use a median smoother with smoothing length of 5.

Related Topics IconRelated Topics