![]() Because one usually communicates with a single DS9 instance, if a query is made in scalar mode, the result is returned as a scalar, i.e.: $cmap = $dsp->colormap() There are predifined constants available for these: ON => 'on'īecause a single Image::DS9 object may communicate with multiple instances of DS9, queries may return more than one value. ![]() Some methods take boolean values these may be the strings on, off, yes, no, or the integers 1 or 0. The complete set of constants is indexed in "Constants". To prevent typos (and other unwanted sideeffects) Image::DS9 makes many of the commands and subcommands available as Perl constants - mistype these and the compiler will complain, not DS9. ArgumentsĬommands sent to DS9 are sent as strings. For more information on what the methods do, or how the arguments affect things, please consult the DS9 documentation. The documentation here tries to cover the mechanics of calling the methods. The methods in this class closely follow the XPA access points. Eventually there will be documentation spelling out how to do this. It is possible to both address more than one DS9 with a single object, as well as having multiple Image::DS9 objects communicate with their own DS9 invocations. To use this class, first construct a Image::DS9 object, and then apply its methods. Eventually these will be hidden by an elegant framework that will make life wonderful. This class is rather bare at present, providing a low level interface to the XPA access points. Rather than extol its virtues, please consult the website in "REQUIREMENTS". This class provides access to the DS9 image display and analysis program through its XPA access points.ĭS9 is a rather flexible and feature-rich image display program. $dsp = new Image::DS9( \%attrs ) DESCRIPTION Use Image::DS9 qw( :all ) # import all constants Use Image::DS9 qw( : ) # import constants from group region load w3_nh3.reg -contour load w34_scuba.Image::DS9 - interface to the DS9 image display and analysis program SYNOPSIS use Image::DS9 file l134_1_coadd_h2omaser.fits -region load w34_gbttargets_handselected.reg \ region load w3_nh3.reg -contour load w34_n wcs icrs red 1 \ frame new -file l133_1_coadd_h2omaser.fits -region load w34_gbttargets_handselected.reg \ You can split the command into multipleĭs9 -mosaic wcs scuba*.fits -region load w34_gbttargets_handselected.reg -region load w3_nh3.reg \ For the contour file, you must specify coordinate type (wcs)Īnd coordinate system (icrs, fk5, galactic.)ĭs9 *.fits -region load file.reg -contour load n wcs icrs red 1 An example gigantic command line that saves me ~30 mouse clicks. They will be aligned to the last image loaded.ĭs9 *.fits -match frames wcs It can be useful to load region and contour files too. You can open multiple files from the command line with commands like:ĭs9 -mosaic wcs *.fits You can then open other images by specifying a new frame (only once)ĭs9 -mosaic wcs set1*.fits -frame new -file file2.fits It is also possible to automatically align the images. Option xpaset -p ds9 view colorbar no or by selecting the option in the 'view' menu I believe this is a glitch in DS9 that will likely be fixed in the next release.ĮDIT 6/23/08: In the latest release(s), you can remove the colorbar using the command line The resulting image is mostly satisfactory exceptįor the annoying presence of the colorbar, which currently cannot be removed except by It will probablyīe necessary to modify the locations of the labels as well.įinally, to save as a postscript, Print the file to a postscript file instead of saving it. Of each element of the coordinate grid and remove the axes, tickmarks, etc. Type menu that allows you to change to Publication format. Note that I've used inverted colors so that the image will print nicely on white paper. Select Coordinate Grid, then Coordinate Grid Parameters. Coordinate Grids It is possible to make publication-quality images using DS9.
0 Comments
Leave a Reply. |