| Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
| Version 1.9 Build 803 |
|
If you used the sgrb2n images in the example above, you'll notice that both images remained on channel 61 during blink mode. To look at a different channel, you could move back to normal mode, select a different channel, and return to blink mode to view both images on the new channel. A shortcut command for this is:
an.gotoz(67); # change to channel 67, while still in 'blink' mode.
There is no way for the animator to tell the various images to display different channels; it has only a single frame number setting, which is communicated to all the images. There are several ways around this limitation, however.
If your images don't have a Stokes axis, it's easy to give them one.
include 'image.g' # (probably already included by now).
im := image('nostokes.im'); # use the file name of your image here.
imst := im.adddegaxes(stokes='I'); # add Stokes axis temporarily.
ddst := dv.loaddata(imst, 'raster'); # load the new image tool
mdp.register(ddst); # and register it on the displaypanel.
You can save that stokes axis permanently if you wish, by adding an outfile parameter in the adddegaxes command above:
imst := im.adddegaxes(stokes='I', outfile='hasstokes.im');
If your images cover a similar portion of the sky but have different projections or extents on it, you can view them both by regridding one to the projection and shape of the other, as follows:
im1 := image('first.im'); # use the file names of your
im2 := image('second.im'); # images here.
cs1 := im1.coordsys(); # coordinate system of the first image.
im2r:= im2.regrid(outfile='second-regrid.im', csys=cs1, shape=im1.shape());
im2r contains the second image regridded to the projection and shape of the first image. You can omit the outfile parameter if you don't need to save the regridded image permanently. You can now display and blink between the images im1 and im2r.
dd1 := dv.loaddata(im1, 'raster'); mdp.register(dd1); dd2 := dv.loaddata(im2r, 'raster'); mdp.register(dd2);
Different images can always be displayed 'side-by-side' in completely separate DisplayPanel windows as well. In that case the the images need have nothing in common at all. There is no zoom synchronization or other 'linkage' between different DisplayDatas in the different panels, however.
The first item under the 'File' menu in one panel will bring up a new panel; registration of DisplayDatas, zooming, and animation can be controlled separately in each panel.