You are on page 1of 13

Aladin V3 script mode

for the VO

F.Ochsenbein, P. Fernique [CDS]

Why a script mode ?

An alternative to the graphical interface (ASCII


console)
A way to let other applications control Aladin :
For specifying the starting state (applet context)
For interfacing with other applications
(VOPlot)
For using Aladin as a "black-box" producing
charts, images, postage stamp images...
F.Ochsenbein, P. Fer

A script example step by


step
In line help
Console
Command > ?

F.Ochsenbein, P. Fer

A generic get command..


Command>
Command>??
get
getDSS.ESO(DSS2)
DSS.ESO(DSS2)NGC1055;
NGC1055;
get
getVizieR(USNO-B1)
VizieR(USNO-B1)NGC1055;
NGC1055;
get
getSDSSDR3cat
SDSSDR3catNGC1055
NGC105510';
10';

- give access to all


VO resource (via GLU
registry)
- manage query
parameters
F.Ochsenbein, P. Fer

Processing commands
Command>
Command>??
xmatch
xmatchUSNO-B1
USNO-B1SDSS;
SDSS;
export
exportXMatch*
XMatch*votableResult.xml
votableResult.xmlvotable;
votable;

- CrossMatch by
position
- Save result in
VOTable
F.Ochsenbein, P. Fer

UCD manipulations
Command>
Command>??
filter
filterpm
pm{{draw
drawpm($[POS_EQ_PMRA],
pm($[POS_EQ_PMRA],$$
[POS_EQ_PMDEC])
[POS_EQ_PMDEC])};};
save
saveimageResult.bmp;
imageResult.bmp;

- Draw arrows
proportional to
Xmatched object
proper motion
- Save image and
overlays

F.Ochsenbein, P. Fer

Multiview comparison
filter
filterbrighter
brighter{{$[PHOT*]<
$[PHOT*]<17mag
17mag&&
&&
(abs($[POS_EQ_PMRA])>3
(abs($[POS_EQ_PMRA])>3||||
abs($[POS_EQ_PMDEC])>3)
abs($[POS_EQ_PMDEC])>3){{draw
draw}}};};
select
selectA1
A1XMatch*;
XMatch*;
createROI
createROI45";
45";
modeview
modeview9;9;

- Extract small images


of selected objects
- Compare them with
multiview mode
F.Ochsenbein, P. Fer

Scripts in Web context

http://nedwww.ipac.caltech.edu/cgi-bin/Aladin/nphaladin.pl? script=get+MyData(http://nedwww.ipac.
caltech.edu/dss1B2/Bb/MESSIER_104.I.IIIaJ.dss1.
fits.gz);sync;get+NED;get+VizieR(USNO2);
get+VizieR(2MASS);get+VizieR(NVSS)

F.Ochsenbein, P. Fer

Sites using Aladin scripts

F.Ochsenbein, P. Fer

F.Ochsenbein, P. Fer

Aladin as a remote black-box engine


Existing implementation:
the Aladin RGB generator:
Aladin sessions are launched on a remote
cluster of PCs
Inputs : script commands
Output : RGB JPEG image
Could be integrated in
a workflow

F.Ochsenbein, P. Fer

The demo in live

http://vizier.nao.ac.jp/viz-bin/nph-aladin.pl?frame=launching&script=get%20DSS.ESO%28DSS2%29%20NGC1055%3bget%20VizieR%28USNO-B1%29%20NGC1055%3bget
%20SDSSDR3cat%20NGC1055%2010'%3bsync%3bxmatch%20USNO-B1%20SDSS%3bhide%20USNO-B1%20SDSS%3bpause%206%3bfilter%20pm%20%7b%20draw
%20pm%28%24%5bPOS_EQ_PMRA%5d%2c%20%24%5bPOS_EQ_PMDEC%5d%29%20%7d%3bfilter%20pm%20on%3bpause%206%3bfilter%20pm%20off%3bfilter
%20brighter%20%7b%20%24%5bPHOT%2a%5d%3c%2017mag%20%26%26%20%28abs%28%24%5bPOS_EQ_PMRA%5d%29%3e3%20%7c%7c%20abs
%28%24%5bPOS_EQ_PMDEC%5d%29%3e3%29%20%7b%20draw%20%7d%20%7d%3bfilter%20brighter%20on%3bsync%3bmodeview%209%3bselect%20A1%20XMatch
%2a%3bcreateROI%2045%22%3b

F.Ochsenbein, P. Fer

Some links
Aladin site: http://aladin.u-strasbg.fr
Aladin form for script launching URL edition:
http://aladin.u-strasbg.fr/java/nph-aladin.pl?
frame=form
Manual: http://aladin.u-strasbg.fr/java/aladin.
pdf

F.Ochsenbein, P. Fer

You might also like