msccmd: Execute general command with image extension expansion

Package: msctools

Synopsis

This tasks executes a command where any input and output image list arguments specified by $input, $in2, and $output are replaced by an expanded list of image extensions. If there are no command line arguments the task runs as an interpreter with prompts until the command 'q' or 'quit' is entered.

Usage

msccmd [command input output]

Parameters

Description

Examples

1. Do image statistics.

cl> msccmd "imstat $input" obj*fits

Since this is a common operation see mscstat instead.

2. Do image arithmetic.

cl> msccmd "imarith $input + $in2 $output"
List of input files: obj001
Second list of input files: obj002
List of output files: sum

Since this is a common operation see mscarith instead.

3. Do HSELECT on the command line with no prompts.

cl> msccmd "hselect $input $I,filter yes" obj001,obj002
[output]

4. Use in interpretive mode.

cl> msccmd
msccmd> Command: imhead $input l-
[output]
msccmd> Command: hselect $input $I,filter
msccmd> Input files: obj001,obj002
[output]
msccmd> Command: hedit $input filter B verify-
msccmd> Input files (obj001,obj002):
msccmd> Command: print "This command has not input or output files."
This command has not input or output files.
msccmd> Command: q
cl>

Restriction

Image sections are not allowed in the mosaic filenames.

Revisions

MSCSTAT - V2.11 external package
First release.

See also

mscarith, mscstat