This website (www2.astrogrid.org) is now deprecated - please go to www.astrogrid.org for up to date information.
IPHAS Database Access
This page describes the access to the IPHAS catalogue.
1 The IPHAS Survey
IPHAS is a survey in r, i and Halpha of the galactic plane carried out using the Wide Field Camera on the Isaac Newton Telescope, La Palma.
2 Database Access
The access through AstroGrid is done using the workbench.
3 Data Coverage
The released data contains the observations carried out in the first two years of observations from 2003 to the end of 2005. The database contains about 200 million objects (most of them repeated twice) covering an area of 1700 sq. deg.. The figure below shows the coverage of these data in galactic coordinates.

4 The main catalogue database
PhotoObjBest is the main catalogue table. Below a description of columns.
| Name | Description | Units |
|---|---|---|
| ra | Right Ascension, J2000 | deg |
| dec | Declination, J2000 | deg |
| glon | Galactic Longitude | deg |
| glat | Galactic Latitude | deg |
| coremag_r | Aperture magnitude in r band | mag (Vega) |
| coremag_i | Aperture magnitude in r band | mag (Vega) |
| coremag_ha | Aperture magnitude in Halpha band | mag (Vega) |
| coremagerr_r | Aperture magnitude error in r band | mag (Vega) |
| coremagerr_i | Aperture magnitude error in i band | mag (Vega) |
| coremagerr_ha | Aperture magnitude error in Halpha band | mag (Vega) |
| class_r | Classification index in r band | |
| class_i | Classification index in i band | |
| class_ha | Classification index in ha band | |
| ellipt_r | Ellipticity on r band | |
| ellipt_i | Ellipticity on i band | |
| ellipt_ha | Ellipticity on Halpha band | |
| posang_r | Position angle in r band | deg |
| posang_i | Position angle in i band | deg |
| posang_ha | Position angle in Halpha band | deg |
| seeing_flag | Seeing flag | |
| ellipt_flag | Ellipticity flag | |
| photom_flag | Photometric quality flag | |
| class_flag | Classification flag | |
| chip_r_id | Index of r band chip in table ChipAll | |
| chip_i_id | Index of i band chip in table ChipAll | |
| chip_ha_id | Index of Halpha band chip in table ChipAll | |
| field_id | Index in table FieldsAll (pointer to field) |
The class_? flags are defined as follows:
| Class | Meaning |
|---|---|
| -9 | means saturated |
| -8 | indicative of poor match |
| -1 | stellar |
| -2 | probably stellar |
| -3 | compact but probably not stellar |
| 1 | non-stellar (ie. would be galaxy normally) |
| 0 | noise-like |
5 Example Queries
5.1 Search for objects around a position
For rectangular queries one can use:
--- Retrieve all objects in a rectangle SELECT * FROM PhotoObj as P WHERE P.ra > 15.4 AND P.ra < 15.6 AND P.dec > 59.0 AND P.dec < 60.1
The table getObjCirc is used in the following example to retrieve all objects within a radius of 10 arcmin from the position RA=15.45, Dec=60.50:
--- Retrieve all objects within 10 arcmin of --- the position RA=15.45, Dec=60.50 --- uses HTM to speed the query SELECT * FROM PhotoObj as P, getObjCirc as G WHERE --- Insert here the ra, dec and radius in arcmin G._ra=15.45 AND G._dec=60.50 AND G._radius=10.0 AND --- getObjCirc returns a table with id numbers --- satisfying the circular query G.id = P.id
The image below shows the result ra, dec distribution of the returned sources as well as their r band magnitude distribution.

5.2 Extracting colours
The following example selects positions and colours for sources observed in fields which match '7300':
SELECT P.ra, P.dec, P.coremag_r, P.coremag_i, P.coremag_ha, F.name FROM PhotoObj as P, FieldsAll as F --- ADQL does not support JOIN keyword WHERE P.field_id = F.id AND F.name LIKE '%7300o%'
The following plot shows a colour-colour diagram extracted for the field 7300o. The plot on the right shows different objects as function of their magnitude (magenta: r<14, blue: r<16, grey: r<18 and green: r<20).

5.3 Selecting by magnitude limit
The following query selects all the objects which are observed in frames where the r-band magnitude is greater or equal to 22.0 (the result is 366763 objects):
SELECT P.ra, P.dec, P.coremag_r, P.coremag_i, P.coremag_ha, F.name FROM PhotoObj as P, PhotoPtr as T, FieldsAll as F, ChipAll as C WHERE P.pptr_id=T.id And T.chip_r_id=C.id And T.field_id=F.id and C.maglim>22.0
5.4 Adding additional constrains
In some cases you will want to retrieve objects which have been observed in a particular field, or only in those observations with a good seeing and/or good photometric conditions:
--- Select objects which have been observed in good conditions SELECT TOP 1000 * FROM PhotoObj as P WHERE --- Only objects observed in seeing <= 1.7 arcsec --- we may add more codes to different seeing values seeing_flag =1 AND --- Only objects observed with ellipticity <= 0.25 --- we may add more codes to different ellipt values ellipt_flag = 1 AND --- Skip objects saturated in one or more bands class_flag <> -9 AND --- Only objects for which r, i and Ha have been obtained the same night night_flag = 1
5.5 Example Query Files
In order to load these queries follow this tutorial.
- iphas_rect.q performs a simple selection in ra and dec
- iphas_cone.q performs a simple cone search query using the HTM tree.
- iphas_field.q resturns all objects observed in a particular field.
6 Python Scripts
The script below shows an example of submitting a workflow from python. It is a single task workflow which runs a cone search in the database:
$> python iphas-cone.py 15.45 60.50 2.0 iphas_out.vot Job: jes:galahad.star.le.ac.uk/143.210.36.238/ed@uk.ac.le.star/586 Status: RUNNING Status: RUNNING Result saved into MySpace file: ivo://uk.ac.le.star/ed#/iphas/iphas-20061027-151823.vot Result saved into local file iphas_out.vot
where the arguments are the RA, Dec in decimal degrees and the radius in arcmin and the name of the output votable. Click on the file name below to get the script. Note that you still need the workench to be running to execute the script.