IRSA IDL Tools

Version 2.0

Last Updated: 10 Sep 2017


Contents

Download All


Summary

IRSA provides a set of 4 IDL programs to assist users in retrieving and working with its catalogs and tables. The README contains installation instructions. The program query_irsa_cat.pro will run name or position searches on a specified catalog within a given radius. The catalog identifiers can be found in the "catname" column here. The default is the 2MASS Point Source Catalog. Programs are also provided to facilitate converting between IPAC Table format and IDL structures.

NOTE: With Version 2.0, http connections are via IDLnetURL and the main structure is now just the data array, with the comments/keywords and column headers stored separately. See the README for details. The new structure is much more flexible, but not backwards compatible. The earlier versions (but with the IDLnetURL update) are saved here:

Download Previous Version 1.6



Examples


(1) Find WISE AllWISE detections within 30 arcsec of L1228

IDL> info = query_irsa_cat('L1228', catalog='allwise_p3as_psd', radius=30, table_col_info=t1, table_hdr=h1 )
IDL> help, /struct, info
IDL> print, info.ra, info.dec

(2) Find the position of the faintest IRAS 60 micron source within 1 degree of the central position of the COSMOS survey (10:00:28.6 +02:12:21.0 in J2000).

IDL> info = query_irsa_cat([150.11916,2.2058333], catalog='irasfsc', radius=1, radunits='deg', table_col_info=t1, table_hdr=h1)
IDL> idx = where(info.fnu_60 eq min(info.fnu_60))
IDL> print, info[idx].ra, info[idx].dec

(3) (A longer query) Plot a histogram of the J magnitudes of all 2MASS point sources stars within 10 arcminutes of the center of the globular cluster M13.

IDL> info = query_irsa_cat('m13',radius=10,radunits='arcmin', table_col_info=t1, table_hdr=h1)
IDL> plothist,info.j_m,xran=[10,20]

If you encounter any problems please send a bug report to the IRSA Help Desk.

-----

Copyright © 2013, California Institute of Technology
All rights reserved. Based on Government Sponsored Research NAS7-03001 and NNN12AA01C.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

 -----