editpar is used to edit the parameter files associated with most COSMOS
programs. Parameter files are identical to IRAF par files, except for their
naming convention and default location. Unless a full path is given, all
parameter files are searched for first in the working directory, then in
a user's ~/cospar directory, then in $COSMOS_HOME/cospar. Note that files
in $COSMOS_HOME/cospar can be used, but not changed.
USAGE
editpar program
INPUT
program, the name of the
program whose parameters are being changed
OUTPUT
a modified par file.
PARAMETERS
none
Details:
When you invoke editpar with a legitimate program name, it presents a screen
like this to you:
FIRSTPARAM
37.05 the first parameter you need
SECONDPARAM 5
another parameter you need
LASTPARAM ccd0005 the
last parameter you need
Change parameter:
Enter the name of a parameter (case doesn't matter), and you will get:
FIRSTPARAM
37.05 the first parameter you need
SECONDPARAM 5
another parameter you need
LASTPARAM ccd0005 the
last parameter you need
Change parameter: firtparam
Enter new value:
Enter value, and continue until all are as you want. Entering "q"
at the "Change parameter" prompt exits the program. A new parameter file program.par is created, and
the old file is saved as program.par%.
If you screw up (for example, CNTRL-C to exit the program is not a good idea),
and trash the par file, you can always copy over the par% file.