Next: Software Systems and Tools
Up: User Interfaces and Visualization
Previous: XSKYMAP 2: A Multi-Catalog Visualization Facility
Table of Contents - Subject Index - Author Index - Search - PS reprint - PDF reprint

Lytle, D. M., Stobie, E. B., Ferro, A. J., & Barg, M. I. 1999, in ASP Conf. Ser., Vol. 172, Astronomical Data Analysis Software and Systems VIII, eds. D. M. Mehringer, R. L. Plante, & D. A. Roberts (San Francisco: ASP), 445

Image Display Paradigm #3

Dyer Lytle
Lunar and Planetary Laboratory, University of Arizona, Tucson, AZ 85721

Elizabeth Stobie, Anthony Ferro, Irene Barg
Steward Observatory, University of Arizona, Tucson, AZ 85721

Abstract:

Image Display Paradigm #3 (IDP3) is an IDL (Interactive Data Language) package developed by the NICMOS Software Group at the University of Arizona. Its original purpose was to provide a versatile graphics tool for PSF subtraction with NICMOS data. However, with a clever structured design IDP3 became a unique and very powerful image analysis tool. In this presentation we explore IDP3, its development and its features.

1. Introduction

IDP3 is a tool for manipulating data images that employs a powerful but easy-to-use graphical user interface with support for FITS and HDF input formats. It allows the user to work with a collection of images and display one or more in a graphics window simultaneously. Images may be individually moved, scaled, and rotated to bring features into registration. Each image may be subtracted from, added to, or combined with the composite display using one of several other functions (divide, multiply, XOR, etc). IDP3 provides a region-of-interest pop-up tool for intensive examination of sub-regions of the main display. There are cross-section plots, masks, surface plots, statistics, spreadsheet displays, radial profiles, and other tools at the user's disposal. Combination or individually registered images may be saved to FITS files.

2. Features of IDP3

3. Design and philosophy

The evolution of IDP3 was driven by a need for an interactive tool for subtracting point spread functions (PSFs) from data taken with the space telescope instrument, NICMOS. This evolutionary process had the following steps.

4. Internal structure

Structures vs. COMMON Statements
In IDP3, an attempt was made to write the program without the use of common statements. This requirement was satisfied although it proved unnecessary. Common statements cause problems when multiple copies of the same program are run from inside a given instance of IDL. However, because named structures were used, multiple copies of IDP3 should not be run together. To make IDP3 truly self-independent, the named structures should be replaced with anonymous structures, that is, when structures are allocated, they should be inline in the program rather than being referenced from an external file, i.e., idp3_structs. This would make the code look a bit sloppier (in our opinion) but would allow the user to run multiple copies of IDP3 simultaneously from a single IDL session without unwanted interactions between copies.
Structure and Pointer usage
The first parts of the program written were the data structures. Pointers were used to allow easier memory management and more elegant structures and information passing.
Root structure, Updates, Coordinating windows
With a number of interactive windows on the screen, the event handlers for these windows must coordinate in such a way as to keep the internal data up to date and valid at all times.
Active windows, Automatic updates
Some of the windows on the screen display current internal data values. When any of this internal data changes, the displayed values and/or displayed 1D and 2D plots must be automatically updated to reflect these changes.
Flags and Signals
The various data structures in the program contain a variety of variables used to pass current values of flags around inside the program. Some of these flags can be thought of as signals to other parts of the program.
Event handling
Various event handlers handle events from various windows. Sometimes, events from a particular widget must be turned off to allow another subroutine to turn on and interpret events for that widget. This is a way of overloading events for a particular widget.

5. Conclusions and Future Plans

The time invested in the software engineering of IDP3 was time very well spent. Advancements in IDL Version 5, particularly the support for data pointers, made it possible to develop a very solid but flexible framework for IDP3 that easily facilitates future enhancement.

IDP3 has been a huge success with members of the NICMOS Project and continues to be enhanced according to user requests. It may also be evolved as part of a suite of analysis routines for other NASA missions including the Imaging Science Subsystem of the Cassini Mission to Saturn.

IDP3 is available from the NICMOS website at the University of Arizona.

6. Appendix A

LYTLE'S GENERAL PRINCIPLES OF INTERACTIVITY

I
User Help

II
General computer display layout considerations

III
Active window updates

IV
`Modes' considered harmful

V
Pull-down menu buttons vs display screen real estate

VI
Grey out buttons when their use would be inappropriate.

VII
Use `bulletin board' bases for differentiating grouped functions.

VIII
Implement `user preference' files when appropriate.

IX
Do not build a GUI that requires changes to the user's .Xdefaults file.

X
Catch errors and report them rather than allowing the program to bomb.


Footnotes

... IDL1
IDL is the trademark of Research Systems, Inc.

© Copyright 1999 Astronomical Society of the Pacific, 390 Ashton Avenue, San Francisco, California 94112, USA
Next: Software Systems and Tools
Up: User Interfaces and Visualization
Previous: XSKYMAP 2: A Multi-Catalog Visualization Facility
Table of Contents - Subject Index - Author Index - Search - PS reprint - PDF reprint

adass@ncsa.uiuc.edu