Dear Colleagues,
I am pleased to announce that version 0.3.8 of SLxpa is now available at
http://space.mit.edu/cxc/software/slang/modules/xpa
SLxpa is the standalone S-Lang wrapper for the XPA communications library.
It provides an importable module and associated .sl script which make
XPA callable directly from S-Lang scripts.
SLxpa also bundles DS9 helper scripts which make it very easy to work
with SAOds9 images directly as S-Lang numerical arrays (e.g. to perform
arbtrary mathematical transformations upon them), dynamically modify
image WCS information (and even includes a graphical WCS editor).
By merging the numerical strength and extensibility of S-Lang with the
imaging capabilities of SAOds9, augmenting the power of each, these new
scripts may make a compelling addition to your image analysis toolset.
Included below is a small sampling of the new capabilities offered. For
simplicity they're given in the context of ISIS, but additional examples
using ChIPS are also given online and in the documentation.
Regards,
Michael S. Noble
----------------------------------------------------------------------------
Example 1:
isis> Isis_Append_Semicolon = 1; % auto-terminate each command
isis> require("ds9") % load DS9 package
isis> ds9_view( [ 1 : 512 * 512] )
Purpose:
After preliminaries, dynamically fabricate a 512x512 image and
visualize within DS9 (launching it if necessary), incurring zero
FITS I/O or temporary file litter overhead
Example 2:
isis> ds9_put_wcs(256, 512, 2)
Purpose:
Attach a WCS transform of (CRPIX1 = 256, CRVAL1 = 512, CDELT1 = 2)
to the first axis of the image generated above
Example 3:
isis> ds9_put_file("image.fits") % load image from file
isis> image = ds9_get_array()
isis> multiplot([1,1]) % subdivide ISIS window
isis> plot_image(image) % ISIS image plot cmd
isis> hist = sum(image, 0) % summing Y along X
isis> plot( [ 1: length(image[0,*]) ], hist) % ISIS scatter plot cmd
Purpose:
Retrieve DS9 image into 2D S-Lang array; draw the image and
underplot its histogram, both in single ISIS window
This archive was generated by hypermail 2b29 : Wed May 15 2013 - 01:00:12 EDT