portrait

Поиск



[software] [catdoc] [tcl] [geography] [old things]
Table of Contents

reclass1 - Change classes of given EPPL7 data file

SYNOPSIS

reclass1 [ ] [ reclass_file] [ -o output_file] file

DESCRIPTION

Applies given set of reclass statements to epp file. Reclass statements have simular syntax to DOS version of EPPL7 and may be read from stdin (both from terminal or pipe) and from file.

By default, creates file named reclass.out.epp in current directory, but this behavoir can be overriden by -o option.

This version can perform only one-way reclass. For multy-file reclass use intable(1) instead.

Output file is created as 16-bit and if after reclass it would contain only classes less than 255, it would be converted into 8-bit.

If offsite value of old file appears in right side of any reclass statement, offsite value of new file would be from left side of this statement.

OPTIONS

--help
- display brief usage message and exit successifully
--version
- display version information and exit successifully
-v
- verbose. Display number of rows processed during reclass.
-f reclass_file
- read reclass statements from given file, instead of stdin
-o output_file
- write result into given file, instead of reclass.out.epp. Suffix .epp would be substituted, if absent.

RECLASS STATEMENT SYNTAX

Set of reclass statements consists of zero or more lines, each of which has following structure:

new_class = list of old classes

New class is number in range 0-65535. List of old classes is space separated list of classes (numbers) and ranges. Range is two numbers, separated by colon. First of them must be less then second, or this range would have no effect.

If one old class occurs in several statements, only last occurence would take effect, so it is possible to write:

1=1:255

2=2

3=12

to reclass all classes between 1 and 255, exept 2 and 12 to 1 and reclass 12 to 3.

SEE ALSO

eheader(1) ,cluster(1) ,rescale(1) ,outtab(1) ,intable(1)

AUTHOR

Victor B. Wagner, SoftWeyr.


Table of Contents