Suppose you have an application which demands that variance information be present, say for optimal extraction of spectra, you could test for the existence of a variance array in your FITS file called dataset.fit like this.
# Enable automatic conversion
convert # Needs to be invoked only once per process
set file = dataset.fit
ndftrace $file > /dev/null
set varpres = `parget variance ndftrace`
if ( $varpres == "FALSE" ) then
echo "File $file does not contain variance information"
else
<process the dataset>
endif
The logical results parameters have values TRUE or FALSE.
You merely substitute another component such as quality or axis in the
parget command to test for the presence of
these components.
C-shell Cookbook