When writing a data-processing pipeline connecting several applications you will often need to know some attribute of the data file, such as its number of dimensions, its shape, whether or not it may contain bad pixels, a variance array or a specified extension. The way to access these data is with ndftrace from KAPPA and parget commands. ndftrace inquires the data, and parget communicates the information to a shell variable.
C-shell Cookbook