STScI Logo

Hubble Space Telescope
SBC PAM Script

#
# Make a PAM from coeff files.
#
# SBC version.
#
# Quick test version, Richard Hook, January 2004
#
#access the appropriate tasks
stsdas
dither

# Delete temp files
delete tmp*
delete sbc_pam.fits

# First create oversize input
ctio
imcreate tmp.fits 2 1100 1100

# Put some values into the header
hedit tmp.fits exptime 1.0 add+ update+

# Drizzle
unlearn drizzle
iraf.drizzle.outnx=1600
iraf.drizzle.outny=1600
drizzle tmp.fits tmp_drz.fits outweig=tmp_wht.fits coeffs="sbc_flt_coeffs1.dat"

# Blot back
unlearn blot
iraf.blot.outnx=1024
iraf.blot.outny=1024
iraf.blot.expout=1.0
blot tmp_wht.fits tmp_blt.fits coeffs="sbc_flt_coeffs1.dat"

imarith 1.0 / tmp_blt.fits sbc_pam.fits

delete tmp*
#
#