WDEF (Define coordinates of data window)
The WDEF command defines the user (data) coordinates to be applied to the limits of the currently defined plotting window (e.g. from the WIND command). After this command, drawing can be done in world coordinates relative to reference point 0.
Command Syntax:
Command Parameters:
Example
The following is a simple example that draws the same diagonal line twice, one using world coordinates and one using map coordinates:
WIND 1,2,2,,,10,10 /define a 10x10 cm data window
WDEF 0,20000,100,25000 /define world mapping to window
LINA 0,0,20000,100,25000 /draws a diagonal across window
LINA 1,2,2 /same line in map units
12,12
The following example reads data from an XYZ file and scales the data window to plot the data:
DOPN mag 2 /open MAG.XYZ to read second A
DXYZ L100 /read Line 100
DMOV Z,Y /move Z into Y buffer
WIND 1,2,15,22,23 /define a data window
WDEF ,,,,,,1 /map window to X,Y buffers
WIND 1,2,14,22,24 /redefine window with margin above and below a profile
LINA 0 /plot buffer as world coord.
RECT 12 /draw a box around window
This control file will draw a scaled profile of the data in the second column of Line 100 in data file MAG.XYZ.
See Also:
Got a question? Visit the Seequent forums or Seequent support
© 2024 Seequent, The Bentley Subsurface Company
Privacy | Terms of Use