Support Services Corporate Home EarthVision Events
 
FAQs


Visualizing ASCII Scattered Data in the 3D Viewer

July/August 1999

(Note: In all scripts and command lines that follow, a backslash ( \ ) at the end of a line indicates that the current line is continued on the line that follows. When creating the script or typing the command line, these lines should be entered as one continuous line without the backslash.)

Many possibilities are available for displaying scattered (.dat) and property data (.pdat) in the 3D Viewer. When scattered data are initially displayed, the data points are automatically displayed in Z or property colors (for .dat and .pdat files, respectively), by default. By manipulating some of the 3D Viewer's menu settings along with special fields in the file header, the information communicated by the data display can be greatly enhanced. The following topics discuss only fairly simple examples, although more complicated displays can be created using environment variables or special fields:

Data Tube Display

Data with line or well IDs can have tubes displayed surrounding the line. The tube can have varying radii and can be displayed in property colors based on the data at the location. The radius could be made to represent any number of features including lithology or permeability. The radius for the entire well ID can be changed interactively (although, if the radius information is to be saved, the data file must already have a radius data field in the header); for individual data points, the radius can be changed in the data file. The following image shows property data colors with tubes created for particular well IDs. The property value ranges are shown in the color key.
 
 
Property data with color-coded tubes displayed.

Three steps are required for creating a display, such as the one shown above. First, the file's header must be modified to contain a radius field, if the tubes are to be saved and redisplayed later. The radius field can be added by bringing the file up in any EarthVision File Selection window and selecting Header. Second, the property data colors must be on and finally the tubes must be created. The last two steps are discussed next.

Changing Scattered Data Colors Using the
Color Menu in the 3D Viewer

  To turn on property colors, on the Color menu (hot key "9"), select the Scattered Data Colors button (or hot key "p") and then choose Property colors.

Adding Tubes to Scattered Data with Line IDs Using the 3D Viewer Data Edit Menu

 
  To turn on tubes, on the Edit Data Menu (hot key "^2"), select the Select Tubes button (under Data Line Tubes) and then choose Create/Edit Tubes.

If the radius field already exists with data in it, then the radius of the tubes is equal of the values set. If no data are in the radius field, then the user is asked to specify the radius of the tubes.
 

Changing the Default Symbol

Ten symbols are available in the 3D Viewer. To view a symbol other than the default cube (symbol #1) a symbol field is required to be defined in the file's header. One exception is that if the file has dip and dipazm fields, the data points are displayed automatically as dipping disks (shown as symbol #10; discussed below). Some output files from programs, e.g., the Well Database Operations program, automatically define a symbol field, but if the file has no symbol field, a field can be created in the Formula Processor with the following simple formula:

test.pdat<symbol>=3
 Symbol Types (1-6,10)

Symbols 7 through 9 require special fields; the symbol types include earthquake foci (or fault plane solution) symbols, elliptic, tilted-disks symbols, and ellipsoid symbols. These symbols and the required fields are discussed in the EarthVision 5.0 Release Notes.

Changing the Default Symbol Size

If desired, the symbol size can be changed, for example, to quickly identify general areas of high concentrations of a particular property. Once again, the Formula Processor can be useful in changing the size of the symbol, based on the property value for that point value. The following formula uses a series of range in and range out functions that creates such a file:

#!/bin/sh -e

# Shareware Disclaimer:
# This software is SHAREWARE and is provided as a benefit
# for our clients by Dynamic Graphics, Inc.; however, it is
# unsupported. Dynamic Graphics accepts no responsibility for
# the content, maintenance, or support of SHAREWARE.

ev_fpfp -u -F ev-3dx/gsbx  << 'EOF'
new.pdat<symbol>=6;
new.pdat<symsize>=1;
new.pdat<symsize>=le(new.pdat<pce>,99.99,1,\
    new.pdat<symsize>);
new.pdat<symsize>=rngin(new.pdat<pce>,100,\
    999.99,2,new.pdat<symsize>);
new.pdat<symsize>=rngin(new.pdat<pce>,1000,\
    9999.99,3,new.pdat<symsize>);
new.pdat<symsize>=rngin(new.pdat<pce>,10000,\
    99999.99,4,new.pdat<symsize>);
new.pdat<symsize>=ge(new.pdat<pce>,100000,5,\
    new.pdat<symsize>)
EOF>

Symbol Size Based On Property Value Ranges.

Scattered Data with Dip and Dip-Azimuth Fields

When dip and dipazm fields exist, a dipping disk symbol (#10) is displayed by default (if the dip and dipazm fields do not exist and a symbol #10 is specified, then a horizontal disk is displayed). With this dipping disk, the general tilt of the symbols is easily seen so that, for example, the dip at a data point can be compared with the dip of a surface. In the figures below, on the left is the default symbol #10 display; when the Elliptical Strike/Dip Symbols push button (on the Post Data menu) is used, the result is that the thick disks are changed to thin, dipping, elliptical "wafers" with stike/dip symbols posted showing the strike and dip direction, and where the length of the major axis of the elliptical wafer is proportional to the magnitude of the dip.
 Default Symbol #10 (left); Elliptical Strike/Dip Symbols (right).

 
  To turn on strike/dip symbols, go to the Post menu (hot key "6"), and click on the Elliptical Strike/Dip Symbols button under Symbol Display. 

Well data can have dip and dip azimuth information automatically calculated using evwellpath.

The following is a script file uses ev_wellpath to calculate dip and dip azimuth for each point along the well. Since ev_wellpath only calculates one well at a time, a loop is written to cycle through each well ID.

#!/bin/sh -e
# Shareware Disclaimer:
# This software is SHAREWARE and is provided as a benefit
# for our clients by Dynamic Graphics, Inc.; however, it is
# unsupported. Dynamic Graphics accepts no responsibility for
# the content, maintenance, or support of SHAREWARE.

FILEIN='exptops.dat'
WELLZ='tvdss'

DISTANCE='100000.0'

INCLINATION='0.0'

AZIMUTH='0.0'

WELLLIST=WELLLIST_TMP$$

FINALOUT='OUTFILE_wpath.dat'

touch $FINALOUT
TST='1'

cat $FILEIN | nawk '/^#/ {next} NF==0 {next} \
    {print $1}' | sort -u > $WELLLIST

for file in `cat $WELLLIST`
do

   WELLID=$file

   WELLIN=TMP_$$_${WELLID}.dat

   ev_field -i $FILEIN -o $WELLIN -r wellid -s $WELLID

   WELLOUT=TMPOUT_$$_${WELLID}.dat

   ev_wellpath -w $WELLIN -z "$WELLZ" -o $WELLOUT -n \

        "$WELLID" -d $DISTANCE -s

   if [ $TST = '1' ]

      then

        cp $WELLOUT $FINALOUT

        TST='2'

      else

        cat $WELLOUT | nawk '/^#/ {next} {print}' >> \

            $FINALOUT

   fi

   echo $WELLOUT >> TEMP2$$

   rm -f $WELLIN

   echo "Done with well: $WELLID"

done

cat TEMP2$$ | while read FILE
do

        rm -f $FILE

done

rm -f $WELLLIST TEMP2$$
 

Online Information

One way to find out information about data displays in the 3D Viewer is to use the online command
evview -d
which gives information about the valid data field names recognized by the 3D Viewer.

 

 
[Home] [Corporate] [Events & News]
[EarthVision] [Support] [Services] [Contact Us]


© 1999-2007 Dynamic Graphics, Inc. All Rights Reserved. Legal Notices.
See Legal Notices for appropriate copyright trademark legend.
Feedback: webmaster@dgi.com

Last updated: March 22, 2007