clip_build_fits
Updated: Aug19,2020

Build a FITS image file with user-specified size and pixel values.

 
% clip_build_fits.sh -h 

usage: clip_build_fits.sh 775 771 PolyFile a.fits [-v] [-h] [{-p ]
arg1 - X dimension of image to be made (= NAXIS1).
arg2 - Y dimension of image to be made (= NAXIS2).
arg3 - polynomial coefficients file (bgnmp-style)
arg4 - name of output fits file
N.B. If PolyFile is not present, Zero image is made.
Additional options:
 -v = print verbose comments and run in debug mode
 -h = just show usage message

% clip_build_fits.sh 50 50 poly.1 a.fits -p pix.1  

% cat poly.1 
50.0
-0.5
0.2
+0.6

% cat pix.1 
25 25 10 40 100.0
10 40 25 25 120.0

This makes a smooth, curved background with a cross in the middle of the image.



Back to SCO CODES page