Now that the three beans are linked, any data read in will be available to all three. Double clicking on the ReadRasterBean will bring up a pop-up menu with two elements - 'Customise' and 'Options'. Clicking on 'Options' shows the functions that this bean can perform, including 'Open raster'. (To see the options for any Bean, double-click on its coloured rectangle, and the pop-up menu will appear).
All file reading options have red buttons, and file writing options are green, while scaling operations are cyan. The greyed-out buttons above are either under development or only for internal use at Aston!
Single-layer data reading.
'Add a layer' allows reading of raster data as
bitmaps, Vista Pro text, GRASS text files,
generic ASCII files, IDRISI text files,
GIFs and JPEGs into the dataset.
The layers added must be the same shape and size as those already present in the data set. A combination of different file types can be read, providing that their bounds and dimensions are consistent.
Multi-layer data reading.
'Open multi-layer Raster' will give you the following menu;
Of these formats, the most relevant are FLIERS serialised files. The example data is in this format.
TIP: To create your own multi-layer files, you can read in several single layers in bitmap, Vista Pro text, GRASS, ASCII, IDRISI text, GIF or JPEG, format, using the 'Add a layer' button each time. You can then write them out to a single file using the 'Create multiFile' or 'Write FLIERS file' button.
You can also add multi-layer files to an open dataset, providing that they have the same number of rows and columns, using the 'Add several layers' button.
Vector data reading.
'Add a vector point layer from ASCII data' allows a
set of ASCII columns to be read in and stored as
points which have any number of attributes.
These points can be displayed alone or overlaid on raster images in the same dataset. They can also be coloured according to their attributes.
Get the multi-layered urban dataset from here, and read it into your linked set of beans as follows.
Double click on the pink canvas to see the options menu.
Click the button 'Open multi-layer raster', specifiy a FLIERS format file and browse to the example data.
Once you have read in a layer or a file, then the name of the file should appear at the top of the pink canvas. A set of buttons also appears on the canvas, representing the data layers in this file.
Squares are layers containing spectral data
Black circles are fuzzy memberships
Green circles are verification data
Red circles are mask layers (each dataset should have a maximum of one)
Blue circles are vector data.
As a test, click on one of these buttons. It should become red, and a frame with a snapshot of that data layer and some summary statistics should appear.
This frame can be resized using the mouse, and you can clear or close it from the menu bar.
NEXT - Editing and filtering data layers