DSCL (Shift and/or scale data in the buffer)

The DSCL command allows you to remove a base and apply a multiplying factor to either the X,Y or Z data buffers.

Command Syntax:

DSCL XYZ,base,mult

Command Parametes:

xyz

Either 'x', 'y', or 'z', to indicate which data to modify.

base

Base level removed from data (before applying mult).

mult

Multiplying factor applied to data after base removal. The formula is as follows:

new = (old - base) * mult

Example
PAGE 1,1,25,26 /define a plotting page

WIND 1,2,15,22,23 /define a data window

WDEF 0,1500,2000 /define window coordinates

DOPN mag,2 /open MAG.XYZ to read second Z

DXYZ L100 /read Line 100 into buffers

DSCL z,48000 /remove 48000 from z data

DMOV Z,Y /move Z into Y buffer

LINA 0 /plot buffer as world coordinate

This control file will draw a scaled profile of the data in the second column of Line 100 in data file MAG.XYZ. A base of 48000 is removed from the Z data before plotting.

Note: This command is part of the MAPPLOT GX.