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
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.
Editor The ERDAS IMAGINE Text Editor is a full featured ASCII text editor. It provides convenient space for taking notes and writing memos and reports. Data may be freely copied from the HfaView, Data View, and most other CellArray windows. The Text Editor is an excellent tool for creating models using the Spatial Modeler Language and is frequently used by IMAGINE report generating tools. You can access the Text Editor any of these ways:
♦ Select Tools | Edit Text Files... from the ERDAS IMAGINE icon panel ♦ from Spatial Modeler, click Model Librarian... and then Edit File Select this option to open, save, print, and close. The keyboard shortcut is Meta-f. New
Select this option to start a new Text Editor. The current Text Editor is not affected.
Open... Select this option to bring up the File Selector dialog for selecting an existing file to open. The keyboard shortcut is Ctl+l. Save Select this option to save changes to the current model or text file. The keyboard shortcut is Ctl+s. Save As... Select this option to bring up the File Selector dialog for saving the current file to a new name. Reset Select this option to reset to the original contents. This option removes any changes made since the last save. Print... Select this option to bring up the Print dialog for printing the file. The keyboard shortcut is Ctl+p. Close Select this option to exit the Text Editor. You will be asked if you want to save your edits if you have not already done so. The keyboard shortcut is Ctl+d.
Edit Select this option to cut, copy, and paste. Cut Select this option to delete the selected text and copy it to the buffer. You can use the Paste command to paste the contents of the buffer back into the file. The selection remains in the buffer until the Cut or Copy command is used again. The keyboard shortcut is Ctl+x. Copy Select this option to copy the selected text to the buffer. You can use the Paste command to insert that text anywhere in the file. The selection remains in the buffer until the Cut or Copy command is used again. The keyboard shortcut is Ctl+c.
1
Editor Paste Select this option to paste the contents of the buffer into the file at the cursor position. The keyboard shortcut is Ctl+v. Clear
Select this option to deselect any selected text.
You can also deselect text by clicking elsewhere in the document. However, this will move your cursor position.
View Select this option to move to a particular line in the file. The keyboard shortcut is Meta-v. Current Line Number... Select this option to go to a specific line. The Current Line Number dialog is opened.
Find Select this option to search for and/or replace specific words or characters in the file. The keyboard shortcut is Meta-n. Find ... Select this option to find and find/replace with the Search and Replace dialog. The keyboard shortcut is Ctl+f. Find Next Select this option after using the Find option to find the next occurrence of the selected text. Replace Text Select this option to replace the selected text with the replacement text entered in the Search and Replace dialog. Replace All Select this option to replace all occurrences of the string search with the replace string entered in the Search and Replace dialog.
Help Help for Editor Select this option to see this On-Line Help document. The keyboard shortcut is Meta-h.
Click to open a file. This is the same as selecting File | Open in the menu bar. The File Selector dialog is opened.
Click to create a new Text Editor window. This is the same as selecting File | New in the menu bar.
Click to save the current document. This is the same as selecting File | Save in the menu bar.
2
Editor
Click to print the current document. This is the same as selecting File | Print in the menu bar. The Print dialog is opened.
Click to cut the selected text. This is the same as selecting Edit | Cut in the menu bar.
Click to copy the selected text. This is the same as selecting Edit | Copy in the menu bar.
Click to paste the buffer contents into the document at the cursor position. This is the same as selecting Edit | Paste in the menu bar.
Click to search for a text string. This is the same as selecting Find | Find in the menu bar. The Search and Replace dialog is opened.
➲ For information on using the ERDAS IMAGINE graphical interface, see the on-line IMAGINE Interface manual.
3
Print
Print This dialog lets you print a text file from the Text Editor window. Left-hold File | Print... from the Text Editor menu bar or click the access this dialog.
icon on the tool bar to
Printer Name: Enter the name of the printer as it is identified in the /etc/printcap file.
OK Click to send the current file to the specified printer and close this dialog. 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.
4
Search and Replace
Search and Replace This dialog enables you to search and/or replace words, phrases, or characters within a text file in the Text Editor. Select Find | Find... from the Text Editor menu bar to access this dialog or click on the
icon.
Find Click to find the next occurrence of the word(s) or characters typed in the text field to the right. Replace Click to replace text found with the Find button with the text typed in the text field to the right of this button.
Close Click to close this dialog. Replace then Find Click to first replace the selected text with the replacement text and then search for the next occurrence of the Find text. If no text is selected, use the Find button once to find and highlight it. Find then Replace Click this button instead of the Find and Replace buttons to first locate text, then replace with new text all in one step.
Replace All Click to replace all occurrences of the Find text with the Replace text. If the search string contains a subset of the replace string, this option will result in an infinite loop and may cause the system to crash.
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.
5
Current Line Number
Current Line Number This dialog lets you go to a specific line number in a text file or determine the line number of the current line. Left-hold View | Current Line Number... in the Text Editor menu bar to access this dialog.
Line Number: Enter the line number. Close Click to close this dialog. Where Click to see in what line number the cursor is currently positioned. With the cursor at the position you desire, click Where. The line number where the cursor is positioned will display in the Line Number number field.
Go To Click to go to a specific line number. Enter the number you want to go to in the Line Number number field and click Go To. The entire line will be selected.
➲ For information on using the ERDAS IMAGINE graphical interface, see the on-line IMAGINE Interface manual.
6
Raster Attribute Editor
Raster Attribute Editor The Raster Attribute Editor provides access to the properties saved in the Descriptor Table for each layer of a raster file. The Descriptor Table is part of the .img file and may be viewed using the HfaView Utility. The Raster Attribute Editor allows you to edit, add, or delete attributes as well as perform functions with them. The changes effected by these operations can be saved with the image file. There are several ways to access the Raster Attribute Editor:
♦ Select Tools | Edit Raster Attributes... from the ERDAS IMAGINE icon panel. This method allows access to any layer of any .img file.
♦ Select Edit | Raster Attribute Editor... from the Image Info menu bar. This method operates on the layer open in Image Info.
♦ Select Raster | Attributes... from the Viewer menu bar. This method operates on the file currently displayed in the Viewer. It has the advantage of providing visual feedback on operations such as color manipulation. This method may only be used for a layer displayed as Pseudocolor.
♦ Right-hold PseudoColor Options | Attribute Editor... in the Arrange Layers dialog. This method may only be used for a layer opened as Pseudocolor.
♦ Click the
icon on the Raster tool palette.
File Click to display open, save, and close options. New
Click to start a new Raster Attribute Editor.
Open... Save Revert Close
Click to display the File Selector dialog. Click to save changes to the file. Click to discard all changes and revert to the last saved version. Click to close the current editor.
Close All
Click to close all Raster Attribute Editors.
Edit Click to display editing options. Undo Last Edit
Click to undo the last change made.
Note that when using the Column Properties or Merge dialogs, the OK button constitutes one edit so that everything done within that dialog will be undone.
7
Raster Attribute Editor Column Properties... Click to add, delete, reorder, or change properties of columns. The Column Properties dialog is opened. Merge... Click to copy or merge columns from another .img layer or file. The Merge Raster Attribute Columns dialog is opened. Colors... Click to manipulate the colors associated with each attribute. The Colors dialog is opened.
i
If class 0 has changed colors, it should have an opacity of 1 in order for the change to appear in the Viewer. Add Class Names Click to add a Class Names column to the CellArray. This option is disabled if a “Class_Names” column is already present. Add Area Column... Click to compute areas from the histogram and add a new column containing the computed values. The Add Area Column dialog is opened. This option is disabled for non-georeferenced raster layers. Cell to Edit Next Next Row
Click to force the cursor to enter the next row or column on Return.
Click to position the cursor to the next row after single cell edit.
Next Column
Click to position the cursor to the next column after single cell edit.
Deselect Rows
Click to deselect all rows.
Select All Rows
Click to select all rows.
Invert Row Selection Click to deselect all selected rows and select all deselected rows. Criteria... The Selection Criteria dialog is opened, allowing you to use a query language to select rows logically. Copy Click to copy data from the CellArray. Select the rows or columns to be copied. If no rows or columns are selected when you select 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 Click to 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 new rows to be created). Deselect Columns
Click to deselect all columns.
8
Raster Attribute Editor Select All Columns
Click to select all columns.
Invert Column Selection selected columns.
Click to select all deselected columns and deselect all
Format... This option allows you to choose the format to use for displaying numeric values in the CellArray. The Number 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. 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. Formula... This option lets you create a formula which can be applied to selected rows or columns. The Formula dialog is opened. Compute Stats...
The Statistics dialog is opened.
Help Help Click to see this On-Line Help document.
Click to open a new file to edit. The File Selector dialog is opened.
Click to start a new Raster Attribute Editor.
Click to save changes to the file.
Click to add, delete, reorder, or change properties of columns. The Column Properties dialog is opened.
Click to copy the selected rows and columns. The data are written to the paste buffer.
Click to paste the contents of the buffer. This option should be selected only after you have clicked the Copy tool.
9
Raster Attribute Editor
Layer Number: Change layer number for attribute editing (CellArray) This area displays the rows and columns of raster attribute data for the selected layer. The name of this layer is included in the title bar of the dialog. Right-hold in the Row column for the Row Selection popup. Right-hold on any column heading for the Column Options popup.
➲ For information on using the ERDAS IMAGINE graphical interface, see the on-line IMAGINE Interface manual.
➲ For more information about using CellArrays in ERDAS IMAGINE, see the ERDAS IMAGINE Tour Guides manual.
Solutions Suppose you have an unsigned-16 bit thematic image with approximately 1000 different categories. When you open it in the Raster Attribute Editor, you can only see 256 “sliced” categories. How can you browse the full range of data? Go into Tools | Image Information... to recompute the statistics. Set both Skip Factors to 1 and select Direct for the Bin Function. You should now be able to see all of the categories.
10
Column Properties
Column Properties This dialog enables you to add, remove, and rearrange attribute columns. You may change the alignment and format of data and the width of columns. Left-hold Edit | Column Properties... from the Raster Attribute Editor menu bar or left-click the
icon on the tool bar to access this dialog.
Columns: This window displays the list of attribute columns. The arrangement of these columns may be modified by use of the following buttons. Additionally, you may add (New) or remove (Delete) columns. Left-click on the attribute column that you want to move or delete. Up
Left-click to move the selected column up one in list.
Down Top
Left-click to move the selected column down one in the list. Left-click to move the selected column to top of the list.
Bottom New
Left-click to move the selected column to the bottom of the list.
Left-click to create a new column at end of the list.
Delete Left-click to delete the selected column. This button is disabled when the column is not Editable or when the column is required and must not be deleted.
Title: Enter or display the title of the selected column. If the title is editable, it will be displayed in an edittext framepart.
Editable Left-click to set whether the column is editable. Some columns (such as Histogram) are, by default, not editable.
Type: This field displays the data type of the column. It is editable only when a new column is being created. The types are listed below. String Specify type of column Integer Specify type of column Real Specify type of column Complex Specify type of column Color Specify type of column
11
Column Properties
➲ For more information on these data types, see the on-line Spatial Modeler Language Manual.
Show RGB Left-click to display the associated Red, Green, and Blue columns. This check box is enabled only when a color type column is selected.
Alignment Left-hold this popup list to select the alignment of data in the column. Left
Column data will be left-justified.
Center Right
Column data will be centered. Column data will be right-justified.
Format: The user-defined formats are displayed in this text field. They may be edited in this field, but more consistent results may be obtained by using the pre-defined formats displayed in the Number Format dialog. More...
Left click to display the Number Format dialog.
Formula: The user-defined formulas are displayed in this text field. They may be edited in this field, but more consistent results may be obtained by building the formula using the Formula dialog. More...
Left click to display the Formula dialog.
Default only Left-click to associate the formula with the column without applying it. The default formula is displayed whenever the Formula dialog is opened. The default formula is applied from the Formula dialog to the selected rows. Apply on OK clicked.
Left-click to apply the formula to the column when the OK button is left-
Auto-Apply Left-click to apply the formula to the column whenever one of its dependent values is changed. Note that this option could result in significant delays when the CellArray is very large.
Display Width: Edit the width of the column. The displayed value is in ‘M’ (character) units.
Max Width: Edit the maximum number of characters stored in a string type column. This field is active only with String type data. If you edit the column width and unwanted truncation occurs, left-hold File/Revert to restore the lost text.
12
Column Properties
Units: Enter user-defined units of measure. The Edit/Add Area Column option automatically sets this field.
OK Left-click to apply all changes to the CellArray and close the dialog. Cancel Left-click to cancel this process and close this dialog. Help Left-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 more information about using CellArrays in ERDAS IMAGINE, see the “Using CellArrays” Appendix in the ERDAS IMAGINE Tour Guides manual.
13
Merge Raster Attribute Columns:
Merge Raster Attribute Columns: This dialog enables you to copy attributes from one file to another. For example, when you run a model, the new output file may not have all of the attributes of the original file. Using this option, you can merge these attributes into the new file simply by selecting the appropriate rows in the CellArray and clicking OK. In another example, suppose you ran the Clump function and wanted to merge attributes from the original file into the new file, but wanted these attributes merged according to the original values of the file, not the clumped values. You can merge these attributes by specifying the original value column as the Index Column. You may merge into all rows of the attribute table or limit the merge to selected rows. If any rows are selected in the Raster Attribute Editor CellArray, the merge function will affect only those rows. However, the Merge dialog is modal, which prevents you from selecting rows in the CellArray once the Merge dialog is opened. If you want to restrict the Merge to selected rows, you must select the rows first before opening up the Merge dialog. If no row selection is present in the CellArray, all rows may be affected by the Merge. Select Edit | Merge... from the Raster Attribute Editor menu bar to access this dialog.
Input Raster Layer: Select or enter the file from which to merge columns. The default file extension is .img.
Layer Number: Click on this popup list to select the layer number to use if the file is multilayered.
Index Column: (from output) Click on this popup list to select the column in the original file to use as the index (rows to get data from). Only Integer type columns may be used as an index. The index relates rows in the two files. If there is no correspondence, data will not be copied. This option can be used alone, or in combination with the Key Column below.
Key Column: (from input) Click on this popup list to select a column in the Raster Layer specified above to determine where in the original file to place the new values (rows to put data into). If more than one row in the Key column has the same value, only the first one is used. This option can be used alone or in combination with the Index Column above. When both an Index column and a Key column are used, data is copied from the first input row whose key matches the index of the output row. Index and Key numbers may not be negative.
14
Merge Raster Attribute Columns:
(CellArray) Select rows to specify the attribute columns to be copied and edit the new attribute column names in this area. Only attribute columns in the selected rows will be merged. You must select at least one row to merge. Right-hold in the Row column for the Row Selection popup. Right-hold on any column heading for the Column Options popup. Column Attribute column number of input file. Click on this column to select the rows to be merged. Middle-click to add to your selection. Input Column Name Name of the input file attribute column. This column is not editable. New Column Name Name of new attribute column in output file (current file). This column contains a default name that is editable. Overwrite An ‘X’ in this column indicates that an attribute column already exists in the output file with the name currently in the “New Column Name” field. If you select this attribute column to be merged, data in the existing attribute column may be overwritten. If you click here to remove the ‘X’, a unique name is automatically generated for the new column name. You can accept this new column name or enter another name.
OK Click to run this process with the options selected and close this dialog. This button is disabled if no columns are selected.
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 more information about using CellArrays in ERDAS IMAGINE, see the ERDAS IMAGINE Tour Guides manual.
15
Colors
Colors This dialog enables you to assign a range of colors to selected rows. If no rows are selected, the color range is level sliced and applied to all rows. Individual row color may be changed using the CellArray features. Select Edit | Colors... from the Raster Attribute Editor menu bar to access this dialog.
Slice Method: Click on this popup list to select one of the color slice methods described below. See Color Level Slice for more information. IHS Slice Colors assigned to rows are derived using the Intensity, Hue, Saturation (IHS) color scheme. The default Start and End colors produce a standard ROYGBIV level slice from magenta to red. RGB slice Colors assigned to rows are derived using the Red, Green, Blue (RGB) color scheme. The default Start and End colors produce a gray scale from black to white. Single Color
A single color is applied to the selected rows.
Slice Type: The range of color is divided into a number of discrete slices or colors according to one of the schemes below. By Value The number of colors is determined by dividing the number of selected rows by the number of levels entered in the “Number of levels” number field below. By Equal Areas The number of colors is determined using a histogram equalization algorithm. The maximum number of slices is entered in the “Number of levels” number field below.
Hue Variation: Click on this popup list to select one of the options described below to determine the range of hues between the Start Color and the End Color. This popup list is enabled only when IHS slice is selected. Maximal Click to provide the largest number of hues. This is like taking the long route from one color to another around the color wheel. Minimal Click to provide the smallest number of hues. This is like taking the short route from one color to another around the color wheel.
Start Color: Right-hold this color patch to select the color for the first slice. End Color: Right-hold this color patch to select the color for the last slice.
16
Colors
Number of levels: Specify the number of distinct slices to be made in the specified color range. The default is the number of rows in the file.
Apply Click to apply the selected options. Close 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 more information about using CellArrays in ERDAS IMAGINE, see the ERDAS IMAGINE Tour Guides manual.
17
Add Area Column
Add Area Column This dialog enables you to add a new column to the Raster Attributes Editor containing areas calculated from the histogram values. Select Edit | Add Area Column... from the Raster Attribute Editor menu bar to access this dialog.
Units Click on this popup list to select the type of area units to be calculated. hectares acres sqmiles
Area will be reported in hectares.
Area will be reported in acres. Area will be reported in square miles.
Name This text field displays the default column name. You may accept it by clicking OK or you may edit the name. You will not be permitted to use a column name that already exists.
OK Click to run this process with the options selected and close this dialog. 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 more information about using CellArrays in ERDAS IMAGINE, see the ERDAS IMAGINE Tour Guides manual.
18
Number Format
Number Format This dialog enables you to choose the format for displaying numeric values in the Raster Attribute Editor. There are three ways to open this dialog:
♦ Select Edit | Format... from the Raster Attribute Editor menu bar. ♦ 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 menu which displays.
♦ Click on the More... button in the Column Properties dialog of the Raster Attribute Editor. Standard Formats: Click on the format to use. It will be copied to the Custom Format field. Default Applies the default application formatting. For the Raster Attribute Editor, this is always the same as General. 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 Numeric values are displayed as whole numbers. Rounding is performed on nonintegers. 0.00 Numeric values are displayed with two decimal places even if the data type is integer. #,##0 Numbers are displayed as whole numbers with commas separating the thousands. #,##0.00 Numbers are displayed with two decimal places with commas separating the thousands. $#,##0;($#,##0) Numbers are displayed as whole dollar values with commas separating the thousands. Negative values are displayed inside parentheses. $#,##0.00;[Red]($#,##0.00) Numbers are displayed as decimal dollar values with commas separating the thousands. Negative values are displayed inside red parentheses. 0%
Numeric values are displayed as whole number percentages.
0.00% Numeric values are displayed with two decimal place percentages even if the data type is integer.
19
Number Format 0.00E+00
Numbers are displayed in scientific notation to two decimal places.
m/d/yy Values are displayed as dates in month/day/year format (12/31/93). The value is taken to be the number of seconds since 1 January 1970. d-mmmm-yy Values are displayed as dates in day-Month-year format (31-December93). The value is taken to be the number of seconds since 1 January 1970. dg mm ss N/S 37 22 N).
Values are displayed as degrees minutes seconds North or South (19
dg mm ss E/W 33 W).
Values are displayed as degrees minutes seconds East or West (41 14
hh:mm:ss
Values are displayed as hours:minutes:seconds (20:12:37).
Custom Format: This option lets you create a customized number format by entering a string of number format variables.
OK Click to apply the selected format. 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 more information about using CellArrays in ERDAS IMAGINE, see the ERDAS IMAGINE Tour Guides manual.
20
Formula
Formula This dialog enables you to create a formula which can be applied to selected rows or columns in the Raster Attribute Editor. You can either type the formula directly into the Formula text field, or construct it from the other tools in this dialog. There are three ways to open this dialog:
♦ Select Edit | Formula... from the Raster Attribute Editor menu bar. ♦ Right-hold in the header row of the column for which you want to set the number format and select Formula... from the Column Options menu which displays.
♦ Click on the More... button in the Column Properties dialog of the Raster Attribute Editor. Columns: Lists the columns which may be used in the formula. These names are used to build the expression.
Functions: Lists the operators which may be used in building an expression: row pi
Returns the current row number. The first row is 0. Provides the value of pi (3.141592...).