McIDAS User's Guide
Version 2010.1

[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]


LWU

LW file utility.


Formats

LWU COPY sfile dfile bword eword
LWU DEL file
LWU INFO file
LWU LIST file bword eword
LWU MAKE file
LWU POKE file value word ASCII=


Parameters

COPY

copies a file

DEL

deletes a file

INFO

lists the file and its size, in bytes

LIST

lists the words in a file

MAKE

creates a file

POKE

pokes a value into a file

sfile

source file name

dfile

destination file name

file

name of the file

bword

beginning word number to copy or list, the range is 0 to 8,000,000 (default=0)

eword

ending word number to copy or list, the range is 0 to 8,000,000 (default=last word in the file for the COPY option; default=value specified in bword+39 for the LIST option)

value

value to poke into the word (default=0)

word

number of the word to change (default=0)


Keyword

ASCII=

YES

pokes the specified value as ASCII characters; see the Remarks (default for all non-numeric values)


Remarks

Use command DMAP or LWU INFO to determine the size of the file.

By default, if the value specified with the POKE option is numeric (one or more digits, possibly prefaced with a + or a -), it is poked into the word as an integer; otherwise, it is poked into the word as ASCII characters. Use the ASCII=YES keyword to override the default when you need to poke a numeric value into the word as ASCII characters.

Caution!
Be very careful when using the POKE option; misuse can permanently damage the file.

Examples

LWU MAKE CLOUDS

This entry creates an LW file named CLOUDS.

LWU COPY CLOUDS NEWONE

This entry copies the LW file CLOUDS into file NEWONE.

LWU DEL CLOUDS

This entry deletes the LW file CLOUDS.

LWU INFO NEWONE

This entry lists the size of the LW file NEWONE.

LWU LIST LWTXT 10 20

This entry lists words 10 to 20 of the LW file LWTXT.

LWU POKE LWTXT 92067 64

This entry changes the value of word 64 in the LW file LWTXT to the integer value 92067.

LWU POKE LWTXT 92067 64 ASCII=YES

This entry changes the value of word 64 in the LW file LWTXT to the ASCII string 92067.


[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]