| combDither (version 1.34) | index /acs/science/pipeline/lib/python/apsis/combDither.py |
# $Id: combDither.py,v 1.34 2003/04/02 15:20:46 jpb Exp $
# ---------------------------------------------------------------------
# $Log: combDither.py,v $
# Revision 1.34 2003/04/02 15:20:46 jpb
# Updates to doc string.
#
# Revision 1.33 2003/03/25 14:13:38 jpb
# Added 'nopad' option, to make output images slightly smaller.
#
# Revision 1.32 2003/03/07 14:51:23 jpb
# Fix a bug in new _get_refAsn() method for choosing reference association.
#
# Revision 1.31 2003/03/05 20:08:17 jpb
# Added a method for choosing the association with the largest range of
# shifts as the reference for defining the output image size.
#
# Revision 1.30 2003/02/26 16:01:02 anderson
# made Lanczos3 kernel the default kernel for the final drizzle task.
#
# Revision 1.29 2003/02/12 16:26:21 anderson
# updated messaging for Bugzilla bug #2245 - Markup drizzle parameters...
# drizzle configuration pars now appear in the module message.
# Also, updated parsing of file names due to Grouper naming patterns in
# the making flag and rms images.
#
# Revision 1.28 2003/02/10 19:14:34 anderson
# fixes Bugzilla bug # 2245 - Markup drizzle parameters in combdither message
#
# Revision 1.27 2003/01/31 17:03:31 jpb
# Added call to and handling of augmask.py, for making the edge mask.
#
# Revision 1.26 2002/12/13 16:20:31 jpb
# Added a 'noRej' flag to run_All, to allow the pipeline to skip the
# CR rejection.
#
# Revision 1.25 2002/11/26 14:22:14 jpb
# Added the 'kernel' option to allow setting of drizzle.kernel.
#
# Revision 1.24 2002/11/21 18:30:33 jpb
# Modified to send the logfile to pyblot.
#
# Revision 1.23 2002/11/19 22:25:40 jpb
# Decreased the size of the output padding factors (_padx,_pady) by 1%.
#
# Revision 1.22 2002/09/20 16:58:57 jpb
# Modification to increase output image size to accommodate relative rotations.
#
# Revision 1.21 2002/09/10 16:32:47 jpb
# Long awaited fix to CD matrices in drizzled images; also ensure that
# all the WCS information is the same for all images. The new _makeWCS()
# function assembles the information into a 'wcstuples' list which is
# sent as the new optional 'addCards' parameter to fixDrzHeader for all
# the drizzled images, thus ensuring consistency. The CD matrix is
# calculated by matutil.targroll/matutil.makeCDdict.
#
# Revision 1.20 2002/08/20 20:22:45 anderson
# Revision to add some robustness to the call to fixDrzHeader in the
# event that pyfits/numarray are not well-behaved (which happens often).
# A try/except clause now only _tries_ to fix the header if it can.
# If it cannot, chances are pyfits/numarray are the problem.
#
# Revision 1.19 2002/07/26 13:50:11 jpb
# Added inNsci=NumSci in pyblot call; cleaned up the run_drizzle code a bit;
# make it use all images for calculating the zeropoint (center) of the shifts,
# not just images in the first association; fixed spurious problem with
# exposure times from pydrizzle by explicitly deleting the 'exptime' attribute
# of the skyField object before creating the new pydrizzle object (this was
# a tough bug to track down).
#
# Revision 1.18 2002/07/23 21:11:20 jpb
# Made run_drizzle delete the individual weight images immediately after
# the first pass drizzling, since they're not used for anything.
#
# Revision 1.17 2002/07/16 17:23:19 jpb
# Fixed the 'texptime' value in the pydrizzle parlist for the case of
# separDriz = 1 (i.e., the first pass drizzling). The newest pydrizzle
# uses the texptime to correct the drizzle exposure time value, and the
# values in the pydrizzle parlist were not appropriate when drizzling
# to separate output images.
#
# Revision 1.16 2002/07/09 22:41:32 jpb
# Aded the run_drizzle/run_all flags 'asecpix' and 'pixfrac' which get
# sent to pydrizzle/drizzle for changing output pixel scale and the
# drizzle dropsize parameter.
#
# Revision 1.15 2002/06/27 20:30:36 anderson
# update to include pyfits and numarray in the
# module message markup.
#
# Revision 1.14 2002/06/25 21:25:28 anderson
# Revision addresses Bugzilla bug #1411
# - Discontinue use of '&' (ampersand) character
#
# Revision 1.13 2002/06/20 21:07:43 anderson
# Revision to provide consistent filenames in messages with relative
# pathnames from the path described in the <root> element of each
# module message. This was an update to this module's mkMsg method.
#
# Revision 1.12 2002/06/19 19:01:01 anderson
# removed the import pydrizzle26 as pydrizzle as this was
# breaking the import cycle due to cyclic import within
# pydrizzle. eg.,
#
# __init__:
# import drutil
#
# drutil.py:
# import pydrizzle
#
# This really ought to be reported as deprecated behaviour
#
# Revision 1.11 2002/06/18 22:37:08 jpb
# Added the post-drizzle exposure time fix for Numsci > 1 back in for
# the weight and context images. Only the sci image exposure time is
# corrected by the new pydrizzle.
#
# Revision 1.10 2002/06/16 01:04:05 jpb
# Made the run_all method transmit the "clean_up" flag to pyblot.blotter.
#
# Revision 1.9 2002/06/13 23:22:16 jpb
# Fixed a typo in deleting the "EXTEND" card of the FLAG image header.
#
# Revision 1.8 2002/06/13 23:06:45 anderson
# added a try/except clause around the deletion of the EXTEND
# ascard which the current pyfits now creates. Just in case that
# behaviour ever changes.
#
# Revision 1.7 2002/06/12 19:02:49 jpb
# Several changes: (1) move to the latest (version 2.6) pydrizzle release;
# (2) move from Numeric/fits to numarray/pyfits, which mainly affects the
# makeRmsImage and makeFlagImage methods; (3) make it correctly get the
# drizzle version by calling drizzle with dummy input/output before
# constructor and trapping the STDOUT; (4) FLAG image now made from the
# drizzled weight image, rather than context image, since the latter
# becomes 3-d if there are more than 32 input arrays (16 WFC images).
# I've also update the lengthy drizzleImage class docstring to reflect
# the recent changes.
#
# Revision 1.6 2002/06/10 21:38:23 jpb
# Upgrade to use pydrizzle 2.5! Also, delete makeAsn and _computeDeltaShifts
# methods; the code now just uses the original association tables.
#
# Revision 1.5 2002/06/06 17:57:48 anderson
# Revision to fix Bugzilla issues:
# # 1333 - Remove invalid or redundant keywords
# # 1352 - include medriz_?.fits files in messages
#
# Revision 1.4 2002/05/21 22:05:48 anderson
# various fixes adressing a bug in align
# - initialisation of self.sci dictionaries.
# - fix to bug # 1303: MIME type correction in
# combDither
# - fix to bug # 1298: ingest message error in
# asn input files.
#
# Revision 1.3 2002/05/16 18:46:12 anderson
# Bringing all apsis modules to a common rev level.
# K Anderson
#
# Revision 1.1.1.1 2002/05/03 17:39:34 anderson
# initial revision and release of the ACS Science pipeline, apsis
#
# ---------------------------------------------------------------------
# jpb changes, starting 10-10-01
# - fixes the size of the output image to be same in all filters
# - modifies shifts across filters to make sure images are aligned
# - the latter modification requires access to the MatchDict produced
# by align, so now we send it to the constructor
#
# - recent changes include cosmic-ray rejection with pyblot
# and updating ALIGNSKY values in image headers.
# - now also makes RMS image for sextractor
#
| Modules | ||||||
| ||||||
| Classes | ||||||||||
| ||||||||||
| Data | ||
| __author__ = 'J Blakeslee __file__ = '/acs/science/pipeline/lib/python/apsis/combDither.pyc' __ii = 5 __name__ = 'combDither' __version__ = '1.34' __version_date__ = '2003/04/02 15:20:46' _exVarPerSec_ = 0.02222 _goodBits_ = 8578 _rnVarSuppFac_ = 1.3799999999999999 drversion = '2.9' iraf = <module 'pyraf.iraf' from '/usr/local/lib/python2.2/site-packages/pyraf/iraf.pyc'> pydriz_version = '2.6.1 (11-Feb-2003)' pyversion = '2.2 (#2, Feb 6 2002, 17:02:39) \n[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)]' version = '2.2 (#2, Feb 6 2002, 17:02:39) \n[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)]' | ||
| Author | ||
| J Blakeslee <jpb@pha.jhu.edu> | ||