setheadermax


Purpose:

This program will reset the global maximum in the header of a 16 bit file to increase the number of significant figures retained if the file is loaded by an 8 bit version of the AIR package.

The program will also identify the current header file type (type 1, type 2, or type 3) and the current header global maximum.


Usage:

setheadermaxfilename [max]
where the following definitions apply:

filename
name of the 16 bit header file to be reviewed or altered (.hdr or .img optional)
max
the maximum 16 bit pixel value represented in the file
NOTE:
If no max is specified, the program will identify the current file type and global maximum

For type 1 16 bit files, legal values for max range from 1 to 65535

For type 2 16 bit files, legal values for max range from 1 to 32767

For type 3 16 bit files, legal values for max range from -32767 to 32767

Examples:

setheadermax mri1 setheadermax mri1 18000

Comments:


Error messages: (alphabetical)

See also: Generic error messages
____ only modifies files with 16 bits/pixel...
this file's type cannot be evaluated
Type 1 files cannot have negative maxima ...
Type 2 files cannot have negative maxima ...
Type 3 files cannot have maxima greater than 32767...
value ___ is out of range for all possible header types
WARNING: You have converted a type 1 file to a type 2 file...
WARNING: You have converted a type 2 file to a type 1 file...

See also:


Modified: December 22, 1995

© 1995 Roger P. Woods, M.D.(rwoods@ucla.edu)