This document was uploaded by user and they confirmed that they have the permission to share
it. If you are author or own the copyright of this book, please report to us by using this DMCA
report form. Report DMCA
Overview
Download & View Imagine Interface as PDF for free.
Copyright 1982 - 1999 by ERDAS, Inc. All rights reserved. Printed in the United States of America. ERDAS Proprietary - Delivered under license agreement. Copying and disclosure prohibited without express written permission from ERDAS, Inc. ERDAS, Inc. 2801 Buford Highway, N.E. Atlanta, Georgia 30329-2137 USA Phone: 404/248-9000 Fax: 404/248-9400 User Support: 404/248-9777
Warning All information in this document, as well as the software to which it pertains, is proprietary material of ERDAS, Inc., and is subject to an ERDAS license and non-disclosure agreement. Neither the software nor the documentation may be reproduced in any manner without the prior written permission of ERDAS, Inc. Specifications are subject to change without notice.
Trademarks ERDAS is a trade name of ERDAS, Inc. ERDAS and ERDAS IMAGINE are registered trademarks of ERDAS, Inc. Model Maker, CellArray, ERDAS Field Guide, and ERDAS Tour Guides are trademarks of ERDAS, Inc. Other brands and product names are trademarks of their respective owners.
IMAGINE User Interface This document explains how to use all of the elements of the ERDAS IMAGINE user interface. It is an introduction for the IMAGINE user who is new to graphical user interfaces, and it is also an introduction for anyone who will design user interfaces for IMAGINE applications with the ERDAS Macro Language (EML).
Dialog Boxes and Frames A dialog, is a window that is opened on the screen, containing menus, buttons, check boxes, and other elements called frameparts. Dialogs can be moved or resized as explained in this document. The EML keyword used to create a dialog is FRAME, so you may also see dialogs referred to as “frames.” Moving a Dialog All dialogs can be moved on screen to a more desirable position. To move a dialog, simply position the mouse cursor in the dialog border and left-hold and drag the dialog to the new position. On UNIX machines, a dialog can be placed in front of another dialog or Viewer by clicking in the dialog border or by placing the cursor in the dialog and pressing the Front button on the keyboard. The preferences of some windowing systems allow you specify that active windows automatically pop to the front. On Windows machines, a dialog can be brought to the front by clicking on a visible portion of the dialog or by clicking on its button in the task bar. Resizing a Dialog Some dialogs can be resized on screen to display more information. For example, you may want to enlarge a dialog which contains a CellArray to view the whole CellArray. If a dialog can be resized on screen, the cursor will change as it is positioned over an edge or corner of the dialog. Simply left-hold and drag the arrow to make the dialog larger or smaller. Windows Systems
1
IMAGINE User Interface Unix Sustems
Some UNIX windowing systems may have “pull handles” on each corner or the cursor may change to a resizing arrow as the cursor is positioned over an edge or a corner. Simply left-hold and drag the arrow or handle to make the dialog larger or smaller.
Drag this handle to resize the dialog. The cursor will change to a small circle with a dot in the center when it is correctly positioned over the handle.
2
IMAGINE User Interface
Frameparts The buttons, lists, and other contents of a dialog are called frameparts.
3
IMAGINE User Interface
Dialog Part Names
scroll bars dialog title menu bar
open file selector cellarray
tool bar
filename input scrolling list scroll button
checkbox edit text nudger
radiobutton popup list
color button
meter handle number field popup list handle
4
IMAGINE User Interface All IMAGINE dialogs use one or more of these frameparts, most of which are implemented with a single EML keyword. Basic Frameparts
EML Keyword
button
BUTTON
check
CHECKBOX
radio button
RADIOBUTTON
menu
MENU
popup list
POPUPLIST
scrolling list
SCROLLIST
number field
TEXTNUMBER
text field
EDITTEXT
meter number
METERNUMBER
file name
FILENAME
Advanced Frameparts CellArray histogram colorwheel color button
Menu A menu is a list of options. A menu bar is a row of menus which appears along the top of a dialog or window. For example, see the menu bar at the top of this page. Each word on the menu bar is the title of a menu. Click on a menu title and the entire menu drops down. Menus can have submenus, denoted by an arrow. To see the submenu, click on the arrowed item. You can then select any item in the submenu.
Popup List A popuplist is a list of options which “pops up” when activated. It can be anywhere in a dialog. The popup list appears as a button and may have a triangular or rectangular “handle” on the right side. When you click the button, a list pops up with other options. Then you can click on the selection you want in the popup list.
5
IMAGINE User Interface
Scrolling List A scrolllist lets you select one option from a list. Usually, scrolling lists are used for selecting from a potentially long dynamic list. The entire list is not always displayed, so you must look at the placement of the scrollbar to know if there are more items in a list. To scroll a scrolling list to view the options, you can:
♦ use the scrollbar at the right side of the list, if available, or ♦ use the up and down arrow keys on the keyboard. In general, to select an item in the scrolling list, click on it. If the scrolling list is part of a filename framepart, click to select a file and double-click to select and display the contents of a subdirectory.
Radio Button Radiobutton frameparts let you select one option from a small set, just as you might select one station on a car radio. A set of radio buttons represents a list of mutually exclusive options. When you check one radio button, all other buttons in the set will be turned off. Radio buttons are usually circular buttons. Occasionally, they are icons. The radio button of the selected option is shaded.
Button A button is a simple framepart on which you click to make something happen. Buttons can have text labels or they can be icons, such as the icons on the IMAGINE icon panel. An icon is simply a button with a picture or drawing on it. A button may be used to start a process, to open or close a dialog, or some combination of these events. Common buttons are:
♦ Cancel - to close a dialog without carrying out an operation ♦ Apply- to apply parameters and keep this dialog open ♦ OK- to close a dialog and execute an operation as specified Check Box A checkbox framepart lets you specify “Yes/No” conditions.
☞ After you enter text in a text field, IMAGINE will read the text when you press RETURN. On UNIX machines, text is also read when you move the pointer out of the text field.
Number Field A textnumber framepart lets you enter a numeric expression. IMAGINE evaluates the expression after you move the pointer out of the number field. To enter a number, you can:
♦ double-click the existing number to select it, and then type a new expression over the old, ♦ click in the field and use the arrow keys to move the cursor, so you can edit an existing number, or
♦ click the nudgers that appear on the right side of the field to increment the number up or down. You can also hold the nudgers to continuously increase or decrease the number. To change the increments by which you can “nudge” a number, right-hold the nudger. A popup list gives you several increments from which to select.
7
IMAGINE User Interface
Meter Number A meternumber framepart is the same as a textnumber, but with the added feature of a meter or gage, which appears to the right of the number field, and works like a scrollbar to express the current value relative to a range. Meter numbers can be read-only, to show you a value that you cannot edit, or they can be editable. To change an editable meter number, you can:
♦ use any method that you would for a number field, ♦ hold on the meter handle and drag it across the range, or ♦ click to the right or left of the meter handle to increment or decrement the number by onetenth of the range.
8
IMAGINE User Interface
File Name Windows Each filename framepart consists of three basic elements:
♦ a scrolling list where you can select one file in the specified directory, and ♦ a text field where you can enter a drive, a file name, or both (including wildcards) from the keyboard,
♦ the file open icon to open the File Selector dialog.
You can use these elements in a variety of ways to specify the desired file. UNIX The filename framepart allows you to enter a file specification, consisting of the path and the name of a file that you want to open. You can also open a directory with a filename framepart by entering the directory name followed by a slash (/). The files that are listed in a filename framepart depend upon the default file extension of the type of file that you are reading or writing. Each filename framepart consists of three basic elements:
♦ a text field where you can enter a path, a file name, or both (including wildcards) from the keyboard,
♦ a scrolling list where you can select one file in the specified directory, and ♦ a popup list of the subdirectories that make up the current path, going up the tree structure to the root. You can use these elements in a variety of ways to specify the desired file. When a filename framepart first comes up, you will see a list of all of the appropriate files in the directory that you last specified, or in the directory specified under Preferences. You can specify a directory by selecting one from the popup list or by double-clicking on a directory listed in the scrolling list. You may display the parent directory by double-clicking on the ../ entry.
Numeric Expressions in Number Fields You can use the following operators and functions in number fields to express a numeric value. (These also apply to the number field part of a meter number.) Notation such as <degrees> in angle brackets denotes an argument that requires a certain type of input value. denotes any number. <exp> denotes any numerical expression which may include other operators and functions. Operator/Function
Description
+
addition
-
subtraction
*
multiplication
/
division
** or ^
exponentiation (to the power of)
sin(<degrees>) cos(<degrees>) tan(<degrees>)
trigonometric functions
asin() acos() atan()
inverse trigonometric functions — results are in degrees
ln()
natural logarithm
log()
base 10 logarithm
dd(<degrees>, <minutes>, <seconds>)
convert degrees, minutes, seconds to decimal degrees
sqrt()
square root
<exp> TO or <exp> TO
convert the value of the expression <exp> from to the same amount expressed in Example: 2 feet to inches yields 24.
Valid strings for and include the following. For a complete list, see the file
11
Numeric Expressions in Number Fields <$IMAGINE_HOME>/etc/units.dat. radians degrees dd (decimal degrees) meters centimeters kilometers feet inches yards miles points acres hectares sqmiles (square miles)
12
File Specifications
File Specifications A file specification is the complete name of a file. It consists of:
♦ a path, which is the directory and subdirectory where the file is stored, and ♦ a file name, which is usually something descriptive that will help to identify the contents of the file.
File Name Extensions A file name extension is a suffix, usually preceded by a period, that often identifies the type of data in a file. ERDAS IMAGINE uses file name extensions to identify the type of data in each file. You can use the part of the file name before the extension to give the file a name that is helpful to you. There is a default file extension for each type of IMAGINE file. This is the file name extension that IMAGINE will look for when reading an IMAGINE file, and append to new file names when a new file is created. IMAGINE File Name Extensions The following file extensions are used in or created by ERDAS IMAGINE. You may never encounter some of the file types listed, since they are used internally for system setup, configuration, etc. . Extension Format Description .aoi
HFA
Area of Interest file - stores a user-defined area of interest.
.arcgen
ASCII
ARC Generate file
.aux
HFA
Auxilliary file, mainly used in conjunction with nonIMAGINE files accessed by the Raster DLL, to store information not normally supported by the particular raster format. E.g. the TIFF file format does not store image statistics, so statistics generated by IMAGINE are stored in an .aux file with the same prefix name as the .tif file
.bdf
ASCII
X Bitmap Font Distribution Format File
.bil
Binary
ESRI Arc/Info BIL raster file.
.cbl
ASCII
Color Balance file
.cff
HFA
Coefficient file - stores transformation matrices created by rectifying a file.
13
File Specifications
Extension
Format
Description
.cfg
ASCII
Configuration file
.chp
HFA
Thumbnail image used by IMAGINE in the Preview parts of the File Chooser. Basically a 64 x 64 pixel reduced resolution dataset of the whole image, with band combinations determined by the Band Combination Defaults Preference settings
.config
ASCII
Installation file
.cov
ASCII
Image Catalog coverages
.cursor
ASCII
X icon that is used in conjunction with .mask files for setting the shape of the cursor.
.customize
ASCII
Installation file
.dat
ASCII
Stores map projection data.
.dfad
Binary
Digital Feature Analysis Data file - stores vector DFAD data.
.dlg
ASCII
Digital Line Graph file - stores vector DLG data.
.dxf
ASCII
Digital Exchange file - stores vector DXF data.
.e00 - .e99
Binary
ARC Interchange file
.eml
ASCII
ERDAS Macro Language file - stores scripts which control the operation of the IMAGINE graphical user interface. You can create new .eml files with the ERDAS Macro Language and incorporate them into the IMAGINE interface.
.ers
Binary
ERMapper format image file.
.fft
HFA
Fast Fourier Transform file - stores raster layers in a compressed format created by performing a Fast Fourier Transformation on an .img file.
.filelist
ASCII
Installation file
.fls
ASCII
File List file - stores the list of files that is used for mosaicking images.
.fit
Binary
Silicon Graphics image file format
.fsp.img
HFA
Feature Space Image file - stores the same information as an .img file plus the information required to create the feature space image (e.g., transformation).
14
File Specifications
Extension
Format
Description
.gcc
HFA
Ground Control Coordinates file - stores ground control points.
.gen
ASCII
Generic Options file - stores importing options used in the Generic Binary importer. Also used by the On-Line Help Generator for generated lists of hypertext markers.
.gif
Binary
GIF format static image files, usually downloaded from Web sites. The optional LZW Module is required to read these files as GIF is based on the LZW compression technique patented by Unisys.
.gis
ERDAS 7.x
Thematic file - raster data
.gmd
ASCII
Graphical Model file - stores scripts that draw the graphical model (i.e., flow chart) created with the Spatial Modeler Model Maker.
.grid
none
Use this pseudo extension in a file specification field to list GRID coverage directories as selectable items.
.icon
ASCII
Icon file - stores the icons used in IMAGINE.
.ict
HFA
Image Catalog file
.ifft.img
HFA
Inverse Fast Fourier Transform file - stores raster layers created by performing an inverse Fast Fourier Transformation on an .img file.
.iges
ASCII
Initial Graphics Exchange Standard file - stores vector IGES data.
.img
HFA
Image file - stores single or multiple raster layers, contrast and color tables, descriptor tables, pyramid layers, and file information.
.jpg
Binary
JPEG File Interchange Format (JFIF) image files.
.klb
ASCII
Kernel Library file - stores convolution kernels.
.lan
ERDAS 7.x
Continuous file - raster data
.lst
ASCII
Security and installation
.mag.img
HFA
Magnitude Image file - this is an .img file that stores the magnitude of a Fourier Transform image file.
15
File Specifications
Extension
Format
Description
.map
ASCII
Map file - stores map frames created with Map Composer.
.map.ovr
HFA
Map/Overlay file - stores annotation layers created in Map Composer outside of the map frame (e.g., legends, grids, lines, scales).
.mask
ASCII
Used in conjunction with the .cursor files for changing the shape of the cursor.
.mdl
ASCII
Model file - stores Spatial Modeler scripts. It does not store any graphical model (i.e., flow chart) information. This file is necessary for running a model. If only a .gmd file exists, then a temporary .mdl file is created when a model is run.
.mov
ASCII
Movie file - defines the sequence of images used in a movie.
.msh
HFA
Map Series file - stores map series definitions for the Map Composer Map Series Tool.
.mtx
ASCII
Matrix file - stores a matrix used in Spatial Modeler.
.otl
Binary
Outline font file used for annotation.
.ovr
HFA
Overlay file - stores an annotation layer which was created in a map frame, in a blank Viewer, or on an image in a Viewer.
.pdf
ASCII
Preference Definition file - stores information that is used by the Preference Editor.
.plt
ASCII
Plot file - stores the names of the panel files produced by MapMaker. MapMaker processes the .map file to produce one or more map panels. Each panel consists of two files, one is the name file with the extension .plt.panel_xx.name which names the various fonts used in the panel along with name of the actual file that contains the panel output. The other is the panel file itself with the .plt.panel_xx extension. The .plt file contains the complete pathnames (one per line) of the panel name files.
.plt.panel_xx.n ame
ASCII
Panel Name file - stores the name of the panel data file and any fonts used by the panel (the font names are present only for PostScript output)
16
File Specifications
Extension
Format
Description
.plt.panel_xx
ASCII/ HFA
Panel Data file - stores actual processed data output by MapMaker. If the destination device was a PostScript device then this is an ASCII file which contains PostScript commands. If the output device was a nonPostScript raster device then this file is an HFA file which contains one or three layers of raster imagery. It can be viewed with the Viewer.
.pmdl
ASCII
Permanent Model files - stores the permanent version of the .mdl files that are provided by ERDAS.
.prereq
ASCII
Installation file
.preview.img
HFA
Preview Image file - an .img file that stores the result of an import preview.
PostScript file - created when map compositions are printed to a file and in other applications when you print to file. The On-Line Help manuals are also supplied in PostScript form, so that they can be printed more easily.
.raw
ASCII
Header file used to describe the formatting of generic binary data files to allow them to be used by the Raw format Raster DLL. Thus, most raster data in BIL, BIP or BSQ file format can be accessed directly merely by defining this simple header.
.rrd
HFA
Pyramid layers stored externally to the associated IMAGINE .img image file. IMAGINE gives you the option to "pyramid" large images for faster processing in the Viewer. This option creates reduced subsampled raster layers. See Pyramid Layers.
.saf
ASCII
Sensor Attribute file - provides information about the bands of various sensors. These are used by the Profile tools to provide the proper wavelength number on the spectral plots.
.sca
ASCII
Scalar file - stores a scalar used in Spatial Modeler.
.shuffle
private
Header file for toolkit before unpacking
.sif
ASCII
Spectral Plot file - stores reflectance spectra developed in ERDAS IMAGINE.
17
File Specifications
Extension
Format
Description
.sig
HFA
Signature file - stores a signature set which was created by the Classification Signature Editor or imported from ERDAS Version 7.5.
.smd
HFA
Standar Map Definition file - stores standard maps, e.g., USGS maps, for use with the Map Series Tool.
.sml
HFA
Symbol Library file - stores annotation symbols for the symbol library.
.stk
ASCII
ESRI GRID Stack file
.stl
HFA
Style Library file
.tab
ASCII
Spheroid Information file
.tag
ASCII
Files for use by EML gettaggeddata function.
.tbl
ASCII
Table file - stores a table used in Spatial Modeler.
.tdf
ASCII
Template Digitizing file - defines the functionality of the digitizing tablet templates.
.tif
Binary
Tagged Image File Format (TIFF) file, including GeoTIFF raster file
.tfw
ASCII
TIFF World file header, providing simple georeferencing information if no GeoTIFF tags are present for an associated TIFF raster file.
.txt
ASCII
Text file - stores a variety of information including arrows, colors, external projection types, font list, line styles, symbol list, and more.
.vpl
ASCII
VUE Player List - list of Viewer View files to be displayed in the VUE player.
.vue
ASCII
Viewer View file - defines the configuration of a Viewer. These files are used to store and recall the exact size, position, and content of a Viewer of map composition.
.wk
ASCII
Digitizer Attributes file
.xpm
ASCII
X Pixmap files used for IMAGINE icons.
➲ For more information on IMAGINE file formats see the “File Formats and Extensions” Appendix in the Erdas Field Guide.
18
File Specifications On-Line Help - File Name Extensions
Extension
Format
Description
.hlp
HyperHelp (Binary)
On-Line Help file - stores the IMAGINE On-Line Help documentation.
.cnt
ASCII
On-Line Help Contents file - Displays the table of contents for an On-Line Manual when the Contents button is clicked.
.ndx
ASCII
On-Line Help context file - stores the component and frame name of each dialog so that the correct Help file is displayed when you click the Help button in a dialog.
.fts
Binary
On-Line Help word index file - generated by HyperHelp when the Find button is clicked if the file does not exist or is not current.
.pdf
Binary
On-Line Help Portable Document Format (not to be confused with IMAGINE’s preference definition files) allows for printing of on-line documentation. Requires the Adobe® Acrobat® Reader.
C Programmers’ Toolkit Software - File Name Extensions
Extension
Format
Description
.0
Binary
Shared library extension
.1
Binary
Shared library extension
.10
Binary
Shared library extension
.3
Binary
Shared library extension
.3e
ASCII
ERDAS man pages
.a
Binary
Static library extension
.awk
ASCII
UNIX awk scripts
.c
ASCII
C source code
.dll
Binary
Dynamically Loadable (Linked) Library
.example
ASCII
Example Makefile
19
File Specifications
Extension
Format
Description
.fx
ASCII
Example Makefile for the File Exchange Toolkit
.h
ASCII
C header files
.help
Binary
FrameMaker format file for help on keyboard macros.
.hpj
ASCII
HyperHelp Project file template
.macros
ASCII
On-Line Help Generator keyboard macros
.mas
Binary
Master template file - usually saved as MIF type for application.
.mif
ASCII
Frame Technology’s Maker Interchange Format
.o
Binary
Object file that may be used to link toolkit programs.
.rc
ASCII
UNIX shell script.
.tem
Binary
On-Line Help Generator templates
Other Software - File Name Extensions
Extension
Format
Description
.8900e
ASCII
Serveware files
.8900r
ASCII
Serveware files
.ASC
ASCII
USGS spectra
.adf
Binary
ARC/INFO files
.afm
ASCII
HyperHelp files
.aml
ASCII
ARC/INFO files
.alias
ASCII
ICS Motif files
.big5
ASCII
ICS Motif files
.bit7
ASCII
ICS Motif files
.bit8
ASCII
ICS Motif files
.ct
ASCII
ICS Motif files
.dat
Binary
ARC/INFO files
20
File Specifications
Extension
Format
Description
.dir
Binary
ARC/INFO files
.euc
ASCII
ICS Motif files
.fonts
Binary
HyperHelp files
.icl
ASCII
Iris support
.iris
Binary
Iris support
.jis7
ASCII
ICS Motif files
.jis8
ASCII
ICS Motif files
.MAP
ASCII
HyperHelp files
.mscode
ASCII
ICS Motif files
.nit
Binary
ARC/INFO files
.PCL
ASCII
HyperHelp files
.pjis
ASCII
ICS Motif files
.PPD
ASCII
HyperHelp files
.prolog
ASCII
HyperHelp files
.PS
ASCII
HyperHelp files
.TFM
Binary
HyperHelp files
.txt
ASCII
HyperHelp files
.ugb
ASCII
ICS Motif files
.ujis
ASCII
ICS Motif files
.wav
ASCII
JPL spectra
Reading Files In a filename framepart, IMAGINE always lists only those files with the default extension that is relevant to the current operation. For example, in the Open Annotation Layer dialog, the filename lists only files with the extension .ovr by default, since these are annotation (overlay) files. You can see a list of other files by entering a wildcard file specification into the filename’s text field. In some cases, another framepart in the dialog presents you with options for the type of file to list in the filename.
21
File Specifications Writing New Files When a new file is created, IMAGINE makes sure that the default extension is at the end of the file name (unless you end the file name with a space).
♦ If you enter a file name without an extension, the default extension will be added to your file name.
♦ If you enter a file name with a different extension (any text after a period), then the default extension will be appended to the file name in addition to the full file name you enter.
♦ If you enter a file name with the default extension, the file name will not be changed. ♦ If you enter a file name that ends with a space, the trailing space will not be part of the file name.
Wildcard IMAGINE uses the asterisk (*) and the question mark (?) as wildcard characters. The wildcard can represent characters in a file name. The asterisk (*) is used to represent zero or more characters, while the question mark (?) is used to represent exactly one character. For example, if you type *any* in a filename, you might see a list of file names like this: anyfile.img many.ovr somefile.any If you type *.img in a filename, you will see a list of files with the .img extension. If you type man?????.* in a filename, you might see a list of file names like this ... manholes.img manholes.ovr manholes.aoi ... but you would not get: manhole.img manholecover.img
22
File Specifications
Pyramid Layers IMAGINE gives you the option to “pyramid” large images for faster processing and is opened in the Viewer. This option creates reduced subsampled raster layers. These can either be stored within the .img HFA file, or as a separate file with the .rrd extension, determined by the Pyramid Layers External preference setting in the Image Files (General) category. For example, a file which is 4k x 4k pixels could take a long time to display when using the Viewer Fit To Window option. Using the pyramid layer option, IMAGINE would create additional layers successively reduced from 4k x 4k, to 2k x 2k, 1k x 1k, 512 x 512, 128 x128, down to 64k x 64k. Then IMAGINE would select the pyramid layer size most appropriate for display in your Viewer window. The pyramid layer option is available from the Image Information and the Import utility.
23
Raw File Format
Raw File Format One of the most important raster file formats to be supported within the Raster Dynamic Loaded Library (DLL) scheme is the generic or “Raw” format. The Raw DLL supports files which are not otherwise supported by a Raster DLL, but which are formatted in such a way that the arrangement of the data may be described by a relatively small number of parameters. In this way, rather than having to use the Generic Binary Import options to convert an image to IMAGINE’s internal .img format, the data can be directly accessed using the Raw DLL after defining only a few parameters about the image (such as number of rows, columns, bands, etc.) The Raw File format is simply another raster format supported under the DLL umbrella, and as such does not need any additional DLL design. However, it does need a well-defined method of describing the image parameters, which is the purpose of this section. The default file filter is “.raw”. A file with a raw extension is presumed to be a header file which indicates the name of the file(s) containing the pixel data and the arrangement of the data within the file(s).
Format of the Raw File The .raw file is an ASCII file consisting of keywords and associated values. There may be only one keyword per line. Keywords should begin at the first character of a line. Any line which does not begin with a recognized keyword will be ignored; this means that a file may contain comments or other data which is not part of the raw file description. By convention, a comment line is one which begins with the ‘#’ symbol (pound sign). All of the data associated with a keyword must be on the same line with the keyword, unless the continuation character ‘\’ appears at the end of a line. Keywords and strings must be written in uppercase letters, except strings which denote file names. Keywords and associated data are separated by white space (spaces and/or tabs). Keywords may be in any order except the recognition keyword IMAGINE_RAW_FILE, which must appear first.
Keywords The only keywords which are required are IMAGINE_RAW_FILE, WIDTH, HEIGHT, and if the data type size is greater than eight bits, BYTE_ORDER. All other keywords are optional and have default values.
IMAGINE_RAW_FILE This keyword must be at the very beginning of the file, on a line by itself.
WIDTH The number of pixels in the horizontal (x) direction. Must be an integer greater than zero. Required; no default value.
24
Raw File Format
HEIGHT The number of pixels in the vertical (y) direction. Must be an integer greater than zero. Required; no default value.
NUM_LAYERS The number of layers (channels, bands) in the image. Must be an integer greater than zero. Optional; default value is 1.
FORMAT The type of interleaving used in the file. Must be one of the following strings: “BIL” (Band Interleaved By Line), “BIP” (Band Interleaved By Pixel), “BSQ” (Band Sequential), or “TILED” (Tiled or blocked image). Tiled data is presumed to be band sequential within each tile. If the width and/or height of the file is not an even multiple of the tile size, the tiles must be padded with zeros so that all tiles are the same size. The tiles themselves are arranged left to right, top to bottom. For single-layer images, BIL, BIP and BSQ are the same. Optional; default value is “BIL”.
DATA_TYPE The data type used by the image. Must be one of the following strings: “Up”, “U2”, “U4”, “U8”, “Ul6”, “Sl6”, “U32”, “S32”, “F32”, “F64”. Optional; default value is “U8”.
LAYER_TYPE The layer type used by the image. Must be either “ATHEMATIC” or “THEMATIC”. Optional; default value is “ATHEMATIC”.
BYTE_ORDER For data types of sixteen bits or larger, the ordering of the high and low bytes must be either “MSB” (most-significant-byte first, or Motorola ordering), or “LSB” (leastsignificant-byte first, or Intel ordering). Required for DATA_TYPE values of U16, S16, U32, S32, F32, and F64; ignored otherwise.
PIXEL_FILES The name of the file(s) in which the pixel data reside. For BIL, BIP and Tiled formats, all of the pixel data must reside in the same file. For BSQ formats, each band may reside in a separate file. Optional; defaults to the name of the raw file without the .raw extension. If the file does not contain a path part, the same path part as the raw file will be assumed. Relative path definitions are allowed.
DATA_OFFSET The number of bytes to be skipped at the beginning of a pixel file. Must be an integer greater than or equal to zero. Optional; defaults to zero.
RECORD_SKIP_BYTES The number of bytes skipped between data records. A data record is defined differently depending on the format. For BIL and BSQ images, a data record holds one row of pixels from one layer. For BIP images, a data record holds one row of pixels from all layers. For tiled images, a data record holds one tile of pixels from all layers. Must be an integer greater than or equal to zero. Optional; defaults to zero.
LAYER_SKIP_BYTES BSQ format only: the number of bytes to skip between image layers. Must be an integer greater than or equal to zero. Optional; defaults to zero.
25
Raw File Format
TILE_WIDTH Tiled format only: the number of pixels in the horizontal (x) direction per tile. Must be an integer greater than or equal to zero. and less than or equal to the image width. Optional; defaults to the minimum of 128 and the image width.
TILE_HEIGHT Tiled format only: the number of pixels in the vertical (y) direction per tile. Must be an integer greater than or equal to zero. and less than or equal to the image width. Optional; defaults to the minimum of 128 and the image height.
END_RAW_FILE Indicates the end of the raw file information. Useful if the raw file information is embedded within a larger file (perhaps the image file itself), it signals the DLL to stop scanning for further keywords. No associated values. Optional; if not present the DLL will scan to the end of the file.
Examples Example 1: a 1201 x 1201-pixel DEM (Digital Elevation Model) file containing only pixel data, stored in the file “atlanta-e.dem” in the same directory as the raw file. The byte order is Motorola. IMAGINE_RAW_FILE WIDTH 1201 HEIGHT 1201 DATA_TYPE U16 PIXEL_FILES atlanta-e.dem BYTE_ORDER MSB Example 2: a 3-band image in BSQ format. All the data is in the file “/usr/people/Igscene.rgb”. The file is 1000 pixels wide and 1500 pixels high. There is a 622-byte header at the start of the file. Each band contains a 2000 byte header and an 1000 byte trailer. IMAGINE_RAW_FILE WIDTH 1000 HEIGHT 1500 NUM_LAYERS 3 FORMAT BSQ PIXEL_FILES /usr/people/Igscene.rgb DATA_OFFSET 2622 LAYER_SKIP_BYTES 3000 Example 3: a 4-band image in BSQ format. Each layer is in a separate file, named “bandl.dat”, “band2.dat”, “band3.dat”, and “band4.dat”. The image is 6000 bytes wide and 4000 bytes high. Each line of data contains 128 bytes of non-image data at the beginning and 32 bytes of nonimage data at the end.
26
Raw File Format IMAGINE_RAW_FILE NUM_LAYERS 4 WIDTH 6000 HEIGHT 4000 FORMAT BSQ PIXEL_FILES bandl.dat band2.dat band3.dat band4.dat DATA_OFFSET 128 RECORD_BYTE_SKIP 160 Example 4: A thematic image, 1024 by 1024 pixels, tiled with tile size 64 by 64 pixels. The image data is in the file “landcover.001”: IMAGINE_RAW_FILE WIDTH 1024 HEIGHT 1024 FORMAT TILED TILE WIDTH 64 TILE HEIGHT 64 LAYER_TYPE THEMATIC PIXEL_FILES landcover.001
27
File Selector
File Selector This dialog is used throughout IMAGINE to provide uniform access to the file system. The actual title in the dialog frame varies depending upon the application. Under UNIX, the Files and Permissions tabs are common to all instances but there may be additional tabs provided by the application. In these cases, there is an additional Help button on the tab to explain its use in that application. In general, this dialog is opened when you click on the
icon in any toolbar or palette.
Windows
File This tab provides access to the directory structures and files. Look in: The current or default directory is displayed. Click the popup list button to change drives. Click the Up Folder icon to go up one level in the directory structure. File name:
Enter the name of the file, or select it from the scrolling list above.
Files of Type: Click the popup list button and select the file type to display in the file selector window. Files of Type is the label given to the popup list that is available on all File Chooser dialogs.
OK Click this button to use the selected file and close the dialog. Recent... Click this button to view a list of recently accessed files. The List of Recent Files dialog is opened.
Goto... Click this button to view a list of recently accessed directories. The Select A Directory dialog is opened.
Cancel Click this button to cancel the selection and close the dialog. Help Click this button to display this help file.
28
File Selector
This icon occupies the space that is used for the image preview chip if no chip exists for the selected file or if you have disabled the preview function. The preview chip provides a miniature version of the selected file before the file is opened. You may elect to disable the preview function by setting a preference in the User Interface & Session category of the Preference Editor. UNIX
Files This tab provides access to the directory structures and files. Filename:
Enter or select the name of the file.
Directory: The current or default directory is displayed. You can enter a new directory path in the Filename: field. File Type: Click the popup list button and select the file type to display in the file selector window.
Permissions This tab provides easy access to file ownership and permissions. Under some conditions, this tab is not displayed. Filename: Owner:
The name of the currently selected file is displayed.
The owner of the currently selected file is displayed.
Permissions If you are the owner of a file, you can change the file permissions for yourself (Owner), your Group (those who have the same GID), and all Others. There are three basic modes of permission in each of these classes. Read
The file may be opened for viewing only. No changes can be made to the file.
Write The file may be opened for editing. Changes made to the image may be saved to the file. Execute
This permission is for executable files such as shell scripts and programs.
OK Click this button to use the selected file and close the dialog. Recent... Click this button to view a list of recently accessed files. The List of Recent Files dialog is opened.
29
File Selector
Goto... Click this button to view a list of recently accessed directories. The Select A Directory dialog is opened.
Rename... Click this button to change the name of a file for which you have write permission. You are presented with a dialog in which to enter the new name.
Delete... Click this button to delete the currently selected file. You are queried before the file is deleted.
CDROM... Click this button to mount a new CD-ROM. The Mount/Unmount CD-ROM dialog is opened. Cancel Click this button to cancel the selection and close the dialog. Help Click this button to display this help file.
This icon occupies the space that is used for the image preview chip if no chip exists for the selected file or if you have disabled the preview function. The preview chip provides a miniature version of the selected file before the file is opened. You may elect to disable the preview function by setting a preference in the User Interface & Session category of the Preference Editor.
30
Files of Type
Files of Type Files of Type is the label given to the popup list that is available on all File Chooser dialogs. This popup list contains a list of file types from which you can choose. MrSid is Multi-resolution Seamless Image Database (MrSID). It is a wavelet compression technology and data format developed by LizardTech. This patented new Portable Image Format (TM) provides a significant reduction in the disk space needed to store high-resolution images while maintaining the quality and integrity of the original. ERDAS IMAGINE can read images produced by versions 1.2, 1.3, and 2.0 of the MrSID Compressor. For more information on MrSID or LizardTech, visit their web site at http:// www.lizardtech.com RAW is a data file without any header information. The Raw DLL supports files which are not otherwise supported by a Raster DLL, but which are formatted in such a way that the arrangement of the data may be described by a relatively small number of parameters.
➲ For more information see Raw File Format. The ERDAS IMAGINE TIFF DLL supports TIFF version 6.0. The GeoTIFF specification defines how to include cartographic information in a TIFF file, and is not a separate file format. The ERDAS IMAGINE TIFF DLL supports all TIFF imagery including translation of any cartographic information conforming to the GeoTIFF rev 1.0 specification.
➲ For more information see TIFF Image Files DTED is Digital Terrain Elevation Data. ERDAS IMAGINE supports levels 1 and 2. The levels repress resolutions of the terrain. ERDAS IMAGINE does not support levels 3, 4, and 5.
31
File Open Dialog
File Open Dialog This dialog provides access to the IMAGINE file name part for file selection. It is used instead of the File Selector in special cases. It appears in several places throughout IMAGINE when you click the
icon.
File Name Enter the name of the file in the text field. OK Click to use the selected file and close this dialog. Cancel Click to cancel this process and close this dialog. Help Click to open this On-Line Help document.
32
List of Recent Files
List of Recent Files This dialog presents a list of recently accessed directories from which you may select the current directory. This dialog is opened when you click on the Recent... button in the File Selector dialog.
Recent Files... Click on one of the recently used files in this list and click the OK button to display the file in the Files tab.
OK Click this button to pass this file to the FIle Selector for viewing the permissions and preview chip if one exists. The file is not opened until the OK button on the File Selector is clicked.
Clear... Click this button to clear the file history list. Cancel Click this button to cancel file selection and close the dialog. Help Click this button to display this help file.
33
Select A Directory
Select A Directory This dialog presents a list of recently accessed directories from which you may select the current directory. This dialog is opened when you click on the Goto... button in the File Selector dialog.
Enter New Directory... Enter the directory name or path or select one from the list below.
Recent Directories... Click on one of the recently used directories in this list and click the OK button to display the file list in the Files tab.
OK Click this button to display the file list for the selected directory. Files are listed in the Files tab.
Clear... Click this button to clear the directory history list. Cancel Click this button to cancel directory selection and close the dialog. Help Click this button to display this help file.
34
Mount/Unmount CD-ROM
Mount/Unmount CD-ROM UNIX Only This dialog enables you to mount and unmount a CD-ROM. Normally CD-ROMs are automatically mounted and unmounted in the data loading program, but in special cases, you may have to use this utility to mount and unmount the CD-ROM. This is often the case when you are loading data that are not normally on CD. This dialog is opened when you select Utilities | Mount/Unmount CD-ROM... from the main ERDAS IMAGINE icon panel menu bar. It is also opened when you click on the CD-ROM... button in the File Selector dialog.
CDROM List: Select the CD-ROM to mount or unmount. Mount Click to mount the selected CD-ROM. Unmount Click to unmount the selected CD-ROM. Cancel Click to cancel this process and close this dialog. Help Click to see this On-Line Help document. ➲ For information on using the ERDAS IMAGINE graphical interface, see the on-line IMAGINE Interface manual.
➲ For step-by-step instructions on loading many types of data, see the ERDAS IMAGINE Tour Guides.
35
CellArrays
CellArrays A CellArray is a group of “cells” which contains information, similar to a table. It is like a scrolling list that displays information organized in rows (records) and columns (fields). CellArrays can scroll in two directions if necessary. Scrollbars will appear at the side or the bottom of the CellArray, or both, if there are rows or columns not showing. Some CellArrays are read-only, and simply is opened data. Others have editable cells that you can treat like text fields or number fields. A CellArray can have both editable and read-only cells.
☞ Depending on the application, a CellArray may provide any combination of the following features.
Editing Cells of a CellArray In some situations, you can edit the contents of cells in the CellArray. To find out if a cell is editable, click on the cell. If it is editable, it will become like a text or number field and allow you to begin typing. When you finish editing, press RETURN. In some cases, RETURN also advances the cursor to the next editable field.
Selecting Rows and Columns in a CellArray Rows (records) and columns (fields) may be selected and deselected for various manipulations. You can immediately tell if a row or column is selected by the color of the CellArray:
♦ When a row is selected, it is highlighted in yellow. ♦ When a column is selected, it is highlighted in cyan. ♦ The areas at the intersection of selected rows and columns are highlighted in green. ♦ Unselected rows and columns are white. Selecting Rows Use any of these options for selecting rows:
♦
To select one row, click in the first column of the row, or in any uneditable column. The row will
be highlighted.
36
CellArrays
♦
then middle-click in the first column of the last row in the range. Or, hold and drag across the range. All rows in the range will be highlighted.
♦
To select multiple rows that are not in a range, shift-click in the first column of each row that you
To select a range of rows, click in the first column of the first row in the range,
want to select. For more row selection options, right-hold in the first column of the CellArray for the Row Selection popup menu. Selecting Columns
♦
To select one column,
click in the header row of the column.
♦
To deselect a column,
press shift-click in the selected column header.
♦ Pressing shift-click will toggle a column between selected and deselected. ♦
To select a range of columns, click in the first column header in the range, and then middle-click
on the last column header in the range.
♦ When multiple columns are selected and you want to deselect all but one column, click in the column header that you want to remain selected.
♦
To select multiple columns that are not in a range, shift-click in the first column of each row that
you want to select.
Working with Columns in a CellArray Resizing Columns Each column is opened with an initial default size. This size can be changed to allow you to see more or less of the information in the column. To change the size of a column, place the cursor over the column separator in the header cell.The cursor will change from a simple pointer to a right-left arrow pair. You can now hold and drag the mouse to change the size of the column. Column Options For more options for working with columns, right-hold in the header row of any column except the first column. The Column Options popup menu displays. This menu lets you:
♦ Edit the title of some columns ♦ Import, Export, Copy, and Paste column data
37
CellArrays
♦ Select a standard format or create a customized format for numerical values in the CellArray (See Number Formats)
♦ Print a Report of the CellArray ♦ Create and apply a Formula using the columns as input and place the results back into the CellArray
♦ Align column data within the cells (Left, Right, Center) ♦ Compute statistics of CellArray data to be printed with the CellArray report
38
Variable Numeric Values in a CellArray
Variable Numeric Values in a CellArray Just as with the number fields in the rest of IMAGINE, numbers may be entered into the CellArray as a string with a great deal of flexibility. The string is an expression composed of any sequence of numbers and operators. The supported operations are: Variable Description [+-]ddd[.[ddd]][e+-[ddd]]
A simple number composed of digits, a sign, a decimal point, and an exponent.
[+-] dd mm ss [+-] dd:mm:ss dd mm ss [N/S] dd:mm:ss [N/S] dd mm ss [E/W] dd:mm:ss [E/W]
Converts the given degrees (dd), minutes (mm), and seconds (ss) to decimal degrees. Either a sign may be given before dd mm ss or a N/S or E/W may be given after the dd mm ss. Fields may be either space delimited or colon delimited.
pi
Returns the value of pi (3.141592.....).
<exp> + <exp>
Returns the sum of two expressions.
<exp> - <exp>
Returns the difference of two expressions.
<exp> * <exp>
Returns the product of two expressions.
<exp> / <exp>
Returns the quotient of two expressions.
<exp> ^ <exp>
Returns the first expression raised to the second expression.
<exp> ** <exp>
Returns the first expression raised to the second expression.
abs(<exp>)
Returns the absolute value of the argument.
int(<exp>)
Returns the integer portion of the argument.
mod(<exp>,<exp>)
Returns the remainder of the first argument divided by the second.
min(<exp>,<exp>)
Returns the minimum of the two arguments.
max(<exp>,<exp>)
Return the maximum of the two arguments.
sin(<exp>)
Returns the sine of the single argument. The argument is assumed to be in radians.
cos(<exp>)
Returns the cosine of the single argument. The argument is assumed to be in radians.
tan(<exp>)
Return the tangent of the single argument. The argument is assumed to be in radians.
39
Variable Numeric Values in a CellArray
Variable
Description
asin(<exp>)
Returns the arcsine of the argument. The result is in radians.
acos(<exp>)
Returns the arccosine of the argument. The result is in radians.
atan(<exp>)
Returns the arctangent of the argument. The result is in radians.
ln(<exp>)
Returns the natural logarithm of the argument.
log(<exp>)
Returns the common logarithm of the argument.
sqrt(<exp>)
Returns the square root of the argument.
dd(<exp>,<exp>,<exp>)
Treats the three expressions as degrees, minutes, and seconds, respectively and converts them to decimal degrees.
<exp> unitname
Multiplies the expression by the conversion factor for the given unitname. For example “3 feet” will multiply 3 by the number of feet per meter.
<exp> unitname unitname <exp> unitname TO unitname CONVERT(<exp>,unitname,unitna me)
Multiplies the expression by the conversion factor needed to convert from the first unitname to the second unitname. For example “3 feet inches” will multiply 3 by 12.
☞ In all of the forms above that deal with units, the unit names come from the file <$IMAGINE_HOME>/etc/units.dat. This file defines a series of categories (distance, area, weight) and within each category a variety of units are defined. For each category a default unit is defined which has a conversion factor of 1.0. For example, the default unit in distance is the meter, so all of the other distance units are given in meters. Units and categories may be added to this file. If the environment variable ERDAS_ETC_PATH is defined, then the file units.dat will be found using that path. The default value of the path is ./:/<$IMAGINE_HOME>/etc/. This means that you can put a modified units.dat file in the current directory instead of modifying the file in <$IMAGINE_HOME>/etc.
40
Number Formats
Number Formats Select Formats from the Column Options and the Number Format dialog is opened. This dialog lets you select the way numeric values are displayed in the CellArray. The Standard Formats contains a list of commonly used formats. Number Format Variables You may also create a customized number format in the Custom Format: area. The custom format is a character string which uses variables to control the way the numbers are presented. The custom format string may consist of up to three fields of formatting information separated by semicolons. The default conditions for each field are:
♦ If only the first field is given, then it is used for all numbers. ♦ If the first and second fields are given, then the first is used for positive numbers and the second is used for zero and negative numbers.
♦ If all three fields are given, then the first is for positive numbers, the second is for negative, and the third is for zero. Each field may also specify a condition of the form []. Here is one of <,>,=,<>,>=,<= and is any number. A custom format string may look like this:
#,##0;(#,##0);0 Third field (number = 0) Second field (number < 0) First field (number > 0) Each field consists of format variables from the following list: Variable Description General
If the number is a whole number, the result has no decimal places. If it is not a whole number, the result will have as many decimal places as needed. If the number exceeds 12 digits then scientific notation is used.
41
Number Formats
Variable
Description
0
The general place holder for a digit. It is used to indicate the number of decimal places to be displayed if used on the right of a decimal point, and the number of leading zeros to be printed to the left of the decimal point.
#
The same as 0 except that nothing is printed if the position would contain a leading or a trailing zero.
?
The same as 0 except that it prints a space for leading and trailing zeros.
.
Indicates where the decimal point is to be included.
,
If this occurs between the digit place holders (0,#,?), then it indicates that thousands should be separated by commas.
E+,E-,e+,e-
Use scientific notation. E causes an uppercase E to be used and e causes a lowercase e to be used. E+ and e+ force the sign to be printed. E- and e- print the sign only if it is negative.
%
Indicates that the number is to be scaled by one hundred and then displayed with a percent sign (%).
$,/, ,-,+,(,),:
Includes each of these characters as is in the output.
\
Includes the following character as is with no interpretation in the output.
“...”
Includes the characters between the quotes as is with no interpretation in the output.
d
Interpret the number as a time and extract the day. Print the day of the month (1-31) without leading zeros.
dd
Interpret the number as a time and extract the day. Print the day of the month (01-31) with leading zeros.
ddd
Interpret the number as a time and extract the day. Print the day of the week as (Sun, Mon, Tue, etc.).
dddd
Interpret the number as a time and extract the day. Print the day of the week as (Sunday, Monday, Tuesday, etc.)
m
Interpret the number as a time and extract the month. Print the month as a number (1-12) without leading zeros.
mm
Interpret the number as a time and extract the month. Print the month as a number (01-12) with leading zeros.
42
Number Formats
Variable
Description
mmm
Interpret the number as a time and extract the month. Print the month as (Jan, Feb, Mar...).
mmmm
Interpret the number as a time and extract the month. Print the month as (January, February, March, etc.).
yy
Interpret the number as a time and extract the year. Print the year as a two digit number (00-99) which is the number of years since 1900.
yyyy
Interpret the number as a time and extract the year. Print the year as a four digit number (1992).
h
Interpret the number as a time or an angle and extract the hour. Print the hour of the day without leading zeros as 00-23 if 24-hour time is used, or as 1-12 if twelve hour time is used.
hh
Interpret the number as a time or angle and extract the hour. Print the hour of the day with leading zeros as 00-23 if 24-hour time is used, or as 1-12 if twelve hour time is used.
m
Interpret the number as a time or angle and extract the minute. Print the minute as 0-59 without leading zeros. (m is interpreted as minute instead of month if it follows h or hh.)
mm
Interpret the number as a time or angle and extract the minute. Print the minute as 0-59 with leading zeros. (mm is interpreted as minute instead of month if it follows h or hh.)
s
Interpret the number as a time or angle and extract the second. Print the second as 0-59 without leading zeros.
ss
Interpret the number as a time or angle and extract the second. Print the second as 0-59 with leading zeros.
A/P,a/p
Use 12-hour time and indicate the 12-hour period with A or a for AM and P or p for PM.
AM/PM,am/pm
Use 12-hour time and indicate the 12-hour period with AM or am for AM and PM or pm for PM.
dg
Interpret the number as decimal degrees. Extract and print the degrees without leading zeros. This may be followed with (m,mm,s,ss).
deg
Interpret the number as decimal degrees. Extract and print the degrees with leading zeros. This may be followed with (m,mm,s,ss).
43
Number Formats
Variable
Description
N/S,n/s
If the number is positive print N or n and if the number is negative (south of the equator) print S or s. When this is used the sign on the degrees is always positive.
E/W,e/w
If the number is positive (east) print E or e and if the number is negative (west) print W or w. When this is used the sign on the degrees is always positive.
Indicate the color code to be used for the output text.
[=value]
Use this field if the number is equal to the given value.
[>value]
Use this field if the number is greater than the given value.
[
Use this field if the number is less than the given value.
[>=value]
Use this field if the number is greater than or equal to the given value.
[<=value]
Use this field if the number if less than or equal to the given value.
[<>value]
Use this field if the number is not equal to the given value.
Numbers which are interpreted as times (of day) are assumed to be encoded as the number of seconds which have elapsed since Jan-1-1970, 12:00:00 AM GMT.
44
Column Options
Column Options This right button menu gives you a list of options that can be applied to the columns in a CellArray. To reach this menu, right-hold in the header row of any column except the first column.
☞ Depending upon the application you are using, you may not have access to all of these options.
Select None All columns are unselected. Select All All columns are selected. Selected columns are highlighted in cyan. Invert Selection Any columns that are currently unselected will be selected, and any selected columns will become unselected.
Edit Title When this option is active, it allows you to edit the existing title or enter a new title for the column.Type in the change and press Return. Currently, this option is active in the legend tool in Map Composer and the Table tool in the Model Maker.
Copy This option lets you copy data from the CellArray. Select the rows or columns to be copied. If no rows or columns are selected when you click on Copy, then the entire CellArray will be copied. The data are stored into a buffer until something else is saved with the Copy command. The copied data can be pasted into another application.
Paste This option lets you retrieve data that were copied with the Copy command. The data from the copy buffer are copied into the selected rows of the selected columns. If there are more rows in the copy buffer than there are in the CellArray, then the data will either be discarded or pasted into new rows (if the application allows for new rows).
Format... This option allows you to choose the format to use for displaying numeric values in the CellArray. The Format dialog is opened. Report... Using this option you can generate a report from the data in the CellArray. The Report Format Definition dialog is opened.
Import... This option allows you to import ASCII data into your CellArray. The Import Column Data dialog is opened.
45
Column Options
Export... This option allows you to export column data to an ASCII file for use in other applications. The Export Column Data dialog is opened.
Delete... This option is used to delete the selected columns if the application allows it. The Column Delete Warning dialog is opened. Add... This option is used to add new columns to the CellArray if the application allows it. The Add New Column dialog is opened.
Formula... This option lets you create a formula which can be applied to selected rows or columns. The Formula dialog is opened. Color... This option allows you to change the color used for a class. The Color Chooser dialog is opened.
Alignment Select this option to align the column data. Left
Align data to the center of the selected columns.
Right Center
Align data to the center of the selected columns. Align data to the center of the selected columns.
Compute Stats... The Statistics dialog is opened. ➲ For more information about using CellArrays, see the ERDAS IMAGINE Tour Guides.
46
Number Format
Number Format This dialog enables you to choose the format for displaying numeric values in the CellArray. To open this dialog, right-hold in the header row of the column for which you want to set the number format, and select Format... from the Column Options that display.
➲ For more information on format descriptions and variables, see Number Formats. Categories: Select a category of standard formats. Choose from the General, Time, Money, or Coordinates format, examples of which display in the Standard Format field.
Standard Formats: Select one of the prepared formats listed below or use the Custom Format option. When one of these prepared formats is selected, it is copied to the Custom Format field for use as is or for modification. Default
Applies the default application formatting.
General If the number is a whole number, the result has no decimal places. If it is not a whole number, the result will have as many decimal places as needed. If the number exceeds 12 digits then scientific notation is used. 0 0.00 #,##0 #,##0.00 $#,##0;($#,##0) $#,##0.00;[Red]($#,##0.00) 0% 0.00% 0.00E+00 m/d/yy d-mmmm-yy dg mm ss N/S dg mm ss E/W hh:mm:ss
Custom Format: This option lets you create a customized number format by entering a string of number format variables.
Apply Click to apply the selected number format. This format will be applied to all of the selected numeric columns in CellArray.
Close Click to close this dialog. 47
Number Format
Help Click to see this On-Line Help document. ➲ For more information about using CellArrays, see the ERDAS IMAGINE Tour Guides manual.
48
Report Format Definition
Report Format Definition This dialog enables you to define the format for a printed report of a CellArray. The report is an ASCII file which retains the formatting and alignment used in the CellArray. If a CellArray contains more columns than will fit across a report page, then each page is divided into panels. The report pages are numbered by page and panel. To open this dialog, right-hold in the header row of any column except the first column, and select Report... from the Column Options which appear.
Title: Enter a title to print at the top center of the first page of the report. Header: Enter the header text to print at the top center of each page of the report, except for the first page.
Footer: Enter the footer text to print at the bottom center of every page. It will be followed by the page number and the panel number.
Page Size: This group lets you enter the size of the report page in number of characters. Width:
Enter the width of the page in characters.
Height:
Enter the height of the page in characters.
Margins: This group lets you enter the amount of space to be left around the edges of the report. Width: Enter the width of the margin in characters. This insures that this much space will be left blank on the left and right hand sides of the page. Height: Enter the height of the margin in characters. This insures that this much space will be left blank on top and bottom of the page.
Statistics: This group lets you select the type of statistics to be included at the end of the report. These statistics are generated when you select Compute Stats from the Column Options. Count Total
Click to report the total number of rows selected. Click to report the arithmetic sum of the values in the column.
Minimum
Click to report the minimum value in the column.
Maximum
Click to report the maximum value in the column.
Mean
Click to report the average of the values in the column.
49
Report Format Definition Standard Deviation
Click to report the standard deviation of the values in the column.
OK Click to run this process with the options selected and close this dialog. The report will be written to a temporary file which is then displayed in the IMAGINE Editor for review. To save the report use the Save As option in the Editor menu bar. To print the report use the Print option in the Editor menu bar.
Cancel Click to cancel this process and close this dialog. Help Click to see this On-Line Help document. ➲ For more information about using CellArrays, see the ERDAS IMAGINE Tour Guides.
50
Import Column Data
Import Column Data This dialog enables you to import column data from an ASCII file into the CellArray. To open this dialog, right-hold in the header row of any column of the table and select Import... from the Column Options popup.
Import From... Use this filename part to specify the name of the file to import. There is no default file extension assumed. OK Click to run this process with the options selected and close this dialog. View... Click to view the selected file before importing. The ASCII file is opened in the IMAGINE Text Editor.
Options... The Import Column Options dialog opens. This dialog enables you to define the separator character, terminator character, rows to skip, comment character, and column order of the import data. Cancel Click to cancel this process and close this dialog. Help Click to see this On-Line Help document. ➲ For more information about using CellArrays, see the ERDAS IMAGINE Tour Guides.
51
Import Column Options
Import Column Options This dialog enables you to define how the import data are placed into your CellArray. To open this dialog, select Options... from the Import Column Data dialog.
Separator Character: Click the popup list button and choose the character that separates the columns in the import data. The default is Tab. Tab
Entries are separated by a tab.
Comma
Entries are separated by a comma (,).
Colon (:)
Entries are separated by a colon (:).
SemiColon (;)
Entries are separated by a semicolon (;).
Vertical Bar (|)
Entries are separated by a vertical bar (|).
Space
Entries are separated by a space.
WhiteSpace The WhiteSpace entry means that any number of sequential spaces and tabs are used as the separator. This is used if the file was formatted into columns by using spaces.
☞ Do not use the WhiteSpace option when two consecutive spaces or tabs have been used to delimit an empty field.
Row Terminator Character: Click the popup list button and choose the character that indicates the end of a row in the import data. This is based on the system on which the import file was created. NewLine (Unix)
Select this option if the import file was created on a UNIX system.
Return NewLine (DOS) system.
Select this option if the import file was created on a DOS
Return (MacOS) Select this option if the import file was created on a Macintosh system.
Comment Character: Indicates the character that is used at the beginning of a comment in the import data. The default is the # character. If a line begins with a comment character then it is not imported into a column.
Number of Rows To Skip: Enter the number of rows to skip in the input file. For example, if the import data contain some sort of header lines at the top of the file, you could tell IMAGINE to skip those rows when importing. The default value is 0.
52
Import Column Options
(table) You may edit this table to control the order in which the columns are imported. Column lists the columns in your CellArray which will receive data. These entries cannot be changed. Field indicates the field number of the imported data to be placed into this column. The first column in the import file is Field 1. By clicking in this column you may change the order in which the input columns are imported.
OK Click to accept the options selected and close this dialog. The data is not imported until you click OK in the Import Column Data dialog.
Help Click to see this On-Line Help document. ➲ For more information about using CellArrays, see the ERDAS IMAGINE Tour Guides.
53
Export Column Data
Export Column Data This dialog enables you to export column data to an ASCII file for use in another application, or simply as a means of saving the data for later use. To use this option, right-hold in the header row of any column of the CellArray, and select Column Options | Export...
Export To... Use this file name part to specify the output file name. The .dat extension is added automatically.
OK Click to run this process with the options selected and close this dialog. Options... The Export Column Options dialog is opened. Cancel Click to cancel this process and close this dialog. Help Click to see this On-Line Help document. ➲ For more information about using CellArrays, see the ERDAS IMAGINE Tour Guides.
54
Export Column Options
Export Column Options This dialog enables you to select format options for the exported column text. To open this dialog, select Options... from the Export Column Data dialog.
Separator Character: Click the popup list button and choose a character to separate the columns in the exported text. The default is Tab. Tab
Entries will be separated by a tab.
Comma
Entries will be separated by a comma (,).
Colon (:)
Entries will be separated by a colon (:).
SemiColon (;)
Entries will be separated by a semicolon (;).
Vertical Bar (|)
Entries will be separated by a vertical bar (|).
Space
Entries will be separated by a space.
Terminator Character: Click the popup list button and choose a character to indicate the end of each row (based on the system to which the data are being exported). NewLine (Unix) Select this option if you are exporting data for use on a UNIX computer. Rows are terminated with a newline. Return+LineFeed (DOS) Select this option if you are exporting data for use on a DOS computer. Rows are terminated with a return and line feed. Return (MacOS) Select this option if you are exporting data for use on a Macintosh computer. Rows are terminated with a return.
Number of Rows To Skip: Enter the number of rows to leave blank at the top of the output file. The default is zero.
(table) Use this table to control the order in which the columns are exported.Right-hold on any column heading for the Column Options popup. Field lists the columns in the output file. There will be a field for each column that was selected when the Export option was chosen. If no columns were selected when the Export option was chosen, all columns are exported. Column lists the columns in your CellArray which are to be exported. To rearrange the order in which the data are written to the output file, select the name under Column, type in the desired column name, and press Return. Only valid column names will be accepted.
55
Export Column Options
OK Click to accept the options selected and close this dialog. The data is not exported until you click OK in the Export Column Data dialog.
Help Click to see this On-Line Help document. ➲ For more information about using CellArrays, see the ERDAS IMAGINE Tour Guides.
56
Column Delete Warning
Column Delete Warning This dialog enables you to delete a column from a CellArray. The column you want to delete must be selected before you choose this option. This dialog opens when you right-hold Column Options | Delete... with your cursor in a column header.
Deleting this column cannot be undone! This message warns you that once the column is deleted it cannot be retrieved.
Delete Click to delete the selected column and close this dialog. Cancel Click to close this dialog without deleting a column. Help Click to see this On-Line Help document. ➲ For more information about using CellArrays, see the ERDAS IMAGINE Tour Guides.
57
Add New Column
Add New Column This dialog enables you to add a new column to a CellArray. It opens when you right-hold Column Options | Add... with your cursor in a column header.
☞ Some applications do not allow you to add columns. Column Name: Enter a name for the new column. Column Type: Click the popup list button to specify the data type for the new column. Select one of the data types below. Text Number Boolean Exclusive
Column Width: Enter the column width in characters. OK Click to add this column and close this dialog. Cancel Click to close this dialog without adding a new column to the CellArray. Help Click to see this On-Line Help document. ➲ For more information about using CellArrays, see the ERDAS IMAGINE Tour Guides.
58
Formula
Formula This dialog enables you to create a formula that can be applied to selected rows or columns in a CellArray. You can either type the formula directly into the Formula text field or construct it from the other tools in this dialog. Most of the functions apply only to numeric values. However, the + function from the numeric keypad may be used to join two character strings and the format () function may be used to convert a number into a string. The format () function has two forms.
♦ The first form (with one argument) simply converts a number to a character string using the General format.
♦ The version of format () with two arguments converts the number (the second argument) to a string using the Format specified by the first argument. The formats may be chosen from the Formats list. These are the same as the Format menu option. To open this dialog, right-hold in the header row of any column of the table, and select Formula... from the Column Options menu.
Columns: Lists the columns which may be used in the formula. These names are used to build the expression.
Functions: This list contains the functions which may be used in building an expression. row pi
Returns the row number. Provides the value of pi (3.141592...)