Description: General display program command mode procedure for overlaying graphics from a loaded band image data or a binary flat file or an SD contained in an HDF file.
The graphics data stored in the HDF SD or Flatfile must be 2D arrays containing SeaDAS graphics values 1 to 7 (zero denoting null). The color associated with each graphics value is not contained within this file, but is controlled by the graphics portion of the user's color table. Currently the graphics color values can only be modified interactively.
[Command
Mode]
[Interactive
Mode - Band Data][Interactive
Mode
- Flat File]
[Interactive
Mode - HDF File][Interactive Mode
- Window]
Usage: loading from HDF or Flat file
Arguments/Keywords for Band Data Only:
| iband | The band number for the loaded image data and to be used to generate the bitmap graphics. |
| fbuf | The seadisp display window number to load the graphics into. (Default is the current window). |
| ftype | A required parameter and must be FTYPE='BAND' for this command mode. |
| raw | A keyword if set, or if the keyword geo is not set, the data values given in range are handled as raw data values. |
| geo | A keyword if set, the data values given in range are handled as geophysical data values. |
| range | Array of data ranges in raw or geophysical units to be used with the specified band image data for creating the bitmap graphics. The order in the array decides the priority of the graphics to be created, if there are pixels matching multiple conditions. |
| bit | Array of bit numbers to be checked with the specified band image data for creating the bitmap graphics. The order in the array decides the priority of the graphics to be created, if there are pixels matching multiple conditions. Bit numbers range from 1 (ATMFAIL) to 32 (OCEAN). |
| color | Array of graphics colors (1 to 7) to be assigned for each data range and/or bit number for creating the bitmap graphics. The color will be cycled if there are more range and/or bit given. |
| comp | Array of options to use the complement for the corresponding data range or bit mask. If it is set (a value 1), and the pixels outside the corresponding data range selected or the bit mask selected are not on(0), will be assigned as graphics pixels. |
| inverse | A keyword if set, only pixels NOT defined in the data ranges or bit masks array, will be assigned as graphics pixels. The first color in the color array will be used as the graphics color to be generated. |
| merge |
|
| replac | Same as merge=0 for any non-zero value |
| over | Same as merge=1 for any non-zero value |
| under | Same as merge=2 for any non-zero value |
Arguments/Keywords for both Flat Files and HDF Files:
| fname | The filename of the flat file or HDF file to load the graphics from. (required) |
| fbuf | The seadisp window number to load the graphics into. (default is the current window). |
| merge |
|
| replace | Same as merge=0 for any non-zero value |
| over | Same as merge=1 for any non-zero value |
| under | Same as merge=2 for any non-zero value |
| dtype | Data
type of graphics data to load.
|
Arguments/Keywords for Flat Files only:
| dims | Dimensions of array stored in the flatfile [npoints, nlines]. If this parameter is missing, the dimensions will attempt to be automatically determined from the filename or set to the frame buffer size. |
| byte_reverse | Reverse byte ordering for Big Endian/Little Endian platform treatment. Default: no. |
| skipbytes | Number of initial bytes to skip before reading the graphics data. (Default is 0). |
Arguments/Keywords for HDF Files only:
| sd | Name(s) or number(s) of 2-D SD's of type dtype to load as graphics. The default is to load the first 2-D SD of type dtype. |
| all | Load all 2-D SDs of type dtype. |
| xsample | Subsample rate in x-dimension (Default is 1). |
| ysample | Subsample rate in y-dimension (Default is 1). |
Examples: