Download Analysis Cookbook - CASA

Transcript
CHAPTER 1. INTRODUCTION
53
Figure 1.1: Screen shot of the default CASA inputs for task clean.
Text Font
Parameters:
plain
bold
plain
Values:
plain
plain
plain
Text Color
Highlight
Indentation
Meaning
black
black
green
none
grey
none
none
none
yes
standard parameter
expandable parameter
sub-parameter
black
blue
red
none
none
none
none
none
none
default value
non-default value
invalid value
Figure 1.2 shows what happens when you set some of the clean parameters to non-default values.
Some have opened up sub-parameters, which can now be seen and set. Figure 1.3 shows what
happens when you set a parameter, in this case vis and mode, to an invalid value. Its value
now appears in red. Reasons for invalidation include incorrect type, an invalid menu choice, or a
filename that does not exist. For example, since vis expects a filename, it will be invalidated (red)
if it is set to a non-string value, or a string that is not the name of a file that can be found. The
mode=’happy’ is invalid because its not a supported choice (’mfs’, ’channel’, ’velocity’, or
’frequency’).
1.3.5.5
The saveinputs Command
The saveinputs command will save the current values of a given task parameters to a Python
(plain ascii) file. It can take up to two arguments, e.g.
saveinputs(taskname, outfile)