select

 SELECT Type Name [Range] [Map] -- Sets selection criteria which apply to 
                                   some routines

 SELECT allows you to define criteria that must be passed by a spectrum 
 before it is considered by some routines. For instance, when using LOAD, 
 you can select only spectra from a given night, or within a particular 
 phase range, or with a specific object name. Similarly with WRITE. This 
 makes handling very large numbers of spectra much easier (e.g. when there 
 are too many to actually fit comfortably in the slots available in MOLLY).
 SELECT can either be used interactively by just typing SELECT (useful if
 one is entering many criteria) or in command line mode with the following
 parameters:

     Type -- To set a new selection item you must first define its data
             type: C,D,I,R for Character, Double Precision, Integer, Real
             Alternatively the strings CLEAR, SHOW, FREEZE and THAW will
             clear the selection criteria, show them, suspend and restart
             them, returning directly to the main MOLLY command level.

     If you are setting a new item then you also need:

     Name -- Name of header item to select on (character string, enclose
             in quotes if it has any spaces in it). This should match
             exactly.

     Range-- Allowable range (two values) for D,I,R, particular string for C

     Map  -- D,R 'Y' or 'N' to treat as a phase i.e. map into range 0 to 1

 If entered on command line, the selection is added to whatever has gone
 before, the current criteria are displayed and you are returned to the main
 command level. All the same options are available interactively inside
 SELECT.

 ALL the criteria you set must be passed for a spectrum to be selected.

 Character items are matched fairly generously, for example, the string
 "SSC" would match "SSCYG", "SS Cyg" "ss cyg" and " s S c y g". Wildcard
 * is also allowed. It matches any number of letters. So "*cyg" will
 match "ss cyg" or "v1500 cyg". However when you use wildcards, trailing
 letters must match up too so "*cyg" will not match "p cygni". This could
 be matched with "*cyg*". 
 e.g. the following command would set selection criteria to find any object 
 with both a 1 and a 2 in its name:

 sel c object *1*; sel c object *2*

This command belongs to the class: headers


Tom Marsh, Warwick