next up previous contents
Next: SSMERGE Up: SSGET Previous: Parameters

Examples

To get the number of source in a SSDS, from ICL,

ICL> NSRC = 0
ICL> SSGET myssds NSRC (NSRC)
Use the ECHO parameter from the UNIX shell,

csh> set nsrc = `ssget myssds nsrc echo`
To extract information per source use the ISRC parameter, eg. to get the RA for the 13th source in a results file,

ICL> RA = 0.0
ICL> SSGET myssds RA (RA) ISRC=13
You can extract field attributes by appending the attribute name to the field name, eg.

csh> ssget myssds ra_units
degrees
Here is a procedure to print the RA and DEC of each source in source search results file,

#!/bin/csh
set nsrc = `ssget $1 nsrc`
set isrc = 1
loop:
  set ra = `ssget $1 ra isrc=$isrc`
  set dec = `ssget $1 dec isrc=$isrc`
  echo $isrc $ra $dec
  @ isrc++
if ($isrc = $nsrc ) goto loop


Web Master
Tue Oct 7 10:18:50 BST 1997