Personal tools
You are here: Home / COSMOS / editpar

editpar

editpar

Back to Programs

editpar

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. Parameter files must be located in a directory defined by the environment variable COSMOS_PAR_DIR.


USAGEeditpar program
INPUTprogram, the name of the program whose parameters are being changed
OUTPUTa modified par file.
PARAMETERSnone


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 yes another parameter you need
LASTPARAM filename 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 yes another parameter you need
LASTPARAM filename the last parameter you need

Change parameter: firstparam
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. Logical values should be entered as "yes" or "no"


Back to Programs