[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
New Address!   --   Neue Adresse!
[Uni logo]


DBTARGET Source code in dbtarget.pro

DBTARGET

Name
      DBTARGET
Purpose
      Find sources in a database within specified radius of specified target
Explanation
      Uses QuerySimbad to translate target name to RA and Dec, and then uses
      DBCIRCLE() to find any entries within specified radius.   Database must
      include items named 'RA' (in hours) and 'DEC' (in degrees) and must
      have previously been opened with DBOPEN
      Requires IDL V5.4 or later, Unix and Windows only
Calling Sequence
     list = DBTARGET(target, [radius, sublist, /SILENT, DIS= ,/TO_B1950 ] )
Input Parameters
      TARGET - A scalar string giving an astronomical target name, which
          will be  translated into J2000 celestial coordinates by QuerySimbad
Optional Input Parameters
       RADIUS - Radius of the search field in arc minutes, scalar.
                Default is 5 arc minutes
       SUBLIST - Vector giving entry numbers in currently opened database
               to be searched.  Default is to search all entries
Output Parameters
     LIST - Vector giving entry numbers in the currently opened catalog
            which have positions within the specified search circle
            LIST is set to -1 if no sources fall within the search circle
            !ERR is set to the number sources found.
Optional Output
       DIS -  The distance in arcminutes of each entry specified by LIST
               to the search center specified by the target.
Keyword Parameters
       /SILENT - If this keyword is set, then DBTARGET will not print the
               number of entries found at the terminal
       /TO_B1950 - If this keyword is set, then the SIMBAD J2000 coordinates
               are converted to B1950 before searching the database
               NOTE: The user must determine on his own whether the database
               is in B1950 or J2000 coordinates.
Example
       (1) Use the HST_CATALOG database to find all  HST observations within
           5' (the default) of M33
       IDL> dbopen,'hst_catalog'
       IDL> list = dbtarget('M33')
      (2) As above but restrict targets within 2' of the nucleus using the
          WFPC2 camara
       IDL> dbopen,'hst_catalog'
       IDL> sublist = dbfind('config=WFPC2')
       IDL> list = dbtarget('M33',2,sublist)
Procedures Used
       QuerySimbad, DBCIRCLE()
Revision History
      Written W. Landsman     SSAI          September 2002

Last modified by pro2html on 2002 September 25 at 03:36 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically