Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1367
News FAQ
Search Home


next up previous contents
Up: Single Dish Calibration and Imaging (SDCI) Previous: Plans

Summary of demonstration.

This is a brief summary of the demonstration of the OTF gridder that was presented at the AIPS++ review.

The demonstration consists of the following glish clients:

The gridder event flow is indicated in the following pseudo-glish code:

	whenever gridder->progress do
	    send otfClient->progress([percent=$value * 100])

	whenever gridder->grid_result, gridder->imageSaved do
	    send imager->ImageFile([name=$value.file, plane=64])

	whenever otfClient->suspend, otfClient->getImage do
	    send gridder->[$name]($value)

	whenever imager->pixel_result do
	    send plotter->xy_plot($value)

The demonstration begins by starting up glish and initializing the four glish clients described above (accomplished by including a glish script).

 	include ``SDGridder.g''
The inputs are retrieved from a mosaic window (although they could also be set from the command line - this was simply one example of some early thoughts on how inputs might be set and passed to an application).
 	inputs := mosaic_inputs(``SDGridder'')
This glish record, inputs, now contains the inputs for the gridder client. It is passed on to the gridder through a glish function which generates a ``grid'' event (after some translation of the inputs record to set the variable types correctly).
SDGridder(inputs)
At this point, the otfClient window appears and the status bar shows zero progress. The gridder reads the data and begins gridding according to the inputs. As the gridding progresses, the status bar in otfClient shows the value associated with the most recent ``progress'' event generated by the gridder.

At some point the user wishes to see an intermediate image (i.e., before all the data have been gridded). The user clicks on the ``Get Image'' button in the otfClient, which generates a ``getImage'' event, which is passed to the gridder. At a time convenient for the gridder, the intermediate image is written to disk and gridding resumes. The gridder generates an ``imageSaved'' event, which is translated to an ``ImageFile'' even which is passed to the imager client. The intermediate image is displayed. The user can switch to ``spectrum'' mode in the imager in order to display the values in the third dimension of the cube at a specific xy pixel.


next up previous contents
Up: Single Dish Calibration and Imaging (SDCI) Previous: Plans   Contents
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-03-28