The full Aladin manual is available at this following address:
http://aladin.u-strasbg.fr/java/AladinManual6.pdf
This FAQ version corresponds to the Aladin release 7.5
In the document, the modifications from the 11th version
are written in green colour and marked by *,
Additions from 11th version are in brown and marked by **
Contents:
1 ** WHAT'S NEW WITH ALADIN
Aladin 7.5 - July 2012
- HEALPix all-sky new features:
- Better performances (less RAM - 64MB), faster display)
- "Build your own sky" facility (more...)
- Stack control more adaptated to allsky mode
- Crop full resolution improved (bilinear, faster)
- Progressive catalogue density control
- Multi-Order Coverage Map (MOC) support (more...)
- HTTP URL direct access
- JSAMP Web profile support
- DS9 region definition support (as simple Aladin script commands) (more...)
- PDS image support (more...)
- Colored FITS cubes support (more...)
- HTTPS connection support
- ALMA footprint utility (Server selector => FOV)
- TSV,CSV improvements (notably CSV Excel and IPAC-TBL support)
- Pixel extraction tool as table (more...)
- Bitpix image re-encoding tool (more...)
- Overlay color map tool (more...)
- Free rotation in allsky mode (more...)
- New coordinate frames: B1900, B1875, XY image
- New projections (Mollweide, SIP-TAN)
- Properties of graphical overlays (Prop button)
- Footprint STS-S definition support
- Print improvements (automatic scale, multiviews...)
- "macro" script command to launch a macro from a script
- VOTable 1.2 STC coordinate reference support ("Referencing STC in VOTable" - IVOA Note 2010-06-18)
Aladin 7 (All sky) - November 2010 - (Quick overview...)
- All sky mode: Zoom and pan through surveys, catalogs, HEALPix maps (more...)
- HEALPix: Support for HEALPix FITs maps, multifield, polarisation...
- GPL: Distributed under GPL V3 licence (sources available)
- Bookmarks: Store and reuse your usual jobs
- Crop: Crop tool for images or HEALPix maps
- Phot: Phot tool for local source extractions
- Tag: Label tag tool for annotating views
- Scatter plots: For easy catalog measurement analysis
- Tables: Splitting, merging, metadata edition...
- FITS 64 bits: Support for FITS 64 bits integer images...
- VOTable 1.2: Support for VOTable 1.2 including coordinate system frame support
- Calibrated PNG: AVM and FITS keywords support in PNG images for reading and writting astrometrical calibrated colored images
- Colormap: Simultaneous adjustement of several images
- Console: New console managing history
- Script: Auto-synchronization, zoom angular parameter (zoom 10arcmin), overlay control (setconf overlay=NE,label...), convolution kernel (kernel=gauss(fwhm=10arcmin))
- Translation: Spanish (Spanish VO), Japanese (M.Ohishi)
Aladin 6 - July 2009 - (Quick overview...)
- Undergraduate mode: Aladin simplified interface for undergraduate purposes (more...)
- Calibrated JPEG: AVM and FITS keywords support in JPEG images for reading and writting astrometrical calibrated colored images
- Dynamical histogram: Interactive histogram for browsing current measurements (more...)
- Full screen: Full screen support and preview window support
- RGB and pixel computations: supported for non-calibrated images
- Undo position list:for going back to the previous locations
- Simbad fast access: fast Simbad access allowing very large queries
- VizieR whole catalog: new checkbox in the VizieR forms for downloading whole catalogs
- Photometry tools: tools for simple photometry measurements (by circles or polygons) (more...)
- SAMP compatibility: Support for the new PLASTIC standard called SAMP allowing interoperability between several VO applications (more...)
- FITS Rice: Support for FITS RICE compression
- "get" script: get script improvements allowing not positional parameters and SIA/SSA filtering (more...)
- FoV rotation: FOV rotation center control (more...)
- Translation: Italian (G.Iafrate), German (F.Freistetter), Persian (A.Sedaghatkish)
Aladin 5 - february 2008 - (Quick overview...)
- Swing Look&Feel: Swing GUI instead of AWT meaning a menu bar, more powerful tables, widgets, ...
- Huge images: No RAM limit => ex: 64000x64000 pixels loaded in 35s (more...)
- Match scales and orientation: Automatical scale and orientation adjustement for easy comparison
- Image transparency: Image overlay support by transparency (more...)
- FoV: More FoVs (WIRCAM, ESPADON, full HST, INT, FORS1 & FORS2, ISAAC, VIMOS,...), remotly updated, displayable by transparency, user addition support (XML file)... (more...)
- Source measurements: more powerful table (tags, sort, column management, search...)
- Pixel control: Colormap controler improvements (faster, more colormaps...)
- Pixel computation: Image pixel computation support (+,-,*,/,norm,conv) (more...)
- Script extension: Plane name used as a variable (ex: foo = ESO - STScI), set command extensions, ...
- Translation: Russian translation (N.Samus), traditional Chinese translation (Chi-Hung Yan)
- SSAP1.0: Support for SSAP 1.0 standard
Aladin 4 - February 2007 - (Quick overview...)
- Big image support: ex: 20000x20000x64bits with a 1.5 GB RAM machine
- FITS cube support: for displaying cubes
- EPS output support: for publishing
- Aladin plugins: extend Aladin by yourself (more...)
- PLASTIC integration: allowing interoperability between other PLASTIC compatible application (VOSpec, TOPcat, VisIVO...) (more...)
- IDL library: for controlling Aladin from IDL (more...)
- Macros: useful for repeating a sequence of
actions (more...)
- Ecliptic: Ecliptic coordinate frame support
- WCS keywords in JPEG: for JPEG astrometrical solutions
- OS Drag & Drop: for easily importing data from the OS desktop into Aladin panels
- Mouse wheel support: for zooming (more...).
- Pan tool: for panning, especially in large images (more...)
- FITS XY linear support: for displaying not only the sky images (ex: solar images...)
- Clickable maps: for easily creating Web clickable maps (more...).
- CADC: Aladin offers access to the CADC (Canadian Astronomical Data Center)
- Chinese language: Chinese translation
Aladin 3.7 - August 2006
- Multi-language support: currently english and french (see "User preferences" menu)
- Xmatch support for ellipses: useful to take into account errors on position or cross-match some extended sources
- Image mosaic: as an alternative to the blink feature ("assoc" button)
- Multiple FITS Extension support: images and/or FITS ASCII or binary tables
- Full VOTable support: inline base64 or href stream fits or binary
- Support for Character-Separated-Value catalogs: CSV -> Tab, pipe, semi-column, comma, one or several white spaces, S-Extractor output format) and not only Tab-Separated-Value catalogs (TSV) (See "User preferences" menu)
- status and set script command extension: shape, color, folder, view status
- Stack folder local scope property: to avoid catalog projection outside the folder
- FITS RGB images: RGB images saved and loaded as FITS cubes
- Miscellaneous: RGB image FlipFlop function - RGBdiff script command - Information in "frame info" copy-and-pastable - Overlay tags use centroid algorithm - Stack width can be modified - "allcolumns" parameter for the "get VizieR()" script command
Aladin 3.5 - August 2005
- User preferences: Allows users to memorize some parameters such as the default browser (Unix version), the default registry site...
- All VO button: Allows access simultaneously several data servers automatically discovered via the International Virtual Observatory registry.
- SkyBOT: Aladin offers access to solar system object ephemeris data base maintained by IMCCE (Paris).
- VOSpec: For spectral data, Aladin can launch VOSpec tool (ESAC/Vilspa development).
- Field of view improvements: Can now be rolled with the mouse and loaded via an XML file.
- VOApp interface: Aladin implements an extension of
the ExtApp JAVA interface, called VOApp (managing
images, FoVs and Tables).
- MAST: Aladin offers access to MAST images (STScI)
Aladin 3.0 (Multiview) - April 2005
- MultiView, multiProjection: splits the main Aladin
frame in 2, 4, 9 or 16 panels in order to display simultaneously
several images and catalogues overlays. Also, Aladin V3 offers
zooming synchronization functions associated to this new multiview
mode.
- Resampling: recomputes a pixel image according to another image astrometric calibration.
- Blinking: builds on the fly image sequences (slow movies)
- Full pixel access: full pixel manipulation and not only 8 bits
- GIF, JPEG and PNG support: compatibility with common image formats as input.
- Scaling functions: log, sqrt, linear, pow2 functions for better pixel contrasts
- Cut graph: along any segment
- Region Of Interest generator: automatically builds small views around interesting catalogue objects.
- Cross match algorithm: for better object catalogue analysis
- Catalogue column generator: allows you to compute new catalogue columns via algebraic expressions.
- Extended script commands and new console facility: to support new Aladin V3 functions
- Grid algorithm: improves grid drawing in any coordinate frame
- Demo trace mode: robot mode for "show you demonstrations"
- IRAS/IRIS: Aladin image server provides IRAS/IRIS images.
- SDSS: Aladin offers access to SDSS (Sloan Digital Sky Survey)
- Signed applet: Aladin is now a certified code. It means that the previous restricted functions (save, load, print...) are now allowed in applet mode.
- HTTP authentication: Aladin supports HTTP data authentication scheme (RFC 2617) for restricted access data.
Aladin 2.0 - November 2003
- Meta data representation: shows image data server
results either in list representation or in tree representation,
and provides more meta information on images (FoV, available
codings...)
- IDHA and SIA compatibility: allows you to integrate in Aladin IDHA or SIA image servers.
- ExtApp interface: Aladin can interact with external JAVA applications such as VOplot (VO-India) by a simple JAVA interface (see below)
- Autocut enhancement: allows you to reload the original image pixels in order to re-cut the image dynamic.
- Filter popup menu: helps you to write a filter by providing current column names, UCDs syntax...
- Autoscan user directory: creates a meta data representation from a user directory.
- Manual catalogue reduction: allows you to calibrate a catalogue without coordinates.
Aladin 1.4 - January 2003
- Object filters: allows you to control object overlays (shape, colour, size) according to object measurements.
- Manual astrometric reduction: allows you to recalibrate the images astrometry.
- Plane stack: unlimited number of planes - hierarchical representation by folders.
- Popup menus: frame view popup menu and stack popup menu for a more flexible feature access.
- Megacam FoV: Field of view of the MEGACAM instrument on CFH telescope.
Aladin 1.3 - June 2002
- RGB images: allows you to create an RGB image. An RGB image is a composed colour image built from three images.
- Contours: allows you to draw isocontours ou of a selected image.
- Links to original images: provides a HTML page with links to the original images loaded in Aladin applet or standalone.
- Splittable interface: Allows you to set the object information in an independent window .
- Flip/flop feature: Allows you to inverse pixel images (top/bottom or left/right) and their associated astrometric reduction
- Arrow key control: allows you to focus the colour mapping and the wen position not only with the mouse but also with the arrow keys.
- LEDA access: Aladin offers access to LEDA (Lyon-Meudon Extragalactic Database).
- FIRST and NVSS access: Aladin offers access to radio images from NRAO.
Aladin 1.2 - December 2001
- 2MASS access: Aladin image server can provide 2MASS images.
- SkyView, SUPERCosmos, DSS mirrors sites: Aladin offers new access to data servers.
- Script mode: Aladin can be controlled by command lines.
This method can be a way both to work with Aladin STANDALONE in a batch mode or to pre-configure Aladin APPLET (see script section).
- The manual: in addition to this FAQ, a Aladin manual is available.
- blinking sources: The current source (under the mouse) is blinking to help you see it more easily.
- Low resolution: Aladin image server can provide DSS images in low resolution. So, three resolution are available: the PLATE view (about 5x5 degrees), the LOW resolution (about 1.5x1.5 degrees) and the FULL resolution (about 10x10 arcmin).
- Field of View feature: It is possible to overlay the field of view of some major instruments (currently: CFH12K camera, XMM instruments and WFPC2-HST camera). Rotation of the field can be monitored from the 'Prop.' window.
- Scale plane: on the top of the plane stack, you find a new kind of plane: the scale plane. This plane contains three additional things that you can display on the current view:
- the scale: a small line gives the scale of the view;
- the coordinate grid (for constant RA and DEC values);
- the target: a large cross (+) indicates the object
or position used as centre in the initial query.
- shortcut commands: when you click in the rectangle
indicating the current position (just below the menu), you can
submit a "shortcut command" allowing you to query directly data
servers. See the corresponding section.
- Coordinate manipulations: to visualize the location
of a specific object or position in the current view, you can
simply click in the rectangle indicating the position and type
the coordinates (or Simbad identifier). After pressing the
'RETURN' key, the current target (large +) will move at the
corresponding position in the view. Also if you click on the
view, the corresponding position will be automatically memorized
in the position rectangle. Move the cursor in the position
rectangle to retrieve this position and possibly cut-and-paste
into another application.
- Aladin wink: click on the eye at the top of the plane
stack to switch on/off the overlay planes.
- Click-and-drag in the measurement window: you can
scroll up/down/left/right the contents of the measurement window
(at the bottom of the Aladin Interface) just by clicking-and-dragging
on it. It allows you to consult more easily long lines and long
lists.
- Additional servers: with the Standalone version,
users can define their own servers (for images or data). See the
corresponding section.
2 WHAT IS ALADIN?
2.1 What is Aladin ?
Aladin is an interactive software sky atlas
allowing the user to visualize digitized astronomical images,
superimpose entries from astronomical catalogues or databases,
and interactively access related data and information
from the
Simbad database, the
VizieR
service and other archives for all known
sources in the field.
Created in 1999, Aladin has become a widely-used VO tool capable of addressing challenges such as locating data of interest, accessing and exploring distributed datasets, visualizing multi-wavelength data. Compliance with existing or emerging VO standards, interconnection with other visualisation or analysis tools, ability to easily compare heterogeneous data are key topics allowing Aladin to be a powerful data exploration and integration tool as well as a science enabler.
Aladin is developed and maintained by the Centre de Données astronomiques de Strasbourg (CDS).
The Aladin manager is Pierre Fernique
Authors:
Contributors:
- François Ochsenbein [CDS]: Coordinate manipulation
- André Schaaff [CDS]: VizieR access, VOTable/XML parsing
- Caroline Bot & Mark Allen [CDS] & Daniel Durand [CADC]: Tests and Documentation
- Thomas Keller & Jean-Yves Hangouet [Observatoire de Strasbourg]: Hardware management
Other contributions:
- M.Taylor [Bristol University] : JSAMP libraries
- M.Reinecke [MPA] & W.O'Mullane [ESAC]: HEALPix library
- M.Ohishi: Japanese translation
- Spanish VO: Spanish translation
- F.Freistetter: German translation
- G.Iafrate: Italian translation
- N.Samus: Russian translation
- A.Sedaghatkish: Persian translation
- Chi-Yung Yan: Traditional chinese translation
- C.Cui: Simplified chinese translation
- T.Donalson [STScI]: HST FoV
- P.Grosbol [ESO]: IQE original C code
- R.Savalle & Chi-Hung Yan [CFH]: CFHT FoVs
- T.McGlynn [HEASARC]: Colormap adjustment original JAVA code
- T.West: BMP writter original JAVA code
- R.White & P.Dowler [CADC]: Hdecomp original C code and JAVA code
Copyright:
- (c) UDS/CNRS 1999-2010 - distributed under GPL V3
- Portions of the code (outreach mode)) have been developed in the framework of EuroVO AIDA project (2008-2010).
- Portions of the code (FoV advanced integration, Fits cubes, Xmatcher by ellipses, Plastic integration)) have been developed in the framework of EuroVO VOTech project (2005-2008).
- Portions of the code (contours, filters, dataTree, crossmatch, column calculator) have been developed in the framework of the Astrophysical Virtual Observatory (AVO), an EC RTD project 2002-2004
- The RGB feature has been developed in the framework of the IDHA project (ACI GRID of the French Ministère de la Recherche).
2.2 Who is using Aladin?
Aladin is using by professional astronomers for doing their science.
Here the Aladin citation history from ADS.
In addition of professional astronomers and amateurs, Aladin is also incorporated in many astronomical projects and courses.
Here a non-exhaustive list:
Institutes:
- IA2 - INAF-OATs - Italy - 2008
- CAI - Obs de Paris - France - 2007
- IMCCE - Institut de Mécanique céleste et de calcul des éphémérides - France - 2006
- BDB - Base de données des &étoiles doubles et multiples de Besançon - France
- ESO archive - Deutschland - 2005
- IDA (ISO archive), IXSA (XMM archive) ESAC/ESA - Spain - 2005
- MAST - STScI/NASA - Us - 2005
- LEDAS - Leicester Database and Archive Service - United Kingdom - 2004
- CADC - Canada - 2002
- QSO - CFH - Hawaii - 2001
- NED/IPAC - NASA - Us - 2000
Projects:
Softwares:
- SCISOFT - Scisoft VII - An Astronomical Software Collection - ESO - Deutschland - 2007
- ITVO - Italian Theoretical Virtual Observatory - INAF-OATs - Italy - 2007
- APT - The HST Proposal Tool - STScI/NASA - Us - 2006
- Octet - Observation Catalog Exploration Tools - CVO - Canada - 2006
- SAADA tutorial - Strasbourg University - France - 2006
- VOPlot - VO-India - 2D astronomical data plotter - VOIndia - India - 2004
- AVO prototype - the Astronomical Virtual Observatory prototype - European project - ESO - 2002
- Astro-Aladin - Perl packaging for using Aladin as a black box - eStar - 2003
Courses & astronomical tutorials:
Others:
2.3 * Which astronomical data are available via Aladin?
First of all, you can use your own data images (in FITS, JPEG, GIF, PNG), catalogues (FITS, VOTable, Tab-Separated-Value (TSV), Character-Separated-Value (CSV),
IPAC-TBL or simple ASCII tables (aligned columns)),
or all sky maps (HEALPix FITS maps) via the menu "File -> Open local file" or on the command line (standalone mode) as one argument or also via the script command "load".
In addition, Aladin offers you an access to most of the astronomical servers over the world and now to the Virtual Observatory servers (VO).
- All sky surveys (images, catalogs, density maps):
Aladin 7 provides access to all sky image surveys with the capability to zoom and pan on any regions ("a la Google Earth"). These surveys are provided in color (ex: DSS colored), or in 8 bits pixel values (ex: IRAS, GLIMPSE) or even in true pixel values (ex: SHASSA).
Several catalogs and density maps are also available in this all sky mode (ex: Simbad).
The list of available surveys is continuously updated. See details via the Aladin menu "File -> All sky" or by opening the tab "All sky" in the "server form".
These "all sky" surveys are reprocessed and distributed by the Centre de Données astronomiques de Strasbourg (CDS).
- Aladin image server:
Aladin provides direct access to GLIMPSE images from Spitzer program, IRAS images from the IRIS reprocessing (Canadian Institute for Theoretical Astrophysics and l'Institut d'Astrophysique Spatiale), the images Two Micron All Sky Survey (2MASS) from the University of Massachusetts and IPAC (JPL/Caltech), the images of the Space Telescopes Science Institute Digital Sky Survey (DSS-I, DSS-II), with complete sky coverage, as well as an ensemble of higher resolution images (ESO-R and SERC plates) digitized at the MAMA facility in Paris.
The Aladin image server is developed and maintained by the Centre de Données astronomiques de Strasbourg (CDS).
- Simbad:
The Simbad astronomical database provides basic metadata, cross-identifications and bibliography for published astronomical objects outside the solar system. It contains about 14,000,000 identifiers for 4,900,000 distinct astronomical objects; 250,000 bibliographical references extracted from about 60 journals. It is continuously updated.
Simbad is developed and maintained by the Centre de Données astronomiques de Strasbourg (CDS).
The Simbad home page is http://simbad.u-strasbg.fr/
- VizieR:
VizieR is a data bank of more than 19,125 published astronomical
catalogues and tables. The standard way to query VizieR is to select a catalogue,
and then to apply constraints on the chosen catalogue,
such as position in the sky close to a target
position, or value of some columns in a given range, etc.
A specific query mechanism has been built in the framework of Aladin in order to find out the relevant catalogues for a given area of the sky, and to visualize the location of individual objects on the sky.
VizieR is developed and maintained by the Centre de Données astronomiques de Strasbourg (CDS).
The VizieR home is http://vizier.u-strasbg.fr/
- NED:
NED is the NASA/IPAC Extragalactic Database.
Is a master list of extragalactic objects for which cross-identifications of names have been established with
accurate positions and redshifts as well as other metadata. NED is also compiling any relevant bibliographic references as well as any scientific abstract on extragalactic astronomy. Detailed and referenced photometry, position, and redshift data have been taken from large compilations or collected from the literature.
The NED home page is http://nedwww.ipac.caltech.edu/
Since November 2000, an agreement between CDS and NED allows the NED users to launch Aladin directly from the NED result pages.
Therefore, NED users can use the features of Aladin to visualize images
from the NED collection in addition to the general image surveys.
- SkyView:
SkyView is a Virtual Observatory tool generating images of any part of the sky at wavelengths in all regimes from Radio to Gamma-Ray. SkyView was developed and is maintained by the High Energy Astrophysics Science Archive Research Center (HEASARC) - GSFC Laboratory for High Energy Astrophysics.
The SkyView home page is http://skyview.gsfc.nasa.gov
- SUPERCosmos:
SUPERCosmos is the Royal Observatory Edinburgh's advanced photographic plate digitising machine.
The SUPERCosmos home page is http://www.roe.ac.uk/cosmos/scosmos.html
- LEDA:
Lyon Extragalactic DataBase is a database of galaxies and extragalactic objects.
The LEDA home page is http://leda.univ-lyon1.fr/
- FIRST:
The "Faint Images of the Radio Sky at Twenty-cm" survey, or FIRST, is a project designed to produce the radio equivalent of the Palomar Observatory Sky Survey over 10,000 square degrees of the North and South Galactic Caps.
The FIRST home page is http://sundog.stsci.edu/
- NVSS:
The NRAO VLA Sky Survey, or NVSS, is a radio continuum survey covering the sky north of -40 deg declination.
The NVSS home page is http://www.cv.nrao.edu/nvss/
- SDSS:
The Sloan Digital Sky Survey (SDSS) covers one-quarter of the sky in several optical bands.
The SDSS home page is http://www.sdss.org/
- HST, Chandra, Merlin,...:
Via VizieR, Aladin is able to retrieve preview images from missions such as HST, XMM, Chandra and Merlin...
- MAST:
The Multi-Mission Archive at Space Telescope Institute (MAST/STScI) supports a variety of astronomical data archives (HST, GALEX, UIT, VLA-FIRST, HLSP...)
The MAST home page is http://archive.stsci.edu/
- CADC:
The Canadian Astronomical Data Center (CADC) supports a variety of astronomical data archives (CFHT, JCMT, HST...)
The CADC home page is http://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/cadc/
- SKYBOT:
SkyBoT provides ephemeredes for most of the Solar System bodies. It is powered by IMCCE (Paris).
The SkyBot home page is http://www.imcce.fr/page.php?nav=webservices/skybot/
- All VO compatible servers:
In addition, Aladin allows you to query simultaneously other
VO compatible servers.
2.4 Is Aladin adapted for outreaching?
Yes it is !
Aladin can be launched in two special modes added to the original professional mode : undergraduate and preview. In the undergraduate mode(*), the choice of the images and catalogues has been reduced in order to offer a selection of the most important data without embarrassing the user with too many alternatives or with too sophisticated data. All data are still accessible from the professional version which is offered together with the simplified version. Also the choice of functions activated directly with buttons and switches has been reduced to ease learning curve required by the sofware. In "preview" mode, the query form has been simplified for keeping just one query field returning a default set of images and catalogs.
Select via the menu "Edit => User preferences" the default "profile" mode. Or use the dedicated command line parameter : "-outreach" or "-preview".
Several courses are already available. See the list above.
Note: This adaptation has been done in the framework of the EuroVO AIDA WP5 project
2.5 Beta releases, which differences with official Aladin version ?
Since May 2006, the Aladin team distributes another version continuously updated: the beta release.
The beta version incorporates new features in test phase for the next official Aladin version. The stability of these features is not totally guaranteed. The prototype version adds collaborative works and tests not yet totally finalized (details...)
Both of them can be downloaded from the Aladin download page.
3 GETTING AND RUNNING ALADIN
3.1 Are Aladin program and documentation only in English ?
Aladin program has multi-language support. Presently, it supports French, English, German ,Italian, Traditional and Simplified Chinese, Russian, Persian,
Spanish, Japanese languages. It can be easily extended to other languages by following these instructions:
- Launch Aladin and open the preference panel (menu Edit -> User preferences);
- Check your language, and if it is not in the list, press the "New Translation" button ;
- Follow the instructions;
Do not hesitate to mail us for more details.
By default, if it supports it, Aladin starts in the Operating System language, otherwise it starts in English. You can force this choice via the menu Edit -> User preferences.
Call for translaters: We would be very pleased to support other languages. Do not hesitate to contact us if you would like to add your own, or if you have done the translation for your own needs and you agree to integrate your translation in the official version (Email: question at simbad.u-strasbg.fr).
The Aladin documentation is available in Italian, French and English language.
3.2 How to install and start the Standalone version?
Aladin standalone can be downloaded from
Aladin standalone page.
According to your configuration, Aladin is differently packaged:
You also need to have a Java runtime environment installed on you machine - http://www.java.com/download - see next point for details.
You can also install&run it via a Web Start Java automatic installer if your browser knows this method (aladin.jnlp).
You can also start the standalone version by downloading the Aladin.jar file and use this command line in a console window:
java -Xmx1024m -jar Aladin.jar
3.3 What is a "Java Virtual Machine"?
Any JAVA executable (like Aladin) is built by a JAVA compiler which generates binary code.
This binary code is (in theory), independent from any hardware configurations and operating systems. To be
executed, it needs a
virtual machine, which is a special programme analysing the binary code
and executing the instructions for a given architecture.
Of course, this
Java Virtual Machine (JVM) is hardware and operating system
dependent. Two types of Virtual Machines exist: those included in every common web
browser, and those running as an independent programme, like the Java RunTime
Environment (JRE) from
Oracle. These programmes need to be
downloaded for your particular platform - see
http://www.java.com/download
3.4 What is Aladin APPLET? Aladin STANDALONE?
Aladin can be used either as a
Java applet or as a
standalone Java application.
In the applet case, you are running it directly from within a browser such
as Mozilla (all platforms) or IExplorer (Windows only). This is the simplest solution.
By default, an applet has several security restrictions. However, if the user accept the code certification when Aladin applet is starting up, Aladin will then run in full mode allowing access to local resources, otherwise it will run in a restricted mode (no local disk access, no printer access).
The alternative is to download the Java code and run Aladin as a standalone
application. In this case, you don't need to launch a browser to use Aladin and there is absolutely no security restriction.
If you choose the application solution, you need to download the Aladin package and
install a JVM (Java Virtual Machine) - see http://aladin.u-strasbg.fr/java/nph-aladin.pl?frame=downloading.
3.5 Which machines support Aladin?
Aladin is compatible from Java release 1.5(*) to the last JAVA release. It means that Aladin is supported by the majority of the existing machines - PC under Linux or Windows, Macintosh under OSX,...
When developing Aladin, we are usually trying hard to optimize its performances. So even a "small" computer is a good choice to run Aladin. However, large catalogs (>1,000,000 sources), you need enough memory (typically 2Gb Ram).
(*) We are NOT supporting Java version lower than 1.5. However, if you are running under a too "old" configuration and you try to launch the Aladin applet, you will be automatically redirected to an older Aladin release supporting your configuration. If you would like to use a more recent Aladin version, you must install a JVM plug-in in your browser, or install Aladin as a standalone application (see corresponding FAQ sections).
3.6 * Is Aladin APPLET needing browser plug-ins?
Yes you need java plug-ins if your configuration does not have java yet. If you install java, you will have automatically the plug-ins capability available for all your browsers.
Use this link see http://www.java.com/download
3.7 Can I run Aladin without Firefox, Mozilla or IExplorer?
Yes, you can.
See the
What is Aladin APPLET? Aladin STANDALONE? section above.
3.8 Do the applet and the standalone share the same code?
Yes they do !
3.9 How accurate are Aladin's coordinates?
All
Aladin's coordinates are given to the best astrometric accuracy decoded from images header.
However, in some cases, positions could be off by many arc seconds and can't be used as precise astrometric positions (depending of the image WCS header).
The accuracy of the positions of one given image can easily be checked by superimposing reference astrometric catalogues such as the Tycho-2 Catalogue or the US Naval Observatory Catalogue of Astrometric Standards (USNO-B2.0). Although even those astrometric catalogues do carry astrometric errors. We advice
any potential user who requires precise astrometry to read the documentation of these catalogues to understand their
limits.
3.10 What is maximum size of image which Aladin could handle?
Aladin has no RAM limit for images. If the image is too large for your memory, Aladin will create a preview on the fly and will load the missing pixels since you zoom on a position.
See also the FAQ question just above for increasing memory.
3.11 What is maximum catalog size Aladin can handle?
Aladin spends about 500 bytes per catalog object in memory. It means that you can load about 2 million objects catalog with 1 GB RAM free.But in practice, it is difficult to work with more than 1 million object due to the redrawing time.
See also the FAQ question just above for increasing memory.
3.12 Can I increase the JAVA memory?
Yes you can!
The java command line parameter "-Xmx" allows you to increase the maximum memory size used by your Java runtime environment.
For example: java -Xmx1024m -jar Aladin.jar.
But, if you have used a dedicated Aladin packaging or if you use Aladin as an applet, you will have to adapt the Aladin launcher according to your configuration:
- Linux installation:
If you are under Linux and you use the Aladin launcher, you can modify this default maximum memory configuration by editing directly the script launcher "Aladin" and set the "mem" variable to the proper value.
- Windows installation:
If you are under Windows and you use the Aladin.exe executable, you cannot modify the default maximum memory configuration (1Gb). In this case, you will have to launch Aladin via a console, or a batch file, with the command line described above.
- Mac installation:
If you are under Mac and you used the Aladin.dmg installer, you can modify this default maximum memory configuration by editing directly Info.plist in the directory /Applications/Alldin.app/Contents and modify the following line: <string>-Xms64m -Xmx1024m</string>
- Applet mode:
In applet mode, for most browsers, the default memory allocation given to the JAVA virtual machine is between 64 and 128 Mbytes. But there are ways to augment the memory allocated to JAVA applets for each family
of browsers. Please consult the next FAQ entry.
Warning: if you plan to increase JVM memory to more than 4GB, you have to install a 64-bit JVM.
3.13 Can I increase the JAVA memory of my browser?
Yes you can !
You have to use the JAVA ControlPanel provided with the Java (plug-in) distribution.
- Find your JAVA installation and open, with your favourite browser, the HTML document ControlPanel.html (generally, into the subdirectory "jre")
- The JAVA control panel will be launched as an applet in your browser and let you modify some default values and especially to specify additional parameters.
- Find the appropriate text field to put this following parameter :
-Xmx512m (512 Mbytes for the heap)
You can do the same thing by activating the JAVA ControlPanel with the Operating System:
- on a Mac: use the "Applications -> Utilities -> Java" menu of the "Finder";
- on a Windows machine: use "Start -> Settings -> Control Panel -> Java plug-in" menu;
- on a Linux: launch the "ControlPanel" script located in the Java installation directory.
(Thanks to Daniel Durand for this tip)
4 USAGE
4.1 How can I select VizieR catalogues for overlay?
Most of the astronomical catalogues and tables are taken from the
VizieR data base
(see the question
"Which data is available via Aladin?").
The interface between Aladin and VizieR
presents three alternatives for the choice of tables/catalogues.
Once you have to select the "load" button, you can select:
- VizieR catalogues:
this is the VizieR access mode to all catalogues:
- by just selecting the SUBMIT button,
all catalogues having sources around the target position
are retrieved and presented; catalogues in this list can then be
selected with a mouse click on their title.
- by entering words in the Author, free text... box
(e.g. white), the list of catalogues is restricted
to those having the specified word(s) in their title and
having sources around the target position.
- by clicking on a selection of keywords,
the list of catalogues is restricted to those having
all keywords (i.e. keywords are and'ed)
and having sources around the target position.
- Surveys in VizieR: the largest all-sky
surveys available are listed, and any of those can be
selected by a mouse click on its title.
- Missions in VizieR: the mission logs available are listed, and any of those can be selected by a mouse click on its title. If images or previews are attached to these logs, buttons will appear in the data line allowing you to display the images directly in Aladin.
Note: In these three VizieR forms, you can also just type in the Catalogue box the acronym (e.g. HD)
or CDS/ADC identification of catalogue (e.g. III/135);
a comma-separated list of acronyms may be specified for several
catalogues, e.g. BD,CD,CPD;
click here for
a complete list of available catalogue acronyms or identifications.
Two checkboxes allow you to specify:
. "all columns": By default VizieR just returns the main columns. This checkbox will force VizieR to provide all original columns.
. "whole catalog": the whole catalog will be concerned and the target/radius will be ignored. This option is limited to 1 million objets.
4.2 Can I load my own image or table files?
Yes, you can !
The simplest way is to select the menu "File -> Open local file (Ctrl O)".
The dedicated format for the images are FITS with or without a WCS fields in the header. These images can be compressed with RICE, GZIP or HCompress.
The Multiple FITS extension format is fully supported.
You can also load JPEG, PNG or GIF images. Generally these will be loaded without astrometric solution, so you will have to add one manually (via the menu "Image -> Astrometrical calibration") if you want to overlay sources from astronomical catalogues - see the point above for astrometrical calibrated JPEG or PNG image.
Since release 7.5, Aladin supports PDS images (Planetary Data System), but with these restrictions: no compression and the header must be inside the image.
The available format for the tables are:
- XML (VOTable or Astrores - see below).
- FITS ASCII table.
- FITS binary table.
- Character-Separated-Value (TAB, pipe, semicolon, coma (-> see user preference menu)
- Simple ASCII tables (rows aligned with spaces (=> no space allowed in values)
- S-extractor output (see S-extractor documentation)
CSV examples (with TAB):
One record per line, EACH FIELD SEPARATED by ONE TAB. Heading line can be present. If there are several heading lines,
the header and the data have to separated by a dash line as shown below.
If there is no header at all, the first column has to be RA, the second column DE.
The coordinates have to be expressed in J2000, either in decimal degrees or in sexagesimal notation (with ' ' or ':' separator).
Example 1:
05 34 53.16 +22 03 20.0 [SPB96] 910 UV
05 34 21.95 +22 05 52.0 [SPB96] 885 UV
05 34 14.85 +22 05 25.4 G 100-20 PM*
05 33 51.13 +21 56 28.0 [SPB96] 858 UV
05 34 47.04 +21 51 51.0 [SPB96] 906 UV
Example 2:
ID RAJ2000 DEJ2000 GSC number Pmag
deg deg mag
-- ------- ------- ---------- -----
01 185.701 15.822 0144501972 15.55
02 185.766 15.795 0144502507 13.92
03 185.704 15.844 0144501918 15.06
04 185.710 15.849 0144502383 14.78
You have four possibilities to load your own data:
- by command line argument: specify the filename containing your catalogue as command line arguments when you launch Aladin (ex: java -jar Aladin image.fits mytable).
- by script command: use the "load" script command in the Aladin console (ex: load myvotable).
- by the "File form" of the graphical interface: select your file with the file selection widget. If you select a "directory level" instead of a filename in the text field, Aladin will create a "data tree" of Aladin compatible files found in this directory (see "data tree" section).
- from another VO compatible application via SAMP messages - see corresponding FAQ entry.
Note: Aladin recognizes automatically the types of files. Filename extension doesn't matter. However for Aladin script files, it is recommended to use ".ajs" extension to avoid some ambiguities.
Note: For the CSV format, since release 7.5, the column separator character is automatically recognized. No configuration is required. Also, column value can be quoted (") a la MS Excel.
4.3 ** Is Aladin supporting IPAC TBL format?
Yes, it is, since version 7.5 !
4.4 ** Is Aladin supporting MS-Excel or Libreoffice CSV?
Yes, it is, since version 7.5 !
The possible quoting values are correctly interpreted
4.5 Is Aladin supporting JPEG, PNG or GIF image format?
Yes, it is !
Aladin is supporting JPEG, PNG and GIF images. Generally these images will be load without astrometric solution. You will have to add one manually via the menu "Image -> Astrometrical calibration"
For JPEG and PNG formats, Aladin is able to recognize a FIT header stored into a "comment segment". It means that you can easily attach a WCS astrometrical solution to your JPEG or PNG image with a simple image tool such as GIMP. The supported syntax can be either FITS header dump or ASCII lines not necessary aligned on 80 characters.
Aladin also recognizes AVM tags inside a JPEG or PNG image (new emerging VO standard) for finding the astrometrical solution. Note that Aladin saves JPEG and PNG images with the WCS astrometrical solution in FITS keyword syntax, not via AVM
4.6 ** Is Aladin supporting PDS image format?
Yes, but partially !
Since release 7.5 Aladin can display Planetary Data System images (PDS). But this extension has been implemented "a minima". These images must be uncompressed, and the meta-data header must be inside the file.
4.7 ** Can I load my own Field of View (FoV)?
Yes, you can!
You have two possibilities:
4.7.1 Via a list of graphical regions
As Aladin 7.5 is now supporting graphical region definitions (IDL or DS9 syntaxes), it is a simple alternative for displaying a FOV. See next section.
4.7.2 Via a VOTable file
Aladin is supporting an emerging VO standard for describing instrument field of views (FoV). You can describe your FoV in a simple XML/VOTable document as shown in the example below. And load this file in Aladin to draw it. The user will be allow to move it, possibly to roll it, switch on/off some FoV components...
Note: This feature can be used to create your own Proposal tool based on this standard and VOApp/VOObserver Aladin java interfaces (more...). For instance, see APT (STScI HST Proposal Tool) (demo...)
INT WFC example (thanks to Luis Coral for this example)
<?xml version="1.0"?>
<VOTABLE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.ivoa.net/xml/VOTable/v1.1">
<DESCRIPTION>INT WFC FoV description</DESCRIPTION>
<!-- This is the FOV itself (and a utype for that) -->
<RESOURCE ID="INT_WFC_FoV" name ="INT WFC Field of View" utype="ivoa:characterization/[ucd=pos]/coverage/support" >
<DESCRIPTION>INT WFC is a mosaic camera. The full
mosaic is made up of 4 2Kx4100 CCDs in a L-shape design. CCDs are separated
on the sky by some arc sec gaps. The FoV of each CCD is 11.26 arcmin x 22.55 arcmin.
</DESCRIPTION>
<!-- These two complete the Field of View Coordinate system -->
<PARAM name="FOV Coord Frame" datatype="char"
utype="stc:AstroCoordSys/SpaceFrame/SpaceRefFrame" value="J2000.0"/>
<PARAM name="FOV Coord Flavor" datatype="char"
utype="stc:AstroCoordSys/SpaceFrame/CoordFlavor" value="CARTESIAN"/>
<!-- First row -->
<TABLE ID="ccd4" name="Field of View">
<PARAM name="Region" value="Polygon" />
<!-- here comes the description of the Vertexes in the tilted and recentered frame -->
<FIELD ID="VRO" name="VertexRAOffset" datatype="float" unit="arcsec"
utype="stc:AstroCoordArea/Region/reg:Polygon/Vertex/Position[1]"/>
<FIELD ID="VDO" name="VertexDecOffset" datatype="float" unit="arcsec"
utype="stc:AstroCoordArea/Region/reg:Polygon/Vertex/Position[2]"/>
<DATA>
<TABLEDATA>
<TR><TD>-342.0</TD><TD>-97.0</TD></TR>
<TR><TD>1011.0</TD><TD>-97.0</TD></TR>
<TR><TD>1011.0</TD><TD>578.8</TD></TR>
<TR><TD>-342.0</TD><TD>578.8</TD></TR>
</TABLEDATA>
</DATA>
</TABLE>
<TABLE ID="ccd1" name="Field of View">
<PARAM name="Region" value="Polygon" />
<!-- here comes the description of the Vertexes in the tilted and recentered frame -->
<FIELD ID="VRO" name="VertexRAOffset" datatype="float" unit="arcsec"
utype="stc:AstroCoordArea/Region/reg:Polygon/Vertex/Position[1]"/>
<FIELD ID="VDO" name="VertexDecOffset" datatype="float" unit="arcsec"
utype="stc:AstroCoordArea/Region/reg:Polygon/Vertex/Position[2]"/>
<DATA>
<TABLEDATA>
<TR><TD>-342.0</TD><TD>-795.4</TD></TR>
<TR><TD>1011.0</TD><TD>-795.4</TD></TR>
<TR><TD>1011.0</TD><TD>-119.6</TD></TR>
<TR><TD>-342.0</TD><TD>-119.6</TD></TR>
</TABLEDATA>
</DATA>
</TABLE>
<TABLE ID="ccd2" name="Field of View">
<PARAM name="Region" value="Polygon" />
<!-- here comes the description of the Vertexes in the tilted and recentered frame -->
<FIELD ID="VRO" name="VertexRAOffset" datatype="float" unit="arcsec"
utype="stc:AstroCoordArea/Region/reg:Polygon/Vertex/Position[1]"/>
<FIELD ID="VDO" name="VertexDecOffset" datatype="float" unit="arcsec"
utype="stc:AstroCoordArea/Region/reg:Polygon/Vertex/Position[2]"/>
<DATA>
<TABLEDATA>
<TR><TD>-1038.8</TD><TD>-795.4</TD></TR>
<TR><TD>-363.0</TD><TD>-795.0</TD></TR>
<TR><TD>-363.0</TD><TD>557.6</TD></TR>
<TR><TD>-1038.8</TD><TD>557.6</TD></TR>
</TABLEDATA>
</DATA>
</TABLE>
<TABLE ID="ccd3" name="Field of View">
<PARAM name="Region" value="Polygon" />
<!-- here comes the description of the Vertexes in the tilted and recentered frame -->
<FIELD ID="VRO" name="VertexRAOffset" datatype="float" unit="arcsec"
utype="stc:AstroCoordArea/Region/reg:Polygon/Vertex/Position[1]"/>
<FIELD ID="VDO" name="VertexDecOffset" datatype="float" unit="arcsec"
utype="stc:AstroCoordArea/Region/reg:Polygon/Vertex/Position[2]"/>
<DATA>
<TABLEDATA>
<TR><TD>-342.0</TD><TD>595.9</TD></TR>
<TR><TD>1011.0</TD><TD>595.9</TD></TR>
<TR><TD>1011.0</TD><TD>1271.7</TD></TR>
<TR><TD>-342.0</TD><TD>1271.7</TD></TR>
</TABLEDATA>
</DATA>
</TABLE>
</RESOURCE>
</VOTABLE>
Other possible shapes:
Circle:
<TABLE ID="maxExtCircle" name="maxExtCircle">
<PARAM name="Region" value="Circle" />
<PARAM ID="CRO" name="CenterXOffset" datatype="float" unit="arcsec" utype="stc:AstroCoordArea/Region/reg:Sector/Center[1]" value="0.0" />
<PARAM ID="CDO" name="CenterYOffset" datatype="float" unit="arcsec" utype="stc:AstroCoordArea/Region/reg:Sector/Center[2]" value="0.0" />
<PARAM ID="radius" name="Radius" datatype="float" unit="arcsec" utype="stc:AstroCoordArea/Region/reg:Circle/radius" value="159.66021953366922" />
</TABLE>
"Pickle":
<TABLE ID="FGS1 (outline)" name="HST/FGS1/FGS1 (outline)">
<PARAM name="Region" value="Pickle" />
<PARAM ID="CRO" name="CenterXOffset" datatype="float" unit="arcsec" utype="stc:AstroCoordArea/Region/reg:Sector/Center[1]" value="261.6416" />
<PARAM ID="CDO" name="CenterYOffset" datatype="float" unit="arcsec" utype="stc:AstroCoordArea/Region/reg:Sector/Center[2]" value="238.6036" />
<PARAM ID="a1" name="StartAngle" datatype="float" unit="deg" utype="stc:AstroCoordArea/Region/reg:Sector/angle1" value="-48.722" />
<PARAM ID="a2" name="EndAngle" datatype="float" unit="deg" utype="stc:AstroCoordArea/Region/reg:Sector/angle2" value="-130.064" />
<PARAM ID="rad1" name="ExternalRadius" datatype="float" unit="arcsec" utype="stc:AstroCoordArea/Region/reg:Circle/radius" value="824.9" />
<PARAM ID="rad2" name="InternalRadius" datatype="float" unit="arcsec" utype="stc:AstroCoordArea/Region/reg:Circle/radius" value="618.25" />
</TABLE>
Label:
<TABLE ID="PC1-label">
<PARAM utype="app:footprint.render.overlay.string" />
<PARAM utype="stc:AstroCoord.Position2D.Value2.C1" unit="arcsec" value="259.0" />
<PARAM utype="stc:AstroCoord.Position2D.Value2.C2" unit="arcsec" value="265.0" />
<PARAM utype="app:footprint.render.overlay.string.content" value="PC1" />
</TABLE>
Labels are useful to designate the name of CCD chips for instance.
Additional parameters:
You can specify if your FoV can be moved, rolled, its color. You can specify an initial position and an initial roll angle by adding these XML lines:
<VOTABLE... >
<RESOURCE...>
<PARAM name="RA" ucd="pos.eq.ra;meta.main" ref="J2000" datatype="char" arraysize="13" unit=""h:m:s"" utype="stc:AstroCoordSys/SpaceFrame/OffsetCenter[1]" value="13:29:55.7000" />
<PARAM name="DEC" ucd="pos.eq.dec;meta.main" ref="J2000" datatype="char" arraysize="12" unit=""d:m:s"" utype="stc:AstroCoordSys/SpaceFrame/OffsetCenter[2]" value="+47:17:13.00" />
<PARAM name="PA" ucd="pos.posAng" datatype="float" unit="deg" utype="stc:AstroCoordSys/SpaceFrame/PositionAngle" value="0.0" />
<PARAM name="Rollable" value="true" />
<PARAM name="Movable" value="true" />
<PARAM name="Color" value="blue" />
FoV components:
If a <TABLE... section is inside an embedded <RESOURCE... section, Aladin considers the shapes described in this table as sub-component of the FoV. The users can switch them on/off individually via the plane properties.
Warning: The FoV standard is still progressing. Aladin will implement the definitive standard when it will be ready. But it will continue to support the current one as long as this will be required.
4.8 Is Aladin supporting Multiple FITS Extension file (MEF) ?
Yes, it is !
Aladin is supporting all FITS files including Multiple FITS Extension files (ascii tables, binary tables, images and tables, ...). If there are more than one extension, Aladin shows the extensions in a folder in the stack. The properties of each plane give access to the specifical FITS header. The propertie of the folder gives access to the primary FITS header.
Note: You can just load a specifical extension (or a set of extensions) by suffixing the FITS filename with the extension numbers embedded in brackets and separated by comas. Example: myMEF.fits[1,4-6,8]
4.9 ** Is Aladin supporting graphical region definitions?
Yes, it is !
It is possible to draw various shapes over a sky background by using the dedicated "draw", "setframe" script commands.
The shapes:
- draw line(al1,del1,al2,del2,...[,text])
- draw polygon(al1,del1,al2,del2,...[,text])
- draw vector(al,del,size,angle) : arrow
- draw box(al,del,width,height[,angle])
- draw circle(al,del,radius)
- draw ellipse(al,del,semiMA,smiMI,angle)
- draw arc(al,del,PA,radius,startAngle,endAngle)
- draw pickle(al,del,radius1,radius2,startAngle,endAngle) : double arc
- draw dist(al1,del1,al2,del2) : distance segment
- draw phot(al,del,radius) : photometry circle
- draw string(al,del,text) : text
- draw tag(al,del) : simple tag
- draw tag(al,del,text,dist[,angle,types,textsize]) : labeled tag where types can be "reticle|bigreticle|smallcircle|circle|bigcircle|arrow|bigarrow|nopole"
These command will create a graphical object stored in the last "drawing" plane of the Aladin stack. And if there is no "drawing" plane, a new one will be automatically created. It is possible to explicitly create new graphical planes for packaging together graphical objects :
- draw newtool([label]) : create a new "drawing" plane called "label"
- draw newfov(al,del[,angle,label]) : create a new "FoV" plane called "label" where the center of rotation is al,del and the rotation "angle".
In this last case, all graphical objects inside this kind of plane will move or roll together.
The coordinate frames:
- setconf frame=ICRS
- setconf frame=J2000|FK5
- setconf frame=B1950|FK4
- setconf frame=Ecliptic
- setconf frame=Gal
- setconf frame=SGal
- setconf frame=B1900
- setconf frame=B1875
- setconf frame=XY : XY coordinates in the current image
All coordinates in "draw" command will be interpreted in the last coordinate frame specified via the "setconf" command (by default ICRS).
4.10 ** Is Aladin supporting DS9 or IDL regions?
Yes, it is !
Aladin has its own language of region definition via the command script "draw" (see section above), but starting from release 7.5 Aladin is also supporting graphical regions definitions in DS9 syntaxes, SAO-image syntaxes or IDL syntaxes. See the corresponding manuals for more information.
The shapes:
- line(al1,del1,al2,del2)
- polygon(al1,del1,al2,del2,...)
- box(al,del,width,height)
- rotbox(al,del,width,height,angle)
- circle(al,del,radius)
- ellipse(al,del,semiMA,smiMI,angle)
- ruler(al1,del1,al2,del2)
- point(al,del)
- vector(al1,del1,al2,del2)
- text(al,del) || text=xxx
The coordinate frames:
- fk5 | J2000
- fk4 | B1950
- icrs
- galactic
- ecliptic
- image
The global directives:
- global color=xxx
- composite(al,del,angle)
Note: Some global properties (dash, font...) and some very specifical shapes (panda, epanda, bpanda, projection, compass) not supported by Aladin will be ignored.
4.11 ** Is Aladin supporting RGB FITS images ?
Yes, it is !
Aladin is supporting RGB FITS images for loading and saving.
In fact, the RGB FITS is not really a standard but has been adopted by several tools. Aladin follows the same convention. It considers a 3D FITS cube as a RGB images (Red, Blue and Green components). The FITS keyworkd CTYPE3 = 'RGB ' will help it to recognize this kind of images.
Since version 7.5, Aladin supports RGB FITS image with any FITS BITPIX and not only 8.
4.12 Is Aladin supporting FITS cubes ?
Yes, it is !
Aladin is supporting FITS cubes for loading.
It can manage large cubes such as 1024x1024x256x64bits size.
Several functions are available for manipulating cubes:
- you can display them as a movie;
- extract a specific image of a cube (view popup menu);
- create a cut graph for the third dimension (tag tool - see relevant FAQ entry)...
Since version 7.5, Aladin also supports colored RGB cube. See next section.
4.13 ** Is Aladin supporting colored cubes ?
Yes, it is, since version 7.5 !
Aladin interprets a FITS cube as a colored cube if the FITS keyword "COLORMOD = 'ARGB ' is present in the header. In this case Aladin will consider each cube pixel as 4 consecutive bytes (BITPIX=32) for the red, green and blue components. The first byte (A) is ignored (reserved for transparency).
4.14 How can I retrieve archive previews ?
Some archive previews are directly available via the "Frame Server Selector" (menu File -> Open...), and notably through the "All VO form".
You can also load some of them via the mission log of the archives provides by VizieR catalog service.
For this last case, you have to proceed in two steps:
Firstly, you query the VizieR service for the mission log of the archive (for example, the HST log or the FIRST log) around a target.
Secondly, you select the resulting positions in the view and look at the corresponding data in the measurement window. If you find a button "Image" in the data line, click on it to retrieve the corresponding archive image. A new plane will be created automatically in the stack.
4.15 How can I access the original images used by Aladin ?
Aladin provides access to an a HTML page with links to the images currently loaded (see menu "File -> Save... -> Get image links").
Also, original FITS images are saved as a identical copy of the origin file. Notice that if you have modified the astronomical solution, the WCS header will be modified according to.
4.16 Where are saved my preferences ?
Your preferences (menu "Edit -> User preferences...") are automatically saved in the the file $HOME/.aladin/Aladin.conf using a very simple ASCII format that you can edit yourself if required.
4.17 What is the "measurement histogram" ?
Aladin allows you to create easily a histogram concerning the values of a dedicated column of measurements. This histogram is dynamic as you can move your mouse over it for seeing immediately the corresponding sources in the sky.
Usage example:
- Load Simbad result around M101
- Select all the sources (menu Edit => Select all objects)
- Move your mouse pointer over the OTYPE column in the measurement frame and wait 1 seconde
- Move your mouse pointer over the created histogram for seeing the corresponding sources
- Redo for the "B" column (numerical values)
- Go over the histogram. Change the beaning via the mouse wheel or via the small cursor on the left side.
Note: Thanks to the Galex Viewer team for this feature idea
4.18 How to use SAMP ?
Aladin is SAMP compatible. It means that you can easily exchange data with another SAMP compatible application such as
DS9,
TOPcat,
VOPlot,
WWT
,...
or even with Web pages implementing Web SAMP profile (javascript API) (
see "What is SAMP?" FAQ question).
You can see at the bottom-right corner of Aladin window a new logo representing a radio antenna. The states of this logo describe the Aladin SAMP status:
- The antenna is drawn in black and displays some waves => there is another SAMP application ready to send or receive data;
- The antenna is drawn in black but without wave => Aladin is SAMP ready but there is no other plastic compatible application running;
- The antenna is drawn in light gray with a red cross => Aladin is not SAMP ready (no SAMP hub available)
You can use the "Interop" menu or click on the antenna logo to open a popup menu dedicated to SAMP. Use it for specifying your SAMP preferences.
Note for advanced users: Aladin incorporates a SAMP hub itself (thanks to Mark Taylor). It means that you need not launch an external SAMP hub to be able to send/receive data to/from another application. However if another SAMP hub is always running (such as AstroRuntime from Astrogrid), Aladin will simply connect itself to this existing hub without launching its own one. You can also choose from the SAMP preferences to prevent Aladin to launch its internal hub.
Aladin supports (ie can process) following SAMP messages :
- image.load.fits: to request Aladin to load a FITS image
- table.load.votable , table.load.fits: to request Aladin to load a VOTable/FITS table
- table.select.rowList: to select a set of objects of a previsouly loaded table
- table.highlight.row: to highlight a given row of a table
- coord.pointAt.sky: point to a specific location in the sky
- script.aladin.send: to request Aladin to execute some Aladin script commands (see script section). This command takes as input a parameter called script representing the script to be executed.
Detailed description of the SAMP message types is available here.
4.19 How can I copy-and-paste information (measurements, positions,...)
You can directly copy-and-paste measurements or current location via the contextual popup menu (right click) in the system clipboard. Then, you can paste data in any other applications.
Also, each clicked position is memorized into the "location/command" field (just behind the main menu). So, you can move the mouse over and copy it in the clipboard, or directly use the view popup menu..
4.20 Can I draw a pixel cut graph?
The "Dist" tool computes the distance between two points (Menu "Image -> Cut graph", or "Overlay -> dist..."), but also it generates a cut graph along the distance segment. This cut graph is displayed in the zoom panel at the bottom right side of the Aladin window.
Notice that you have to select one, and only one distance segment to see the corresponding cut graph. If you move the segment or one side of segment, the cut graph is dynamically updated.
If you move the mouse on the cut graph Aladin displays some additionnal information.
Note: It is not yet possible to save or print this cut graph.
4.21 ** How to "extract" image pixel values?
Aladin version 7.5 implements a new menu (Image => pixel Extraction...) allowing you to extract the pixel values of one or several images in order to manipulate them as tabular data (histogram, exportation to TOPcat...).
4.22 ** Is it possible to rotate the image?
Aladin version 7.5 allows free rotation of the current view but only if you use an all-sky survey as reference image. Toolbar -> Pan, clic & drag the image with CTRL key pressed, or turn the N-E symbol at the right corner of the image.
Otherwise, for classical images, you can force the "North Up" by clicking on the corresponding button at the left bottom corner of Aladin.
4.23 Is it possible to turn a cube?
Unfortunately, no.
The two first dimensions provide the image and the third dimension the depth. If the dimensions are not correctly ordered for Aladin, you have to rebuild your cube via IDL or another astronomical tool before loading it into Aladin.
4.24 Is it possible to save a cube?
Unfortunately, no.
Neither in FITS nor in MPEG or other movie standards.
4.25 ** Is it possible to build a mosaic image?
There are three methods for building mosaic images.
Overlays:
The first method just uses the transparency feature in Aladin for displaying simultaneously several images in the same view. This solution is easy to use, fast but it is based on the 4 image corners positions - so it can have small distorsions. You just have to fully activate the "opacity" property of each images.
Classical resampling:
The second method is a classical resampling. It allows you to combine several images for producing an unique large image by resampling them in an unique astrometrical solution. Use the button "assoc." which has replaced the "blink" one in the previous Aladin versions.
In the association control window, select "mosaic" mode instead of "blink" mode.
all-sky survey:
Aladin version 7.5 allows you to generate yourself an all-sky HEALPix survey from a set of FITS images. By this way you create and use a multi-scale view of your data allowing you to browse them "a la Google Earth => Zoom and Pan as a unique image". This last method is very powerful either for large survey covering a large part of the sky or for pointed observations for which yo would like to have a global view. For the details, see the all-sky section.
4.26 Is it possible to add, substract, multiply or divide images?
Yes you can!
Aladin is supporting addition, substraction, multiplication, division, convolution and pixel normalisation. If necessary the second image will be resampled according to the astrometrical solution of the first image.
Use the menu "Image -> Arithmetic operations".
You can also use the script commands: + , - , * , / (see corresponding script help)
For substracting one image to anotheryou can also do a colorized substraction, select both of them in the stack and press the RGB button. Thus, select the "substract" selector. Aladin provides you a colored image for which the positive differences are displayed in one color component (for instance red), and the negative differences in another color component (for instance green). The result pixel dynamic is automatically increased (linearly) to get a better contrast of the differences. You keep access to the original pixel values from the 2 original images just by moving the mouse cursor over the colored image.
Note: You can use the "RGBdiff" script command which does the same thing by command line
Note: For all-sky HEALPix surveys, you need to crop the field before processing it.
4.27 How to retrieve the previous target in the server selector?
Normally, the target and radius fields are automatically filled up according to the current Aladin view. But if you modify them, these modifications will be the new default.
To retrieve the previous values, reset the form (use the "RESET" button).
You can also click in any Aladin view (especially in multiview modes) to adjust the target/radius to this view.
4.28 Is there a way to convert object coordinates?
Yes, there is !
Move the cursor on the object data line in the measurement window. The position on this object is automatically given in the current coordinate reference system in the position rectangle (just below the menu). So, if you select say, the
Gal reference system and move the cursor on the object data you will see their positions in Galactic system.
Additionally, if you click on the data line, the current position is memorized into the "Location" field and you will be able to cut-and-paste it.
4.29 How to use the "Pan" tool?
Look for the button called "Pan" (hand logo) or the menu "Edit -> Pan (Alt D)". This tool allows you to move the view by clicking and dragging the image in it. This feature is useful for large images displaying only a very small part of themselves.
Tip: You can also click and drag by using the middle mouse button even you are in the "Select" mode.
4.30 * What is the Simbad "pointer"?
Via the menu "Tools -> Simbad automatical pointer", Aladin will continuously query Simbad data base and search for an astronomical object close to the location pointed by the mouse. You have just to let the mouse pointer at the same place 3 seconds to wake up the Simbad pointer. If there are several objects, Aladin retains the object with the most bibliographical references.
The Simbad information will be displayed as a "clickable" sticker over the image. Click on it for loading the full Simbad result concerning this objects.
4.31 * How to make Aladin more verbose?
Aladin has
4 trace/debug modes... This is interesting to see how it works and what it is doing.
Just type the following script command in the "Location field":
"trace x" where
x can be
1, 2, 3, 4 or
off.
The messages will appear both in the console window in which you launched Aladin (or java console in applet mode).
4.32 Can I use Aladin without a network connection?
Yes, you can, but obviously, only with the Standalone version.
It this case, you can use only your own data.
However, the time required to detect that there is no network varies between a few seconds until more than 1 minute (depending of your JVM and depending of your network configuration). Therefore, you can start Aladin with "-local" parameter to avoid waiting for the network time out.
Tip: In all-sky HEALPix mode, Aladin stores in a local cache ($HOME/.aladin/Cache/Background) your last surveys access. This local cache stays available even you have no network allowing you to redisplay your favorite region.
4.33 Can I reload the server descriptions without restarting Aladin?
Yes, you can. For instance if you have started Aladin with a network connection not yet ready.
Go to the menu "Edit -> User preferences..." and press the "Reload" button in the "Registry" section.
4.34 Can I pass additional JAVA options when I launch Aladin?
Yes you can !
But it depends of your configuration.
See the examples provides for increasing java memory
in the corresponding FAQ entry.
4.35 ** It Aladin supporting HTTPS?
Yes it is ! Since release 7.5
4.36 Can I run Aladin via a http proxy?
Yes you can!
If you want to run Aladin via a http proxy then you should execute it
with the following command:
java -Dhttp.proxyHost=###.##.###.## -Dhttp.proxyPort=## -jar aladin.jar
where the #'s correspond to the proxy ip address and port number.
(Thanks to John D. Tanner for this tip)
4.37 Can I run Aladin via a SOCKS5 proxy?
Yes, you can.
If you want to run Aladin via a SOCKS5 proxy, execute it with the following command:
java -DsocksProxyHost=<proxy-hostname> -jar aladin.jar
Example :
the following command will start a local SOCKS5 proxy:
ssh -D 1080 remote-hostname
You can then launch Aladin with:
java -DsocksProxyHost=localhost -jar aladin.jar
4.38 Which are the Aladin command line parameters ?
Available command line parameters can be known by launching Aladin with the "-help" parameter (java -jar Aladin.jar -help).
This command returns this help:
Usage: Aladin [options...] [filenames...]
Aladin -chart="[server[,server...]" object
Aladin -help
Aladin -version
Options:
-local: without Internet test access
-screen="full|preview": starts Aladin in full screen
or in a simple preview window
-glufile="pathname|url[;...]": local/remote GLU dictionaries describing
additionnal data servers compatible with Aladin
-stringfile="pathname[;...]": string files for additionnal
supported languages
-scriptfile="pathname|url[;...]": script by local files or url
-script="cmd1;cmd2...": script commands passed by parameter
-nogui: no graphical interface (for script mode only) => noplugin, nobanner, nobookmarks, nohub
-nobanner: no Aladin banner
-noreleasetest: no Aladin new release test
-[no]hub: no usage of the internal PLASTIC hub
-[no]plugin: with/without plugin support
-[no]bookmarks: with/without bookmarks support
-[no]outreach: with/without outreach mode
-[no]beta: with/without new features in beta test
-[no]proto: with/without prototype features for demonstrations and tests
-trace: trace mode for debugging purpose
-debug: debug mode (very verbose)
-chart=: build a png field chart directly on stdout
-help: display this help
-version: display the Aladin release number
The files specified in the command line can be :
- images: FITS (gzipped,RICE,MEF,...), HEALPix maps, JPEG,GIF,PNG
- tables: FITS, XML/VOTable, CSV, TSV, S-extractor, IPAC-TBL, Skycat or ASCII tables
- graphics: Aladin or IDL or DS9 regions, MOCs
- directories: all-sky HEALPix folders
- Aladin backup : ".aj" extension
- Aladin scripts : ".ajs" extension
New in V7.5: all-sky HEALPix folders, graphic regions, MOCs
4.39 Can I define/query other servers than Simbad/Aladin/VizieR/...?
Yes you can !
To do that, you have to write new server definitions in an additional file
and load this file in Aladin (for instance, use the script command "load yourfile").
The servers have to be accessible by a simple URL with a HTTP GET method.
The syntax required for these server definitions follows the GLU recommandations. Adapt this short example to your own needs :
%ActionName Foo
%Description My own server definition
%Aladin.Label MyServer
%Aladin.Menu Others...
%Aladin.LabelPlane MyServer $1/$2
%Url http://xxxx/yyy?ra=$1&dec=$2&radius=$3&color=$4...
%Param.Description $1=Right Ascension
%Param.Description $2=Declination
%Param.Description $3=Radius
%Param.Description $4=Color
%Param.DataType $1=Target(RA)
%Param.DataType $2=Target(DE)
%Param.DataType $3=Field(RADIUS)
%Param.Value $3=14.1 arcmin
%Param.Value $4=Red
%Param.Value $4=Blue
%Param.Value $4=Infrared
%Aladin.filter filter Mag.Circle { draw circle(-${Mag}) }
%Aladin.filter filter Prop.motion { draw pm(5*${pmRA},5*${pmDE}) }
%ResultDataType Mime(image/fits)
- ActionName: Unique identifier
- Description: Server description
- Aladin.Label: Button or menu label
- Aladin.Menu: label of upper-level button (in case of a submenu)
- Aladin.LabelPlane: Template of the plane label. $n will be
replaced by the corresponding parameters.
- Url: Server URL template with $n variables specifying the fields which have to be filled up by the users.
- Param.Description $n=: Description of the field number n
- Param.DataType: Data type of the corresponding parameter. The available formats are:
.Target(COO[b|d] | RA[b|d|h|m|s] | DE[b|d|dg|m|s] | SIMBAD | NED): sky target
.Field(RA[d|s] | DE[d|s] | SQR[d|s] | RADIUS[d|s]): field size
.Input(IMG|CAT): image or catalog url corresponding to Aladin plane data.
For COO, RA and DE, b extension is for blank separator instead of ":" and d and s, extension for degrees (resp. arcsec) instead of defaults (sexagesimal representation for position and arcmin for the field unit). RAh,RAm,RAs and DEdg,DEm,DEs in Target expression can be used for sexagesimal representation splitted in 6 fields. It assumes that coordinates are in J2000 frame
- Param.Value: Default value or list of available values for the corresponding parameter
- Aladin.filter [#One line comment\n]filter name { filter.definition }: this field is optional. It allows the data provider to describe some dedicated Aladin filters (see filter script command) that could be applied on its data
- ResultDataType Mime(xxx): To specify the data type provided by the server. For images: image/fits - fits file, image/gfits - gzipped fits file, image/hfits - hcompressed fits file, and for data: text/plain, text/tsv or text/csv for data in tab separated value syntax and text/xml for data in XML/VOTable syntax (see the corresponding sections) and for sia/xml for SIA results (Simple Image Access).
The servers that you have defined will be accessible by the buttons of the server selector window.
Note: If you are using Aladin in applet mode, the new server definition must be available itself via an http address and you must pass this address in the aladin launch url via an additionnal http parameter: -glufile=http://yoursite/yourGluFile.dic. Remember that this url must be http encoded.
4.40 How to visualize the FITS header?
Select the plane of this image in the plane stack by clicking on its name and press select the menu "Edit -> FITS header".
With Multiple Fits extensions, each FITS extension is inserted in a "folder" in the Aladin stack. The folder plane gives access to the main FITS header if there is one.
Note: Not only FITS images can provide FITS header: you can visualize the FITS header for JPEG or PNG images if these images have an astrometrical calibration embedded in the "comment segment" either in FITS syntax or in AVM syntax (see relevant FAQ item).
4.41 What is hidden beside the SHIFT and CTRL keys?
In order to keep the Aladin interface as simple as possible, some features are hidden and require the usage of the SHIFT KEY and CTRL KEY. By this way, you can:
1) With SHIFT:
- Remove several views and/or planes at a time: specify several views by clicking on them or several planes by clicking on their name, with the SHIFT key down. After that, press the Del button (without the SHIFT key pressed).
- Remove all views and/or planes: With the SHIFT key down, press the Del button to remove all views. If there is no view, all planes will be removed.
- Select several sources not in the same rectangular area: maintain the SHIFT key down during the selection.
- Select several views: maintain the SHIFT key down and click in each view (only in multiview mode)
1) With
CTRL:
- See all the image: click in the Zoom Frame (at the bottom-right of the screen) with the CTRL key down to automatically adjust the zoom factor in order to see all the image in its view.
- Force the reticle moving: with the CTRL key down, a click in the view (or one view in multiview mode) move the reticle (large magenta cross) even if there are "selectable" graphical overlays at this position.
4.42 ** How to use the plane stack?
The plane stack allows you to control the view display. Each plane stores the result of a server query (image, tables, all-sky HEALPix views) or possibly some additional graphics. The eye of the observer is at the top of the stack and sees the projection of all active planes.
- Click on a checkbox or directly on a plane icon to activate (or deactivate) the plane.
- Click on a plane name to select it; then the tool buttons which are
authorized for this kind of plane are activated.
Maintain the Shift key to select several planes together
- Click and drag the plane icons in the stack to change the order of the display. The first image hides all planes underneath.
- Click and drag the sliders at the bottom of the stack for adjusting respectively the opacity level, the size of objects, or the zoom factor
- Click and drag the plane icon from the stack to a view panel (especially in multiview mode) to create a new view for this plane (see next section).
- Organize your data in folders (via the popup menu)
4.43 ** Why the plane stack checkboxes disappears sometimes?
In the last Aladin version (7.5), the checkboxes controlling the reference plane associated to each view are displayed only if there is a possibility to choose another reference plane. Otherwise, the checkboxes are removed to simplify the stack usage.
Note: You can force a plane - even a catalog plane - to be a reference for a view just by clicking and dragging the plane icon from the stack to a view panel.
4.44 How to use the multiview mode?
Aladin allows you to display simultaneously several views (2,4,9 or 16 views). You control the number of view panels via the multiview controller at the bottom left of the Aladin screen or via the menu "Edit -> Multiview -> ...".
Each view uses its own reference projection (typically the projection of the base image in the view) and its own zoom factor. Catalogues and graphical overlays will be projected according to the projection/zoom factor for each view. It is possible to create several views for the same image with different zoom factors.
The simplest method to specify the reference image of a view is to click and drag the image plane logo from the Aladin stack to the view panel. You can use also a catalogue instead of an image.
The number of views is not limited. When you have created several views but some of them are not visible, you can access them via the appearing vertical scrollbar at the left side of the view frame. Only the displayed views use memory, the invisible views do not spend any memory.
Selection:
A green border around the view panelsand an associated highligh name in the stack plane show you the correspondence between the views and their reference planes. Move your mouse on a view or on a stack plane to see these correspondences.
A blue border show you the selected view(s) for which an action can be operated (Del, Pixel, Zoom, RGB, Assoc). Click on a view to select it. Maintain the SHIFT key to select several views.
Match scales & orientation:
If you just press the "match" button under the main panel (or via the menu "View -> Match scales and orientation (Alt Q)"), Aladin automatically selects all views compatible with the current view and display them in the same astrometrical solution (based on 4 corner projection) until you deselect this fonction.
Move or Copy:
You can move a view from a panel to another one just by clicking and draging it from the original panel to a new one. Also, if you maintain the CTRL key pressed during this operation, the view will be duplicated.
4.45 ** Is it possible to overlay an image to another one?
Yes, you can.
If you have atleast two images in the stack covering the same region,
and you select the upper one, you will activate the "opacity slider" at the bottom of the stack. If you click & drag it, you will increase/decrease the opacity level of the corresponding image. And by this way you will overlay this image to the other one.
You can also open the Property frame of this image for using a larger slider (Prop. button).
In multiview mode, the image for which the opacitity level has been modified can be drawn over several views depending of the stack order (if this image is not used as "a reference" in another visible view)
Note: the image overlay is not a full resampling (better but slower), the four corners are reprojected and the image is drawn by a simple affine transform method. For large images (greater than one degree) the overlay will be distorded.
4.46 Sometime I cannot overlay two images. Why?
Aladin allows you to superimpose several images by modifying the opacity level of the images above. However, if the above image is itself used as a reference for another visible view (see multiview mode), Aladin desactivates automatically the opacity mechanism for allowing side by side comparison.
4.47 Do I need a three-button/wheel mouse?
Three buttons are more useful because some usual functions will be directly available via the mouse:
- Left button: for selecting sources and graphical objects
- Middle button: for panning
- Right button: for adjusting the pixel contrast
- Wheel : for zooming
All these functions are also available via the tool bar.
4.48 How to use the mouse wheel zoom?
The mouse wheel zooms or unzooms the current view. When it increases the zoom factor, Aladin centers the new view on the reticle position.
So the best way to use the mouse wheel is to proceed in two (or three) steps:
- click on the position (astronomical object) that you want to zoom;
- turn the mouse wheel...
- ..and in multiview mode, if the "synchronization function" is activated, Aladin will adjust the size of all compatible views.
4.49 How to use the "Location" field?
The Location field is the small white rectangle below the Aladin menu. It is used for several purposes:
- Locater: when your mouse is on the current view, the field displays the location of the mouse pointer in the view. This location is given in the current coordinate system, by default J2000 in sexagesimal syntax. If you click in the current view, the current position is memorized and can be picked up by moving the mouse pointer into the "Location" field (by example, for a cut-and-past).
When your mouse is in the measurement frame, the field display the coordinates of the astronomical object under the mouse pointer. If you click on it, these coordinates are memorized and can also be picked up from the "Location" field.
- Coordinate location: If you write coordinates into the "Location" field and press the RETURN key, the "reticle" (the small magenta cross) will be moved at this position.
- Loader: If you write a file name or an URL and press the RETURN key, aladin will load the corresponding data (images, catalogs,...)
- Object resolver: If you write an astronomical object identifier and press the RETURN key, Aladin will ask to the CDS resolver (Sesame=Simbad+VizieR+NED) to retrieve the corresponding coordinates, and the "reticle" will be moved at this position.
note: If there is not image and data loaded yet, Aladin will load automatically an image around this position (by default DSS colored - see user preferences for modifying this default).
- Script command: You can also launch any Aladin script command from this field
4.50 Can I draw a contour?
Yes, you can !
These contours are memorized with astronomical positions. It means that you can display them on another image not necessary having the same resolution.
4.51 * Can I change the colour map?
Yes, you can!
Click on the "pixel" button or use the menu "Image -> Pixel contrast & map". You can reverse colours, apply false colours, adjust the pixels dynamics and/or select a transfer function (
hsin, sqrt, log, sqr, pow...).
Also, the user can visualize where a specifical level of pixels is located in the image just by moving its mouse pointer through the colomap band on the top of the Colormap window. The corresponding pixels will be drawn in red color and the others in gray levels.
The user can also quickly adjust the pixels dynamics by clicking-and-dragging the right mouse button directly in the view - "a la DS9".
Since release 7, it is possible to modify simultaneously the colour maps for all selected images in the stack.
4.52 Can I load my own colour map?
Unfortunately not yet! Certainly in a next release.
However, if you use the IDL Aladin library, you can send an IDL colormap to Aladin (see IDL FAQ item).
Also, if you have an interesting colormap not yet in Aladin, do not hesitate to send it us (3 arrays of 256 values in [0..255], for the red, green and blue components).
4.53 Can I reverse the image colours?
Yes, you can!
Click on the "pixel" button and click on the "Reverse" button.
4.54 ** Can I display my color map ?
Aladin version 7.5 allows you to display the current color map over the image (menu Overlay -> color map). You can clic on this colormap tool to modify its position or its size. Just by moving the mouse over it, you will "paint" temporary the image pixel region concerned by the color map value under the mouse pointer.
4.55 ** How to use the photometric tools?
Aladin release 7 offers new tools concerning photometric measurements. These tools are associated to the "phot" tool and to the "draw" tool. These tools offer both manual pixel statistics and local source extraction capability:
- Manual pixel statistics:
For instance, select the phot tool in the tool bar and click on a star + drag until the drawn circle is covering all the star. Aladin will compute the sum, the average, the median, the sigma and the surface of the embedded pixels. In a same way, select the draw tool, and draw an area. Close your shape by clicking again on the first point.
Tip: If you zoom enough on your photometric shape, the concerned pixels are tagged with a small circle
Note: Remember that Aladin is supporting arithmetic operations meaning that you can easily remove the background noise
Note:Since release 7.5, the circle phot tool is also supported in all-sky HEALPix mode when the survey is displayed in true pixel values (FITS mode).
- Local source extraction: With the same "phot" tool, click on a source. Aladin will draw an ellipse based on a local extraction of this source. If you select this source, Aladin displays the associated measurements (central position, background estimation, peak level]...
Thanks to P.Grosbol's "Image Quality Estimate" original code from ESO).
4.56 ** Can I change the object size/colour/shape...?
You have three solutions:
- by clicking on the "Prop" button. The properties window concerns only the selected graphical object, or the selected plane if there is no individual object selected.
- You can also change the object size/colour/shape via "filters". In this case you will constrain this size or colour according to column values. By this way you can draw circles proportional to the magnitude, ellipses for galaxy dimension, etc. (See the documentation available in the filter frame.)
- via the "set" script command (example: set Simbad shape=cross)
4.57 Can I create or modify image astrometric calibration?
Yes you can.
Select the image in the plane stack by clicking on its name and select the menu "Image -> Astrometrical calibration...". Then, edit or create a new astrometric reduction either by parameters, either by star matching or by editing directly the WCS header.
By script, you can use the "set" command with the dedicated prefix "FITS". For instance, set MyImg FITS:CRPIX1=400 will modify the pixel reference coordinate of the first axis.
4.58 ** Can I change the BITPIX of a FITS image...?
Yes you can !
The Aladin version 7.5 provides this new feature, either via the menu "Image -> bitpix convert", or via the script command "bitpix".
4.59 Can I modify the catalogue projection?
By default, the catalogue projection is determined by the astrometrical solution of the background image. But if you have no image, but just the catalogue, Aladin uses a default projection: TAN for small fields, ZEA for middle size fields and AITOFF for the whole sky.
You can change this projection via the "Properties" of the catalogue plane.
4.60 Can I project a catalog on one image only?
This question makes sens only in multiview mode.
By default, a catalog is projected on all compatible views for which the reference plane is under the catalog plane into the Aladin stack. But if you move the catalog plane and the reference (image) plane into the same stack folder, you can limit the projection for this image only.
Open the folder propertie and select "local scope" attribute instead of "global scope" attribute. The folder with local scope behaviour is drawn like a closed envelop.
Note: You can modify this property via the "set" script command:
set FolderName scope=local|global
4.61 Can I abort a query?
Yes, you can !
Click on the name plane associated to your query. Remove this plane by clicking the "Del" button in the toolbar.
5 * "ALL SKY" USAGE
5.1 * What is the "allsky mode" in Aladin 7 ?
Aladin 7 provides access to all sky surveys with the capability to zoom and pan on any regions ("a la Google Earth"). This display mode allows you see the sky at any scale, even the whole sky.
This display mode can take into account all sky or wide image surveys, catalog surveys and density maps.
5.2 * How do I control the "allsky" display ?
In "allsky mode", the best way to control the display requires a mouse :
- one click to move the reticle;
- double click to recenter the view on the reticle;
- mouse wheel to zoom/unzoom;
- click & drag with the middle button to pan.
You can also use the touchpad, or the dedicated buttons/menus, but it is less flexible.
When you are zooming, Aladin will load automatically the pixels covering your current view according to your current zoom factor. The stack plane associated to the all sky survey shows a control ball helping you to know the state of this process:
- blinking ball: Aladin is still downloading additionnal data;
- light green ball: the display is ready;
- dark green ball: the display is ready and there is no better resolution data for this region;
- red ball: there is a problem (server error, missing data...)
5.3 ** Can I modify the all-sky projection?
By default Aladin uses a spherical (sinus) projection to display the whole sky, but you can also display the sky in AITOFF or any other projections supported by Aladin (sinus,tangential,aitoff, zenital equal area, stereographic, cartesian, mollweide,...) => see the "Properties" button.
5.4 * Can I display images over an all sky ?
Yes you can, even an all sky over another all sky. Use the small slider at the bottom of the plane logo (in the stack) for adjusting the transparency. If the slider is too tiny for you, you will find another large slider in the propertie frame associated to the survey.
5.5 * Can I get the true pixel values in allsky mode ?
Yes you can, but only for surveys providing them.
For good performances, the remote allsky surveys are generally distributed in 8 bits pixels in JPEG format (color or grey levels). But you can switch from JPEG format to FITS format (use Pixel panel via the corresponding button). You get the same allsky mode, but in true pixel mode (be patient, it can take a while).
Note that the FITS mode allows you to adjust as you need the contrast. In JPEG mode, the pixel dynamic has been computed in advance in 256 levels.
5.6 * How does the Aladin allsky mode work ?
Aladin 7 provides access to all sky or wide image surveys with the capability to zoom and pan on any regions (see below). This new mode is based on a HEALPix tesselation scheme. According to the HEALPix principle, the sky is divided in 12 equals area rhombs. Each rhomb can be divided in 4 sub-rhombs recursively until reaching the maximal survey resolution. Libraries and documentation on HEALPix can be found at this address : http://healpix.jpl.nasa.gov. Aladin uses this hierachical division to gain speed and only load the rhombs that cover the current user view.
Internally, Aladin is spliting the survey in a hierarchy of directories storing all the HEALPix rhombs. The structure is quite simple. In order to avoid too many files, Aladin manages HEALPix surveys via 512x512 pixels tiles. Each tile is stored in a separated file, labelled by its HEALPix index number (either in FITS for true pixel value access and/or in JPEG). The hierarchy deeply depends of the maximal survey angular resolution. Presently, the maximal angular resolution supported by Aladin 7.5 is 0.0004" (*) (NSIDE=536870912 => 12* 2^20 * 2^20 tiles of 512*512 pixels)
/Norder3
+Dir0
+ Npix0.fits
+ Npix1.fits
+...
+ Npix767.fits
...
/Norder11
+Dir0
+Dir10000
+...
When the allsky survey is loaded from an http server, in order to increase the display speed, these HEALPix hierarchies are dupplicated in a user cache directory ($HOME/.aladin/Cache/) following the same directory structure.
Thanks to Martin Reinecke for the new HEALPix java API.
5.7 * Is Aladin supporting HEALPix all sky maps ?
Yes it is, since release 7
Aladin is able to load standard HEALPix maps stored in a FITS file (in fact a FITS binary table), in RING or NESTED scheme, and/or in partial mode (whenever a subpart of the sky only is described). This mode is notably adapted for low resolution surveys (typically file < 1GB).
Good examples of HEALPix fits maps can be loaded from the LAMBDA site. For instance cut and paste in Aladin this WMAP map http://lambda.gsfc.nasa.gov/data/map/dr4/skymaps/7yr/raw/wmap_band_iqumap_r9_7yr_K_v4.fits - 96MB:
For deeper surveys (>1GB), Aladin uses its own HEALPix structure based on a hierachy of directories and files (see above "How the Aladin allsky mode works").
5.8 * Is Aladin supporting HEALPix cube maps ?
Yes and no !
As described below, Aladin is able to load standard HEALPix maps stored in a FITS file. This FITS file can contain several extensions, for instance an extension instance an extension for the intensity all-sky map, another extension for the all-sky map containing the number of observations at each location... In this case Aladin allows the user to create one all sky view per extension (via the Propertie of the plane in the stack). But it is not really a display of an all-sky cube (as a movie).
5.9 * I've heard that Aladin 7 can drawn polarisation data ?
Yes it can.
As described below, Aladin is able to load standard HEALPix maps stored in a FITS file. This format supports extensions that describe Q and U polarisation parameters for each pixel. When Aladin finds this information, it allows the user to create:
- a polarisation overlay plane displaying polarisation segments over each pixel. The density, size and thickness of these segments can be controlled via the Propertie panel associated to the polarisation stack plane;
- a false color view based on polarisation angles;
- a false color view based on polarisation intensities.
Good examples of HEALPix fits maps containing polarisation data can be loaded from the LAMBDA site. For instance cut and paste in Aladin this WMAP map http://lambda.gsfc.nasa.gov/data/map/dr4/skymaps/7yr/raw/wmap_band_iqumap_r9_7yr_K_v4.fits - 96MB:
5.10 ** Can I "crop" an image from an all sky survey ?
Yes you can, via the menu "Image => Crop image area" (or directly via the "crop" button) you activate the crop tool. Select the region by clicking and draging the red control rectangle, and validate your choice. You can directly edit the size of your target image by double clicking the small figures.
When your background survey is displayed in JPEG mode, the resulting image will be a simple "screen dump", with a simple astrometrical calibration. But when your background survey uses the FITS mode, the resulting image will be produced by a resample algorithm from the original HEALPix pixels to the resulting FITS image. It is better but slower. The resample algorithm is based on the bilinear approximation method (since version 7.5).
5.11 ** Can I create my own all-sky survey ?
Aladin version 7.5 allows you to create your own all-sky survey from a set of FITs or JPEG images. The goal is to prepare yourself a hierarchy of HEALPix files that Aladin will be able to display.
You can use the menu "Tools => HEALPix all-sky builder" and follow the instructions.
But as this process can be long (several days for all DSS images), it is possible to do the same thing via a command line using Aladin "SkyGen" entry point. In this case, the Aladin graphical interface won't be activated.
The simplest SkyGen command is:
java -Xmx1000m -cp Aladin.jar cds.allsky.SkyGen -input=Path
The list of optional parameters can be displayed via the "-h" option.
The main parameters are:
- -input Source image directory (fits or jpg+hhh)
- -output HEALPix target directory (default path+"ALLSKY")
- -mode Coadd mode when restart: pixel level(OVERWRITE|KEEP|AVERAGE) or tile level (REPLACETILE|KEEPTILE) - (default OVERWRITE)
- -img Specific reference image for default initializations (BITPIX,BSCALE,BZERO,BLANK,order,pixelCut,dataCut)
- -bitpix Specific target bitpix
- -order Specific HEALPix order
- -border Margins (in pixels) to ignore in the original images (N W S E or constant)
- -blank Specific BLANK value
- -skyval Fits key to use for removing a sky background
- -region Specific HEALPix region to compute (ex: 3/34-38 50 53) or Moc.fits file (all sky by default)
- -jpegMethod Jpeg HEALPix method (MEDIAN|MEAN) (default MEDIAN)
- -pixelCut Specific pixel cut and/or transfer function for JPEG 8 bits conversion - ex: "120 140 log")
- -pixelRange Specific pixel value range (required for bitpix conversion - ex: "-32000 +32000")
- -color True if the source images are colored jpeg (default is false)
- -force Do not take into account possible previous computation
You can also control separately each steps of HEALPix process.
The main actions are:
- index Build finder index
- tiles Build HEALPix FITS tiles
- jpeg Build JPEG tiles (from FITS tiles)
- cleanIndex Remove HEALPix index
- cleanfits Remove FITS tiles
Once you have generated the HEALPix survey, it's possible to use it locally, or to offer your data to your collaborators, or even to the whole Aladin community, just by exposing these files via a HTTP server. A simple access to target path URL is enough for accessing to your HEALPix survey.
Note: It is possible to do same thing with a set of JPEG images, but in this case you need an astromic calibration, either via associated ".hhh" files containing the WCS FITS keywords, or directly with JPEG images storing the FITS calibration as a JPEG comment (see JPEG calibrated image section).
5.12 ** Is it possible to create a **colored** all-sky survey?
Yes it is ! You have two possibilities.
Your original images are in colored JPEG, with associated astrometrical calibration (via .hhh file or inside the JPEG comment). In this case you proceed as for FITS original images (see previous section).
Alternativly your original surveys are provided in two or three bands and you want to combine them in an all-sky colored survey. In this case, you generate first separately the all-sky surveys, one per band (see previous section). And after that, you open the last tab of the tool "Menu Tools -> HEALPix all-sky builder" and follow the instructions.
5.13 * How to distribute my own allsky survey ?
In order to distribute an all-sky survey that you generated as in the above section ("Can I create my own all-sky survey"), you have just to expose the allsky survey behind an HTTP server. No data base system nor dedicated CGI are required, only files.
- If you have a simple HEALPix map as an unique FITS file, just expose it behind your web server. The URL can be directly loaded in Aladin. In practice, this method works only for small files (<100MB).
- If you have generated a hierarchy of directories/files (by using the menu "Tools => => Build your all sky"), just expose them behind your web server. The URL of the root directory can be directly loaded in Aladin. It is the best method, notably for large surveys. In this context, it is recommended to also generate the JPEG tiles for efficient remote acess. The users will have the choice to switch from fast JPEG access to Fits true pixel value (but slower) mode
Describe your allsky survey:
In order to see your allsky survey in the Aladin allsky menus, you have to describe it via a small record (GLU syntax), stored in a text file. Use the "publish" form available via the menu "Tools => HEALPix tools => Build your all sky + Publish Tab" to generate this file or adapt the example below.
Once this is done, you can load this file in Aladin and the all-sky tab of the Aladin server selector will be updated to include your survey.
You can distribute this file to your collaborators. You can also send it to CDS (question at simbad.u-strasbg.fr) in order to publish it to the whole Aladin community.
%ActionName MySurvey.hpx
%Description This is my survey
%Url http://my.web.server/mysurvey
%Aladin.Profile >6.1
%Aladin.XLabel My survey
%Aladin.Tree Image/Test
%Aladin.HpxParam 6 jpeg fits galactic
%VerboseDescr This survey has been produced....
%Institute ...
%Copyright ...
%Copyright.url http://...
%Doc.User http://...
Note:
The HpxParam is a list of keywords:
- The first figure provides the maximal level according to this rule : NSIDE = 2^(level+9). In practice, have a look in the directory hierarchy and pickup the largest NN in the NorderNN directories.
- jpeg, fits means that you distribute both the jpeg and fits tiles, and jpeg is the default.
- galactic|equatorial|ecliptic describe the refence system - the default is galactic.
- If your survey consists of a single HEALPix fits map (instead of a directory hierarchy), then replace all the keywords by "map".
Tips: If your survey is stored in simple HEALPix map, but the corresponding file is too large for an efficient remote access (files > 100MB), you can use the directory system build in your Aladin cache directory instead of the original single Healpix map file. To do so, you need to display at least once the HEALPix fits file in Aladin. Aladin will thus create a directory hierarchy in its cache ( $HOME/.aladin/cache/HPX/TheNameOfYourFile/TFIELD1). You can then just expose this directory behind your Web Server. Please note that before exposing it, you can generate the JPEG files by using the corresponding tab via the menu Tools => HEALPix tools => Build your all sky".
5.14 * Can I control the access to my survey ?
Note: If your survey is exposed behind a protected web server (by password), at the first access of your survey, Aladin will ask to the user the name/password parameters according to the HTTP standard (basic protection).
5.15 * What is this "HpxFinder" directory in my allsky survey directory ?
When you generate an HEALPix all sky via the menu "Tools => HEALPix tools => Build your allsky", Aladin needs to generate a temporary index. This directory is not required to display the allsky survey and you do not need to expose it behind your web server if you want to publish your survey.
5.16 * The click & drag function does not move the sky as I want it to !
In spherical projection (sinus), when you pan the sky, the sphere rotation is done around the poles. If you display an allsky survey and you want to move through the galactic plane, it will be difficult if your reference frame is equatorial (ICRS for instance). Switch to GAL the current reference frame, or display the coordinate grid for vizualizing easely the equator plane.
Tip: You can set the default system frame via the user preferences (menu Edit => User preferences).
5.17 * Sometime I get the true pixel value, sometime I do not !
Aladin all sky display has two modes:
- a fast JPEG mode (the indivual HEALPix files/rhombs are in JPEG format);
- and a slow FITS mode (the indivual HEALPix files/rhombs are in FITS format).
The second mode is dedicated for accessing the true pixel values (move your mouse over the survey). If your survey provides both JPEG and FITS rhombs, you can switch between these two modes via the "Pixel frame" (Menu : Image => Pixel contrast").
The FITS mode is inevitably slow (files are 10 to 40 time larger), but remember that the files are dupplicated in a local cache disk. So the next time you view the same region, it will be faster.
5.18 * Can I display the survey in galactic system, and get the coordinates in equatorial system ?
Yes you can ! Use the "Properties" panel associated to the survey for dissociating the survey frame and the coordinate frame.
5.19 * Can I move to a specific HEALPix pixel number ?
Yes you can !
In the location field, type the HEALPix pixel number (NESTED notation) prefixed by the HEALPix order (NSIDE = 2^order) - use "/" as separator.
For instance, "3/755" will move the reticle to the center of the HEALPix pixel number 755 at the NSIDE 2^3) => 315 -24.625 GAL
You can also activate the HEALPix cursor which displays the HEALPix pixel border containing the mouse pointer. Use the menu : Tools => HEALPix mouse control => ... and choose the required NSIDE. Note that the HEALPix rhomb borders are drawn from corner to corner, it is not the real HEALPix geometry.
5.20 * Can I display the whole HEALPix grid ?
Yes you can, but it is designed for Aladin debugging.
However you can use it via the menu : Tools => HEALPix tools => Display control grid (Alt+W). The NSIDE is automatically adjusted according to your current view.
If you zoom enough, the number of the HEALPix pixel is displayed following this syntax : ORDER+subOrder/NESTED-number (RING-number). The subOrder figure is related to the Aladin HEALPix display mechanism: you can ignore the subOrder but if it is present, take care that several adjacent sub-rhombs concern the same HEALPix pixel (same label)
The lower possible NSIDE is 8 (768 rhombs). Notice that the HEALPix grid lines are drawn from pixel corner to pixel corner, it is not the real HEALPix geometry.
5.21 * It seems that the all sky mode requires more memory !
This is true. You need 64MB for running Aladin in all sky mode, but in practice 256MB is more appropriate.
However, two functions require more memory:
- To load a HEALPix Fits map in RING ordering: the RAM must contain the whole sky => in practice, NSIDE 8192 in RING is a limit (3.75GB RAM required). There is no such constraint for HEALPix Fits maps in NESTED ordering.
- for creating your all sky from a collection of large FITS images: use as much memory as possible to speed up the process time;
5.22 * I can not adjust the contrast of colored all sky !
Unfortunately, you can not. Aladin uses a true color mode too slow for supporting contrast adjustement on the fly in this all sky mode. However, in grey levels you can, and also with the full original pixel dynamic (in FITS true pixel value display).
5.23 * Can I build an allsky progressive catalog myself?
Unfortunately not (yet) !
In Aladin v7, some large catalogs can be displayed progressively, according to the current zoom factor of the user (for instance Simbad). The more you zoom in, the more you get sources. On the contrary to the image all sky survey for which you get the possibility to build it yourself (menu Tools => HEALPix tools => Build your allsky"), you cannot do it yourself for catalogs.
May be in a next version.
5.24 ** I can not display my HEALPix map?
Aladin requires an HEALPix map with a NSIDE greater or equals to 8 and necessarely a power of 2.
6 SCRIPT MODE AND MACROS
6.1 What is the "script mode"?
Aladin's experienced users have access to a possibility to control Aladin: the
script mode or
command line mode.
This control mode can be used via:
- a window console (Menu Tools -> Script console) prompting each command;
- the execCommand() method of the VOApp JAVA interface (see VOApp section). By this way, any collaborative java applications and notably any Aladin compatible plugins can control Aladin;
- the standard input (standalone version only). So you can used it by redirecting a script file or the standard output of another program (see the PERL example below). In this case, you can use the
"-nogui" parameter on the command line hiding the graphic interface;
- SAMP VO standard. In this case, you can use the "script.aladin.send" message, taking the command to be sent as an argument.
It is also possible to use it in Applet version in order to launch
Aladin in a pre-configured state. See the question Can I launch
Aladin Applet with predefined images or data for this purpose.
Tip: You can also pass any script command
into the rectangle indicating the current position.
Here is the script command list:
PLANE: VIEW:
get servers [target] [radius] mview [1|2|4|9|16] [n]
load filename cview [-plot] [[x] v]
select x1 [x2..] select v1 [v2..]
set [x1] [x2..] prop=value zoom ...
hide|show [x1] [x2..] northup|unnorthup [v1] [v2..]
mv|copy x1 x2 lock|unlock [v1] [v2..]
rm [x1] [x2..] | -all stick|unstick [v1] [v2..]
export [-fmt] x filename mv|copy v1 v2
rm [v1] [v2..] | -lock
IMAGE: save [-fmt] [-lk] [WxH] [filename]
cm [x1|v1...] [colorMap...] coord|object
RGB|RGBdiff [x1|v1...]
blink|mosaic [x1] [x2...] CATALOG:
+ | - | * | / ... filter ...
norm [-cut] [x] addcol ...
conv [x] ... xmatch x1 x2 [dist] ...
kernel ... cplane [name]
resamp x1 x2 ... thumbnail [npix|radius"]
crop [x|v] [[X,Y] WxH] search {expr|+|-}
flipflop [x|v] [V|H] tag|untag
contour [nn] [nosmooth] [zoom] select -tag
grey
bitpix [-cut] [x] BITPIX
GRAPHIC TOOL: FOLDER:
draw fct(param) md [-localscope] [name]
grid [on|off] mv|rm [name]
reticle [on|off] collapse|expand [name]
overlay [on|off] show|hide [name]
MISCELLANEOUS:
backup filename status sync demo [on|off|end]
pause [nn] trace mem info msg
macro script param call fct list [fct] reset
setconf prop=value function ... quit help ...
The Aladin V7.5 new commands are: bitpix, macro
The help for each command can be access via the help script command. It can be also found in the Aladin reference manual.
Example of PERL script controlling Aladin:
To create a view with GSC1.2 and Simbad overlayed on the default
image of Aladin image server for 3 astronomical objects .
#!/usr/bin/perl
open(ALADIN,"| java -jar Aladin.jar");
print ALADIN "grid\n";
foreach $obj ("M1","M104","NGC2024") {
print ALADIN "reset; get aladin,Vizier(GSC1.2),simbad $obj;\n";
print ALADIN "zoom 10arcmin; reverse; save $obj.jpg\n";
}
print ALADIN "quit\n";
close ALADIN;
Example of Python script controlling Aladin:
Same example as above, but in Python:
#!/usr/bin/env python
import subprocess
p = subprocess.Popen(['java -jar Aladin.jar'],
shell=True,
stdin=subprocess.PIPE
)
p.stdin.write('grid on\n')
for obj in ('M1', 'M104', 'NGC2024'):
p.stdin.write('reset; get aladin,VizieR(GSC1.2),simbad '+obj+';\n')
p.stdin.write('zoom 10arcmin;save '+obj+'.jpg\n')
p.stdin.write('quit\n')
p.wait()
Other example by simple redirection:
To create a RGB image for M1 with three images coming from Aladin server, STScI DSS server and ESO DSS server.
echo "get aladin(2mass),STScI(dss1),ESO(dss2) M1;rgb;save M1.png;quit" | java -jar Aladin.jar -nogui
6.2 How works the "get" script command?
The
get command is the most powerful script command in Aladin. Its syntax is very flexible in order to cover all kind of servers.
[PlaneName =] get ServerName(keyword,...)[,ServerName(keyword,...)...] Target [RadiusUnit]
- PlaneName The name used in the Aladin stack (optional)
- ServerName can be any of server names shown in the
Aladin's server frame (Aladin, Simbad, VizieR, NED, SkyView, SSS.cat,
SSS.img, DSS.ESO, DSS.STScI, ..., or even Fov and File). Each
server name can be followed by keyword list in parentheses and
separated by commas.
- Target can be a Simbad identifier or J2000 coordinates
in sexagesimal syntax (with a space as the separator).
- Radius must be specified with the unit (deg,arcmin,sec
or ' ") without any blanks between the figure and the unit.
The radius specification will be taken into account only for the
servers which can manage it.
If the Radius is omitted, Aladin takes the most appropriate radius according to the current view. If the Target is omitted, Aladin takes into account the last specified target.
For a given server, the number and the order of the keywords don't matter.
Aladin tries to associate automatically the keywords with the server query vocabulary. That gives a very simple general syntax for any servers but it can have ambiguities if there is the same keyword for two different things (ex: a scan machine called JPEG).
In this case, it is now possible to prefix the value by a parameter name (ex: survey=DSS). The parameter name will be search in the description of the parameter.
If there are several matched items, just one is returned (choose by the server).
In these context, the available keywords evolved according to the evolution of the servers.
- Aladin image server: currently, you can constrain :
- the survey name: DSS1, DSS2, MAMA, 2MASS, IRAS
- the colour: R, I,.... depending of each survey standard
- the survey origin: SERC...
- the coding: JPEG,FITS
- the resolution: PLATE,LOW,FULL for DSS and MAMA surveys
- VizieR: you can give catalogue names. You can also specified the dedicated keywords "allcolumns" and "allsky" to retrieve respectively all catalogue columns (and not only the default ones), and/or the whole catalog.
- File: you can specify a filename, or an URL. (see below)
- Other servers: any keyword displayed in the query form can be specified (surveys for SkyView, colours for SuperCosmos...)
A few examples:
- Foo=get ned M101 => Load NED around M101, the result will be stored in the "Foo" stack plane
- get aladin(J,FITS) m1 => load a FITS image in J color band around M1
- get VizieR(USNOB,2MASS) HD1 20' => Load USNOB and 2MASS catalogs from VizieR around HD1 with a 20 arcmin radius cone search
- get VizieR(logXMM,allsky) => Load the XMM log for the whole sky from VizieR service
- get skyview(400,"60 micron",Sin) M31 => Load an IRIS 60 microns image from Skyview server (400x400 pixels, Sin projection)
- get NVSS(Pixel size=10) M1 => Load an NVSS image (pixel size 10 arcsec)
- get Aladin(DSS2,FITS),Simbad,VizieR(GSC2.2),SkyView(2MASS),Fov(WFPC2) M1 10' => Load lots of data around M1
Tip: By opening the Properties of the generated plane, you can see the URL query. It is a good method for verifying your query interpretation.
Tip: You can learn a lot about the "get" syntax by opening the Aladin console (F5) and looking the generated echo commands.
6.3 ** Can I use the get script command for all-sky survey?
Yes, you can !
The keyword is logically "allsky" and the syntax keep the same usage:
get allsky(name[,fits|jpeg]) [object] [size]
The "name" can be the full name as it is displayed in the Aladin menu (use the quotes (") in case of separator), or a part of the full name.
For instance: "get allsky("2MASS K",fits) orion 3°" will open the all-sky 2MASS K survey in Fits mode (true pixel values) centered on orion in a field of 3 degrees.
6.4 The get command returns an information tree and I want an image!
Some servers requires two steps for selecting images: the first step generates a list of available images, displayed as a metadata tree. And you must check some of them for really downloading the images.
Now, you can add some constraints in the get command list for filtering the metadata tree and immediately download the relevant image.
For instance "get SDSSDR7(Title=filter g) NGC1055" will return immediately the first image for which the metadata title contains the "filter g" substring.
Notice that you can mix constraints concerning the first and the second steps. For instance: in "get MAST(ACS,filename=J9FX08031) 5 34 32 +22 00 52", the "ACS" constraints will be used in the first step by constraining the SIAP query (matching one default value). The "filename=J9FX08031" will be used in the second step for filtering the SIAP result and querying the relevant image.
Tip: The dedicated parameter "Number" allows you to specify how many images you want. For instance "get SDSSDR7(Title=filter g,Number=5) NGC1055" will return the five first images matching the "Title" constraint.
6.5 * How works the "sync" script command?
First of all, the "sync" script command is no longer required with Aladin version 7 ! Yes !
By default, Aladin 7 is working in "auto sync mode". It means that Aladin will wait the end of previous script commands if it is required to execute the next one. You have the possibility to switch off this mode by the "setconf sync=off" command notably for accelerating your script).
But, normally you can forget this "sync" command. Otherwise if you really want to know how it works :
As Aladin can be retrieved simultaneously several images and catalogues, the
sync command is required to freeze the Aladin script interpreter until all these data are effectively arrived.
Example: Suppose you would like to load your own FITS image and to overlay it by the GSC2.2 catalogue from VizieR. Your script will be:
load myimage.fits; sync; get Vizier(GSC2.2). The "sync" is required to be sure that the image has been totally loaded before querying VizieR. Without the "sync" command, you should have to specified the target and the radius to have to independant queries (for instance: load myimage.fits; get Vizier(GSC2.2) m1 14')
6.6 * Can I use "macros" in Aladin?
Yes you can !
The Macro tool (menu: Tools -> Macro controller) allows you to write (or load) an Aladin script which will be used for an object list. This objet list can be written by hand or loaded from a file.
It is a very simple and powerful tool for repeated actions.
In order to use macros, open the Macro controller window from the Tools
menu. This window is splitted into 3 parts :
- the top panel allows you to write the script to be executed.
Parameters should be written as '$1', '$2', The script can also be
loaded/saved from the File menu.
- the middle panel allows you to type a list of parameters. First column
contains the set of values for parameter '$1', second column values for
parameter '$2', etc. This list can also be loaded/saved from the File
menu, or even imported from a catalog plane (see menu File).
- the bottom panel is made of several buttons controlling the execution
of the script
Usage example:
Script :
reset
get aladin($1) $2
sync
get simbad
get vizier($3)
sync
contour 5
Parameters:
DSS1 hd2 USNO-B1
2MASS hd2 UCAC2
DSS2 taurus NOMAD
2MASS taurus GSC2.2
IRAS ngc1333 Tycho
6.7 ** Can I launch a "macro" via a script command?
Yes you can !
The Aladin version 7.5 offers a new script command called "macro" which takes 2 parameters. The first one is the path of the macro, and the second one, the path of the macro parameters.
6.8 Can I create thumbnail images from a target list?
Yes you can !
There are two possibilities. If you have an image containing all the targets, you just have to use the menu "View => Thumbnail view generator..." and follow the instructions.
Otherwise you must use a dedicated macro.
Suppose that you have generated a target list from VizieR data base.
- Export the VizieR result in FITS ASCII format
- Open the Aladin macro controller (menu Tool => Macro controller...)
- Load the VizieR result as a list of params (menu File => Load params in the macro controller)
- Adapt the following macro : get aladin,simbad $1 $2;sync
- Launch the macro for the target list (remove the first line (header))
- When the macro is achieved, press F9 for generating all the views
6.9 Can I launch Aladin applet with images or data coming from my own http server?
Yes, you can.
You have to use script commands passed in the Aladin URL as parameters. The commands has to be preceded by "script=" and has to be HTTP encoded. For example, to launch Aladin applet with your image, the script could be;
myPlaneName = get File(http://my.host.site/myLocation)
So, the starting Aladin applet URL will be:
http://aladin.u-strasbg.fr/java/nph-aladin.pl?script=myPlaneName%3Dget%20File%28http:%2F%2Fmy.host.site%2FmyLocation%29
plane_name is the name used in the Aladin stack and origin is displayed with the properties associated to this plane. Do not omit to URLencode the command even YourUrl parameter. If the URL contains a comma, you can encode it by the HTTP syntax %2C
In order to help you, we have prepared a form which will generate automatically the proper URL according to your server configuration.
Try: http://aladin.u-strasbg.fr/java/nph-aladin.pl?frame=form
6.10 Can I add my own data server description in Aladin forms even it has been started in Applet mode?
Yes, you can.
You can add your own data server description via a dedicated GLU record in order to offer to your users a form to your server (see corresponding FAQ item). But in Applet mode, you have to specify how Aladin will download this GLU record via an URL. For that, you will add to the Aladin applet URL the parameter "-glufile=urlOfYourGluDic" :
http://your.host/cgi-bin/nph-aladin.pl?...someParameters...
&-glufile=http://your.host/Pages/Glu.dic
Note: the url of your glufile has to be HTTP encoded.
7 TROUBLESHOOTING?
7.1 Aladin in Chinese language shows surprising square characters !
Aladin is supporting multi-language, currently English, French, Italian, German, Russian, Persian and Chinese languages. You can select language via the "Edit -> User preferences" menu. However, for some languages using no-latin characters, your Java Virtual Machine must be an international version (with extended fonts) and you Operating System has to support extended language too.
If you are not is this configuration, some widgets can appear with square characters.
7.2 Pourquoi mon Aladin démarre en Français ?
Since release 3.7, Aladin is supporting multi-language, currently English, French, Russian and Chinese languages. If you have not set a specifical language via the"Edit -> User preferences" menu, Aladin starts with the Operating System language. And if Aladin does not know it, it starts in English language.
It means for french users - and only for french users - you have to modify manually your preferences if you want to run Aladin in English.
7.3 ** My sources are not displayed at their right positions !
If you see a constant offset of all your sources, it is generally a problem of astrometrical calibration of the background image, or maybe in your table. Check it by loading an astrometrical catalog such as USNO.
If you detect an offset of some sources, the main reason is generally a problem of epoch with objets with large proper motions. Aladin uses the coordinates provided in the table "as is", without applying an epoch correction even the image background epoch is different of your catalog one.
If your sources are totally wrongly displayed, it is generally a problem of a bad detection of coordinate columns (typically with CSV tables). You can check and fix it via the menu "Catalog => column info, button Coord. columns".
7.4 Why are the "Save", "Load" and "Print" menus never activated ?
You are certainly running in the applet mode, but either you refused the Aladin applet certification or your browser is too old to recognize this kind of certification. In this case, Aladin starts automatically in restricted applet mode (no local access).
If you did not see the certification window when Aladin started, you should install a more recent browser. Otherwise, restart your browser and accept the certification.
7.5 * I cannot backup the contour planes !
Yes you can, since release 7 !.
The contour planes is now backuped as simple drawing iso lines. It means that you will lost some dedicated propertie adjustements.
7.6 ** My user preference CSV setting has disappeared !
This user setting is no longer required as Aladin 7.5 can automatically recognize the separator character of a CSV file. If you encounter a problem with your CSV file, please contact us.
7.7 ** I cannot load my HEALpix map !
Aladin 7 can load HEALPix map stored in a FITs binary table (following the HEALPix standard), both in RING or NESTED scheme. But there are a few limitations:
- the NORDER must be a power of 2
- the NORDER must be greater or equal to 3 (NSIDE=8)
Note: Aladin requires more RAM for loading an HEALPix map in RING scheme than in NESTED scheme. In case of memory problem, prefer the NESTED scheme.
7.8 ** I cannot easily pan my all-sky !
In all-sky mode, when you pan the view, Aladin rotates the sky along the equator of the current coordinate system. Typically, if you want to "turn" along the milky way it is easier to select before the GAL coordinate system instead of an equatorial one.
7.9 I get only "Aladin is loading" page and the applet does not start !
In a browser, Aladin runs as a JAVA applet. So your browser must support Java.
Generally Java is enable by default, otherwise have a look on the "options" of your browser and find the "java section" to switch JAVA on.
Some help if JAVA is disable:
- Explorer: search in "Start (on desktop) -> Control Panel -> Internet options -> Advanced -> Java"
- Konqueror: search in "Configuration -> Configure Konqueror -> Konqueror browser -> Java -> Always activate java + verify java search path"
- Netscape 6/7, Mozilla on Unix OS: you have to create a symbolic link between the Mozilla/Netscape plugins directory and the JAVA installation plugins so library. For example, for a Blackdown jre 1.4 distribution and Mozilla 1.5, you have to adapt these commands:
cd /usr/local/mozilla/plugins
ln -s /usr/local/j2re1.4.1/plugin/i386/mozilla/javaplugin_oji.so
7.10 ** I cannot adjust the contrast of the colored DSS survey !
Unfortunately, you are right: for obscured performance reasons you cannot adjust the colormap of an HEALPix colored all-sky survey.
But you can crop the view to produce a classical colored image, and after that, you can fully adjust its colormap.
7.11 I cannot print under Unix
Yes, you can !
The Java window controlling the printer parameters requires the name of the printer... Many Unix users try to insert the full command such as "lpr -Pprintername". Try just "printername" and it will work correctly.
7.12 The Aladin fonts are really too big !
Well... on Linux some fonts are not found by the Java Virtual Machine, and the default choices can be very large.
With a JVM 1.5, this problem disappears. Do not hesitate to upgrade your Java virtual machine or re-install Aladin via the InstallAnywhere method which provides a JVM 1.5.
7.13 Aladin says "out of memory error" instead of loading images!
Aladin runs through a Java Virtual Machine and depends on its memory configuration. First of all, free the Aladin plane stack from the unused images/catalogues and try again. Then, if it doesn't work better, see section "What is the image size limit" to have more details.
7.14 The links in measurement frame do nothing !
You certainly use Aladin in Applet mode with a Popup/Banner filter
activated. For example, Google provides a quick bar which jams the
undesirable advertising popup windows... Unfortunately, this kind
of system jams also the Aladin popup windows. Lots of firewall
packages or antivirus packages provide the same kind of functionalities.
Generally you can avoid this mechanism by pressing the CTRL key
when you click on the links. If it does not work, you have to remove
your popup filter mechanism or install Aladin as a standalone
application.
7.15 What is this ".aladin" in my home directory?
The directory ".aladin" is used for four things:
- Aladin uses a temporary directory to memorize full pixel images during a session. This directory caches are created
inside the ".aladin" directory in your home directory which
is never removed.
- The configuration file of the user preferences (aladin.conf) is stored in this ".aladin" directory.
- The Aladin compatible plugin java classes have to be saved in a "Plugins" subfolder to be recognized by Aladin (see Plugins FAQ question)
- The "Cache" directory memorizing GLU record files, VizieR keyword files,... for starting Aladin faster, and also a lot of pre-loaded all-sky "tiles" for avoiding too many network access.
8 DEVELOPER INFORMATION
8.1 * Can I get the source code?
Yes you can !
Since release 7 Aladin is distributed under a GNU GPL v3 licence.
Here the address for the last source package : http://aladin.u-strasbg.fr/java/nph-aladin.pl?frame=get&id=AladinSrc.jar
8.2 What is an Aladin compatible plugin?
Aladin can be "extended" by personal java plugins. It means that you can easily write your own java code for your purpose either for image manipulation or catalog manipulation. Aladin offers java methods to access directly the internal Aladin data buffers allowing you to keep good performances and avoid data duplication in memory.
Have a look on Aladin plugin Web page to see the list of public Aladin compatible plugins (http://aladin.u-strasbg.fr/java/nph-aladin.pl?frame=plugRep).
Note: Plugin work only with a standalone installation, Applet mode and Web Start mode are not supporting plugins.
To install a plugin, you will proceed in 2 steps:
- Open the "Plugin controller" (first item int the menu "Plugins" in Aladin);
- Download and copy the plugin class/jar file into your dedicated Aladin plugin directory ($HOME/.aladin/Plugins)(*) and press the "Re-load" button.
or Drag&Drop the plugin class/jar file directly from your OS desktop (Windows) into the Aladin plugin list.
(*) On Windows XP, the home directory is located in C:\Documents and Settings\YourName
To execute a plugin:
- Look for your plugin in the Aladin "Plugins" menu;
- Execute your plugin either by the plugins menu, or by the "Plugin controller" or by the corresponding script command.
8.3 How to create my Aladin plugin?
Before creating your own plugin, look on
Aladin plugin Web page to see the list of public Aladin compatible plugins to be sure that your plugin has not been written yet by another developer.
If not, you have several tutorial example
here.
First of all, a simple example:
import cds.aladin.*;
public class Rotate extends AladinPlugin {
public String menu() { return "Image rotation"; }
public String description() { return "This plugin rotates the image"; }
/*
* Execute an 90deg image rotation
* 1) get the pixels and image size
* 2) create a new pixel array width=>height and height=>width
* 3) rotate the image from the previous array to the new one
* 4) send the new pixel array to Aladin
*/
public void exec() {
try {
AladinData sd = aladin.getAladinImage();
double [][] pix = sd.getPixels();
int w = sd.getWidth();
int h = sd.getHeight();
double [][] rotpix = new double[h][w];
for( int y=0; y<h; y++) {
for( int x=0; x<w; x++ ) rotpix[y][w-x-1] = pix[x][y];
}
sd.setPixels(rotpix);
} catch( AladinException e ) { e.printStackTrace(); }
}
}
Create your plugin:
- Basic usage:
- Create your plugin by extending the AladinPlugin java class.
(Aladin.jar file should be present in your CLASSPATH for the java compilation, ex: "javac -classpath Aladin.jar YourPlug.java")
- Use AladinData and Obj java classes for directly accessing and manipulating the Aladin data (image pixels, catalog objects...)
- Advanced usage:
- For controlling Aladin, you can use its VOApp interface (more...)
- To be an Aladin listener, implement VOObserver interface (more...)
8.4 Where can I find Aladin plugins?
All public plugins are available on
Aladin plugin Web page.
Call for plugins: Aladin team would be pleased to register your public plugins for the astronomical community. If you agree, send it to us at this following address question at simbad dot u-strasbg.fr.
8.5 Can I use Aladin behind my Web server as a CGI tool?
Yes you can.
Aladin can be interfaced to a CGI script to produce images on the
fly (look for instance the Aladin preview tool generating automatically
coloured jpeg images with this mechanism -
http://aladin.u-strasbg.fr/AladinPreview).
You have to take care of this issue :
On Unix, Aladin requires a X11 display and in this CGI context
there is not. However it exists an very useful tool called
Xvfb simulating an X11 display. So you just have to launch it
before Aladin (if it is already running, it will stop launching).
Here is a CGI PERL script example creating on the fly a field chart
(DSS + USNOB1 + Simbad) around the user's object. Feel free to adapt
and use it for your own purpose.
#!/usr/bin/perl
#
# Name : AladinChart
# Author: P.Fernique [CDS] - june 2012
#
# CGI PERL script to produce on the fly Aladin field charts
# 1) Install it on your Web server CGI directory
# 2) Adjust the path section (and install Xvfb and cjpeg if you have not)
# 3) Try it with the URL http://your.web.server/cgi-bin/AladinChart?M101
# 4) Do not forget the credit mention somewhere ("generated by Aladin from CDS")
#The astronomical user object from HTTP parameter line
$o = $ENV{'QUERY_STRING'};
#HTTP decoding (if you prefer, use a standard lib)
$o=~s/\+/ /g;
$o=~s/%([0-9A-F]{2})/pack('C',hex($1))/eig;
#The paths (adjust them according to your configuration)
$java = "/usr/bin/java";
$jar = "/usr/local/Aladin/Aladin.jar";
$xvfb = "/usr/X11R6/bin/Xvfb";
$fonts = "/usr/X11R6/lib/X11/fonts/misc/";
$tmp = "/tmp/tmp$$.jpg";
#The Aladin script to produce the field chart and save it
#You can modify it to produce any kind of charts
$script = "get STScI(DSS1) $o;get VizieR(USNOB1) $o;get Simbad $o;".
"grid on;save $tmp1;quit";
#Command definitions
$output = "> /dev/null 2> /dev/null";
$aladin = "$java -jar $jar -script $output";
$Xdisp = "$xvfb :1 -screen 0 1152x900x8 -fp $fonts -ac -pn $output &";
$exec = "DISPLAY=localhost:1.0;export DISPLAY;echo '$script' | $aladin";
#debugging output line (uncomment them to fix possible problems)
#print "Content-type: text/plain\n\n$Xdisp\n$exec\n";
#exit(0);
#Command execution
system($Xdisp);
system($exec);
#Image transmission
if( !open(IMAGE,$tmp) || (stat(IMAGE))[7]==0 ) {
print "Content-type: text/html\n\nError !!!";
} else {
$size = (stat(IMAGE))[7];
print "Content-type: image/jpeg\n\n";
read(IMAGE,$buf,$size);
print $buf;
close(IMAGE);
}
#
unlink $tmp;
8.6 Can I install Aladin applet on my own Web server?
Yes you can.
To install it, follow these steps:
- Download these two files: Aladin.jar and nph-aladin.
- Copy Aladin.jar file into your httpd Pages directory (or equivalent)
- Copy and rename nph-aladin perl script into your httpd Cgi directory (or equivalent) to nph-aladin.pl name
- Edit the 10 first lines of nph-aladin.pl to adjust the perl path (first line) and the 3 other paths according to your own configuration
- And that's all.
Try it by the URL: http://your.machine/cgi/nph-aladin.pl
If you decide to install Aladin applet on your Web server, may you inform us for which purpose you need Aladin (and also to have your email address for the next release (question@simbad.u-strasbg.fr)).
8.7 Can I control Aladin applet by JavaScript?
Yes you can.
It is a very flexible method for avoiding to relaunch a new Aladin applet instance just for displaying other results.
In fact, you can access to the applet via the JavaScript reference: document.aladin and Aladin is implemeting a method that you can use for submitting Aladin script commands: execAsyncCommand("...your script commands...").
For instance, if you want to switch on the coordinate grid from JavaScript control, you have to implement a JavaScript function like this:
function gridOn() { document.aladin.execAsyncCommand("grid on"); }
Here a simple HTML+JavaScript example: (try it...)
<HTML>
<H1>Aladin applet control by JavaScript methods</H1>
<FORM onSubmit="button();return false">
Your target: <INPUT type="field" name="target">
<INPUT type="submit" value="Go !">
</FORM>
<APPLET
name="aladin"
archive="Aladin.jar"
code="cds.aladin.Aladin" width="700" height="700">
<PARAM name="script" value="reset;mview 4;grid on;help off">
</APPLET>
</HTML>
<SCRIPT type="text/javascript">
function button() {
var applet = document.aladin;
var target = document.getElementsByName("target")[0].value;
applet.execAsyncCommand("get Aladin,Simbad "+target);
}
</SCRIPT>
Note: If your JavaScript control needs to know the Aladin stack status you can use the "status" script command. But in this case, as you need a result, use execCommand("status"). Contrary to the execAsyncCommand(), this one is returning a result that you can use/parse....
8.8 How to create an Aladin clickable maps ?
Aladin can easily produce clickable maps for Web servers. The goal is to have an alternative not requiring the full aladin applet.
Here a
Simbad clickable map produced by this method.
Here a
NED clickable map produced by this method.
Aladin is able to create a PNG chart file and an associated link file for using them as a clickable map. These maps can be prepared in advance or on the fly (see the section concerning the Aladin usage behind a web server). The only constraint is to use overlay catalogs with "clickable objects". It means that each overlay source must have at least one link associated to its measurements (displaying in blue underlined in Aladin) (see LINK votable attribute)
- Generate the map and the associated link file concerning your data via the save PNG+LINK menu. Here a full script example for producing a Simbad finding chart around M104: "get Simbad M104;sync;set Simbad filter=colorized;grid on;save -lk M104.png"
- Copy the two produced files (.png and .lk) on your http server
- Install/use/extend this very simple CGI perl script on your http server.
#!/usr/local/bin/perl
#
# A simple CGI perl code for Aladin clickable maps generated by the
# Aladin script command "save -lk xxx.png"
#
# 0) Adjust the $DIR variable below
# 1) put the 2 produced files (xxx.png, xxx.lk) in $DIR
# 2) install this "nph-plot.pl" cgi in your http server
# (do not modify the prefix "nph-")
# 3) try the url http://your.httpd.site/.../nph-plot.pl?name=xxx
# 4) Click on an object
#
#A directory readable by the httpd user
$DIR = "/usr1/cds/fernique/aladin/dochtml/";
# Generate the HTML page containing the clickable map
sub sendHtml {
my($program)=$0=~/([^\/]*)$/;
my($name)=&getParam("name");
print "HTTP/1.1 200 OK\nContent-type: text/html\n\n";
print "<HTML><HEAD><TITLE>Aladin Plot</TITLE></HEAD><BODY>\n";
print "<H1>Clickable map by Aladin</H1>\n";
print "<A HREF=\"$program?mode=click&name=$name\">\n";
print " <IMAGE SRC=\"$program?mode=image&name=$name\" ISMAP BORDER=0>\n";
print "</A>\n";
print "</BODY></HTML>\n";
}
# Send the png image of the clickable map
sub sendImage {
my($name)=&getParam("name");
my(@stat)=stat("$DIR$name.png");
open(F,"< $DIR$name.png");
read(F,$img,$stat[7]);
print "HTTP/1.1 200 OK\nContent-type: image/png\n\n";
print $img;
}
# Open the url associated to the closest object of the mouse click
sub callLink {
my($X,$Y)=$ENV{'QUERY_STRING'}=~/\?([0-9]+),([0-9]+)/;
my($name)=&getParam("name");
my($dmin)=-1;
open(F,"< $DIR$name.lk");
while( <F> ) {
($plan,$id,$x,$y,$url)=split("\t");
$dist = ($X-$x)*($X-$x) + ($Y-$y)*($Y-$y);
if( $dist<50 && ($dmin<0 || $dist<$dmin) ) { $URL=$url; $dmin=$dist; }
}
if( !defined $URL ) { &sendHtml; }
else {
print "HTTP/1.1 301 OK\n";
print "Location: $URL\n\n";
}
}
# Just for parsing HTTP url parameters
sub getParam {
my($key)=@_;
my($a,$value);
($a,$value)=$ENV{'QUERY_STRING'}=~/(^|&)$key=([^\&\?]*)/;
$value=~s/\+/ /g;
$value=~s/%([0-9A-Fa-f]{2})/pack('C',hex($1))/eig;
return $value;
}
# Main choice
$mode = &getParam("mode");
if( $mode eq "image" ) { &sendImage; }
elsif( $mode eq "click" ) { &callLink; }
else { &sendHtml; }
8.9 Can I control Aladin from IDL (Interactive Data Language) ?
Yes, you can (requires IDL>=6.0) !
The
idl_aladin_interface.tar.gz
archive contains a set of IDL functions (.pro files) allowing to launch
Aladin, load images, load tables, select object in tables, etc. Those
functions make use of the IDL Java Bridge to call Aladin Java methods
from IDL.
Uncompress the archive (tar zxvf idl_aladin_interface.tar.gz), and have
a look at the README.txt file in directory idl_aladin_interface to learn
how to setup IDL in order to use this API.
The setup procedure, as well as the different available functions, are
also fully described on the page
http://eurovotech.org/twiki/bin/view/VOTech/AladinIDL
8.10 Can I launch Aladin from another JAVA application or applet?
For JAVA developers, Aladin can be launched from another JAVA
application, and even from your own JAVA applet. You have to use
the
Aladin.launch() static method with these following optional
parameters:
(String CmdLineParams,Applet yourJavaApplet).
Application example:
public class MyApp() {
public void startAladin() {
Aladin.launch("-trace");
}
}
Applet example:
public class MyApplet() extends Applet {
public void startAladin() {
Aladin.launch("-nobanner -trace",this);
}
}
See the section VOApp for controlling Aladin from your own applet/application.
8.11 What is the Aladin cds.tools.VOApp JAVA interface?
For JAVA developers Aladin can be controlled (and control) another
JAVA application such as VOPlot, TOPCat, VOSpec,... To do that, we
created a JAVA "interface" defining the possible interactions between
Aladin and another JAVA tool. This interface is implemented by
Aladin and has to be implemented also by the other application. The
interactions between both applications are symmetrical.
package cds.tools;
import java.io.*;
public abstract interface VOApp {
/** To load a VOTable to another application
* @param in VOTable stream
* @param dataset label, or null
*/
public abstract String putVOTable(InputStream in,String label);
/**
* Allow an "external" application to send new data via an InputStream
* in VOTable format. The reference to this "external" application has to
* passed in order to eventually calls back the "external" application,
* or to be called again by the "external" application concerning the
* VOTable objects that it had sent before (see showVOTableObject() and
* selectVOTableObject() methods below)
* For this calls or callbacks, the "external" application has to
* create a new VOTable column giving an unique identifier for each object
* that it has sent. This column has to be described by the following
* VOTable FIELD tag : <FIELD name="_OID" type="hidden">. It is strongly
* recommended to add an unambiguous prefix to avoid conflicts with the
* assignations done by the "external" application and its own assignations.
* The unicity has to be maintained during all the session. It means that
* successive VOTables must have difference unique identifiers.
* @param app "external" application compliant with VOApp JAVA interface
* @param in VOTable stream
* @param dataset label, or null
* @return an unique ID for this dataset (application dependent - for instance,
* the plane name in Aladin)
*/
public abstract String putVOTable(VOApp app, InputStream in,String label);
/** To get a dataset in VOTable format (typically for catalogues).
* @param dataID the dataset identifier (application dependent
* for instance, the plane name in Aladin)
* @return a stream containing the VOTable
*/
public abstract InputStream getVOTable(String dataID);
/** To load an image to another application
* @param in FITS stream
* @param dataset label, or null
*/
public abstract String putFITS(InputStream in,String label);
/** To get a dataset in FITS format (typically for images)
* @param dataID the dataset identifier (application dependent
* for instance, the plane name in Aladin)
* @return a stream containing the FITS
*/
public abstract InputStream getFITS(String dataID);
/**
* Call or Callback asking the other application to SHOW objects found
* in a VOTable previous transmission via loadVOTable() method.
* The action "SHOW" is a choice of the other application (for example a blink)
* @param oid list of identifiers found in VOTables (see comment of the
* putVOTable() method.
*/
public abstract void showVOTableObject(String oid[]);
/**
* Call or Callback asking the other application to SELECT objects found
* in a VOTable previous transmission via loadVOTable() method.
* The action "SELECT" is a choice of the other application (for example select
* objects by showing the corresponding measurements, it can be the same thing
* that the "SHOW" action - see showVOTableObject() method.)
* @param oid list of identifiers found in VOTables (see comment of the
* putVOTable() method.
*/
public abstract void selectVOTableObject(String oid[]);
/**
* Allow an "external" application to show or hide this application
*/
public abstract void setVisible(boolean flag);
/**
* Allow an "external" application to control by script this application
* @param cmd script command depending to this application
* @return error or messages, can be null
*/
public abstract String execCommand(String cmd);
/** To register an observer of VO events implementing VOObserver interface.
* see VOObserver.position() and VOObserver.pixel() associated callback methods
* ex: addObserver(this,VOApp.POSITION|VOApp.PIXEL)
* @param app the application to register
* @param eventMasq a bit field (use POSITION or PIXEL),
* (0 to remove the observer)
*/
public abstract void addObserver(VOObserver app,int eventMasq);
}
As Aladin is both a standalone JAVA application and an applet, you
have to instantiate Aladin by following the example below (and not
by Aladin constructor):
Example of VOApp usage
import cds.tools.*;
import java.io.*;
public class mytool implements VOApp {
public void startAladin() {
// Instantiate Aladin
VOApp aladin = cds.aladin.Aladin.launch();
// Ask Aladin to load a FITs image
InputStream in = (InputStream)(new FileInputStream("FITsFile.fits"));
aladin.putFITS(in,"MyFITS");
// Ask Aladin to load a VOTable file (you pass your own object reference
// for possible callbacks. You can use the simpler method putVOTable(in,"MyVOTable")
// if you do not want to be called back for showing or selecting objects
// of this VOTable)
in = (InputStream)(new FileInputStream("VOTableFile.xml"));
aladin.putVOTable(this,in,"MyVOTable");
// Ask Aladin to select the VOTable objects identified by OID=78 and 82
// See comment of the putVOTable() method for object identifier method
aladin.selectVOTableObject(new String[]{"78","82"}
}
// You own implementation of VOApp methods for Aladin callbacks
public String putVOTable(VOApp app, InputStream in,String label) { return null; }
public String putVOTable(InputStream in,String label) { return null; }
public InputStream getVOTable(String dataID) { return null; }
public String putFITS(InputStream in,String label) { return null; }
public InputStream getFITS(String dataID) { return null; }
public void showVOTableObject(String oid[]) {
System.out.print("I have to show:");
for( int i=0; i<oid.length; i++ ) System.out.print(" "+oid[i]);
System.out.println();
}
public void selectVOTableObject(String oid[]) {
System.out.print("I have to select:");
for( int i=0; i<oid.length; i++ ) System.out.print(" "+oid[i]);
System.out.println();
}
public void setVisible(boolean flag) {}
public String execCommand(String cmd) { return null; }
public void addObserver(VOObserver app,int eventMasq) {}
}
8.12 What is the Aladin cds.tools.VOObserver JAVA interface?
For JAVA developers Aladin can interact with another JAVA application
in order to transmit it the coordinate position and/or the pixel
value corresponding to the current Aladin mouse position.
To do that, the collaborative JAVA application has to implement
this following
VOObserver JAVA interface.
package cds.tools;
import java.io.*;
public abstract interface VOObserver {
/** The observer method to call on a position VO event
* in order to transmit the current coordinates J2000 position.
* Generally called by a JAVA mouse event, it is strongly recommended
* to implemented this method as short as possible.
* @param raJ2000 Right ascension in degrees J2000
* @param deJ2000 Declination in degrees J2000
*/
public abstract void position(double raJ2000,double deJ2000);
/** The observer method to call on a pixel VO event
* in order to transmit the current pixel value
* Generally called by a JAVA mouse event, it is strongly recommended
* to implemented this method as short as possible.
* @param pixValue pixel value under the mouse
*/
public abstract void pixel(double pixValue);
}
As Aladin is both a standalone JAVA application and an applet, you
have to instantiate Aladin by following the example below (and not
by Aladin constructor):
Example of VOObserver usage
import cds.tools.*;
import java.io.*;
public class mytool implements VOObserver {
public void startAladin() {
// Instantiate Aladin
VOApp aladin = cds.aladin.Aladin.launch();
// Register me for Position and Pixel events
aladin.addObserver(this,VOApp.POSITION|VOApp.PIXEL);
}
// VOObserver callback method for coordinate positions
public void position(double raJ2000,double deJ2000){
System.out.println("The current Aladin coordinates are: "+raJ2000+" "+deJ2000);
}
// VOObserver callback method for pixel value
public void pixel(double pixValue) {
System.out.println("The current Aladin pixel value is: "+pixValue);
}
}
8.13 Where can I get an Aladin icon for links ?
Here, there are 32x32 pixel icons
, a 32x23 pixel icon
and a 16x16 pixel icon
9 MORE INFORMATION AND REFERENCES
9.1 ** Where can I find the manual?
A full Aladin manual is available in French, in English
and in Italian on the Aladin official site.
These manuals are dedicated to the version Aladin version 6. Some new features are not described and the screen dumps can be not totally similar to the current release 7.5.
9.2 How to acknowledge Aladin?
The preferred reference to use if you are using Aladin for your own
research is the following:
Bonnarel F., Fernique P. et al.
2000A&AS..143...33B -
Astron. Astrophys., Suppl. Ser., 143, 33-40 (2000) - April(I) 2000.
9.3 What is SAMP?
SAMP is a protocol for communication between client-side astronomy applications. Concretely, it allows you to send data to another SAMP compatible application and select some of them and see the corresponding selection into the other application.
SAMP is a three parts mechanism : two applications (or possibly more) and one "hub" for forwarding messages and data from one application to the other. It exists several SAMP hub implementations.
More information on SAMP web page.
Aladin is compatible with SAMP and integrates itself a SAMP hub. See the FAQ question "How to use SAMP ?" for details.
9.4 What is the XML/VOTable format?
The
VOTable format, developed by a consortium of astronomical institutes, is used to describe astronomical catalogues and query results with
XML. Aladin uses it to retrieve data from
VizieR, Simbad, NED, .. or to load local data files.
This format is detailed in a document located at the following address : http://www.ivoa.net/Documents/latest/VOT.html
9.5 What is the AJ format?
The
Aladin format (AJ format) is used by Aladin to backup the
current work in a file, to be reused in a subsequent work session.
This is a proprietary format. It is no documented.
The filename extension requires for it is logically ".aj"
9.6 ** What is a MOC?
A MOC, or "Multi-Order Coverage map" is a powerful method for describing a sky region. It is based on the HEALPix sky tesselation. Basically, a MOC is just a hierarchical list of HEALPix cell numbers. Aladin is able to read and display the two MOC file formats (JSON/ASCII and FITS binary table) defined in IVOA note => http://www.ivoa.net/Documents/Notes/MOC/index.html . Concretly, Aladin uses MOC for displaying the all-sky survey coverage (available via the button "MOC" in the "Propertie" frame of the all-sky plane.
Note: Presently Aladin can only read and display MOCs. You can not manipulate them (intersection, union, ...). Certainly in the next release.
9.7 What is the Aladin "taquin" facility?
Load a 500x500 squared image, and press the key "t" in the logo...