F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

13
F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO

Transcript of F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

Page 1: F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

F.Ochsenbein, P. Fernique [CDS]

Aladin V3 script modefor the VO

Page 2: F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

F.Ochsenbein, P. Fernique [CDS]

Why a script mode ?

An alternative to the graphical interface (ASCII An alternative to the graphical interface (ASCII console)console)

A way to let other applications control Aladin :A way to let other applications control Aladin : For specifying the starting state (applet context)For specifying the starting state (applet context) For interfacing with other applications For interfacing with other applications

(VOPlot)(VOPlot) For using Aladin as a "black-box" producing For using Aladin as a "black-box" producing

charts, images, postage stamp images...charts, images, postage stamp images...

Page 3: F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

F.Ochsenbein, P. Fernique [CDS]

Command > ?

A script example step by step…

In line help

Console

Page 4: F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

F.Ochsenbein, P. Fernique [CDS]

A generic get command..

Command> ?

get DSS.ESO(DSS2) NGC1055;get VizieR(USNO-B1) NGC1055;get SDSSDR3cat NGC1055 10';

Command> ?

get DSS.ESO(DSS2) NGC1055;get VizieR(USNO-B1) NGC1055;get SDSSDR3cat NGC1055 10';

- give access to all VO resource (via GLU registry)

- manage query parameters

Page 5: F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

F.Ochsenbein, P. Fernique [CDS]

Processing commands…

Command> ?

xmatch USNO-B1 SDSS;export XMatch* votableResult.xml votable;

Command> ?

xmatch USNO-B1 SDSS;export XMatch* votableResult.xml votable;

- CrossMatch by position

- Save result in VOTable

Page 6: F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

F.Ochsenbein, P. Fernique [CDS]

UCD manipulations…

Command> ?

filter pm { draw pm($[POS_EQ_PMRA], $[POS_EQ_PMDEC]) };

save imageResult.bmp;

Command> ?

filter pm { draw pm($[POS_EQ_PMRA], $[POS_EQ_PMDEC]) };

save imageResult.bmp;

- Draw arrows proportional to Xmatched object proper motion

- Save image and overlays

Page 7: F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

F.Ochsenbein, P. Fernique [CDS]

Multiview comparison…

filter brighter { $[PHOT*]< 17mag && (abs($[POS_EQ_PMRA])>3 || abs($[POS_EQ_PMDEC])>3) { draw } };

select A1 XMatch*;createROI 45";

modeview 9;

filter brighter { $[PHOT*]< 17mag && (abs($[POS_EQ_PMRA])>3 || abs($[POS_EQ_PMDEC])>3) { draw } };

select A1 XMatch*;createROI 45";

modeview 9;

- Extract small images of selected objects

- Compare them with multiview mode

Page 8: F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

F.Ochsenbein, P. Fernique [CDS]

Scripts in Web context

http://nedwww.ipac.caltech.edu/cgi-bin/Aladin/nph-aladin.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)

Page 9: F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

F.Ochsenbein, P. Fernique [CDS]

Sites using Aladin scripts

Page 10: F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

F.Ochsenbein, P. Fernique [CDS]

Page 11: F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

F.Ochsenbein, P. Fernique [CDS]

Aladin as a remote black-box engine

Existing implementation:Existing implementation:the Aladin RGB generator:the Aladin RGB generator: Aladin sessions are launched on a remote Aladin sessions are launched on a remote

cluster of PCscluster of PCsInputs : script commandsInputs : script commandsOutput : RGB JPEG imageOutput : RGB JPEG image

Could be integrated inCould be integrated ina workflowa workflow

Page 12: F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

F.Ochsenbein, P. Fernique [CDS]

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

Page 13: F.Ochsenbein, P. Fernique [CDS] Aladin V3 script mode for the VO.

F.Ochsenbein, P. Fernique [CDS]

Some links

Aladin site: Aladin site: http://aladin.u-http://aladin.u-strasbgstrasbg..frfr Aladin form for script launching URL edition: Aladin form for script launching URL edition:

http://aladin.u-http://aladin.u-strasbgstrasbg..frfr/java//java/nphnph-aladin.-aladin.plpl??frameframe==formform

Manual: Manual: http://aladin.u-http://aladin.u-strasbgstrasbg..frfr/java/aladin./java/aladin.pdfpdf