home
what is the nvo
faq
the nvo book
behind the scenes
documents
help

helpExample: How can I write a script that will show the rough number of HST, Chandra and Spitzer observations at a given location?

Using vocliVO-CLI you can write a simple script to check on the contents of the HST, Chandra, and Spitzer archives. The simple sequence:

 vodata -n hst     &1 &2 .02   2>/dev/null | grep hst
 vodata -n spitzer &1 &2 .2    2>/dev/null | grep spitzer
 vodata -n chandra &1 &2 .2    2>/dev/null | grep chandra

gives

 hst                    238    C  Hubble Space Telescope
 spitzer                 23    C  Spitzer Space Telescope Observation Log
 chandra                 35    I  Chandra X-Ray Observatory Data Archive

when 3c273 is input. The user can customize the search radius as needed since the different observatories have different image sizes. [For many shells you would use a dollar sign rather than an ampersand to prefix arguments.]

 


nsf
ivoa