next up previous 277
Next: Trouble-shooting
Up: Group Expressions
Previous: Groups of Data Files

Examples

Group expressions can be used to specify objects other than data files. For instance, if an application asks for a group of pixels to be specified by their X and Y pixel indices, then the pixels (10,11), (21,-10) and (0,0) could be specified in any of the following ways:

  1.   10,11,21,-10,0,0
    


    This gives the indices as a comma separated list.

  2.   10,11-
      21,-10-
      0,0
    


    Ending each line with a minus sign causes the user to be re-prompted for more values.

  3.   ^pixels.dat
    


    The file pixels.dat is read. The file could contain the following four lines:

  4.   #  Approximate star centres.
      10,11
      21,-10
      0,0
    


next up previous 277
Next: Trouble-shooting
Up: Group Expressions
Previous: Groups of Data Files

POLPACK
Starlink User Note 223
D.S. Berry & T.M. Gledhill
17th December 2012
E-mail:starlink@jiscmail.ac.uk

Copyright © 2013 Science and Technology Facilities Council