Summary: XDIMSUM - IRAF XDIMSUM external package Name: iraf-xdimsum Version: 1.0 Release: 7.el5.uson License: Freely redistributable/modifiable if attributed, no warranty Group: Applications/Scientific Packager: Fernando Avila Castro Distribution: Area de Astronomia, USON Source0: xdimsum.tar.Z Source1: xdimsum-bin.redhat.tgz Url: http://iraf.noao.edu/iraf/web/extern.html BuildRoot: %{_tmppath}/xdimsum-root Provides: iraf-xdimsum Requires: iraf >= 2.12 %description XDIMSUM is a package for creating accurate sky subtracted images from sets of dithered observations. While the observations need not be in the infrared, the dominance of the variable sky background in infrared data requires dithering of many short exposures and recombination with careful sky subtraction to produce deep images. Hence the package is called "Experimental Deep Infrared Mosaicing Software" or XDIMSUM. XDIMSUM is a variant of the DIMSUM package developed by P. Eisenhardt, M. Dickensen, S.A. Stanford, and J. Ward. F. Valdes (IRAF group) modified DIMSUM to support FITS format images, added the DIMSUM tutorial demos script, wrote the original version of this document, and repackaged DIMSUM for distribution as an IRAF external package. L. Davis (IRAF group) rewrote the the major DIMSUM scripts to improve their clarity, robustness, and efficiency, added new scripts for computing relative offsets, and documented the tasks. The new package uses the same default algorithms as DIMSUM but is sufficiently different in format that it has been renamed XDIMSUM. A short summary of the major differences between XDIMSUM and DIMSUM is provided below and is duplicated in the on-line user's guide. XDIMSUM is being made available to the community as an external pacakge in the hope that some of the new features may prove useful to others. Users should direct XDIMSUM installation questions, bug reports, questions about technical details, and comments and suggestions to the the IRAF group (iraf@noao.edu) not the original authors. %prep # set up dirs mkdir -p $RPM_BUILD_ROOT/iraf/xdimsum # unpack the main sources cd $RPM_BUILD_ROOT/iraf/xdimsum tar xvvzf $RPM_SOURCE_DIR/xdimsum.tar.Z # unpack the binaries cd $RPM_BUILD_ROOT/iraf/xdimsum/bin.redhat tar xvvzf $RPM_SOURCE_DIR/xdimsum-bin.redhat.tgz %build # nuke unnecessary files and strip static libs cd $RPM_BUILD_ROOT/iraf find . -path "*bin.sunos/*" -exec rm -rf {} \; find . -path "*bin.freebsd/*" -exec rm -rf {} \; find . -path "*bin.suse/*" -exec rm -rf {} \; find . -path "*bin.linux/*" -exec rm -rf {} \; find . -name "*OBJS.arc*" -exec rm {} \; %install # diddle with extern.pkg mkdir -p $RPM_BUILD_ROOT/iraf/iraf/unix/hlib cd $RPM_BUILD_ROOT/iraf/iraf/unix/hlib # make specific entries for each external package and then slap them # all together with the post(un)install scripts. echo 'reset xdimsum = /iraf/xdimsum/' > XDIMSUM.extern.pkg echo 'task xdimsum.pkg = xdimsum$xdimsum.cl' >> XDIMSUM.extern.pkg echo '' >> XDIMSUM.extern.pkg echo ' ,xdimsum$lib/helpdb.mip\' > XDIMSUM.helpdb.mip %clean rm -rf $RPM_BUILD_ROOT %post cp /iraf/iraf/unix/hlib/extern.pkg /iraf/iraf/unix/hlib/extern.pkg.irafsave cat /iraf/iraf/unix/hlib/*.extern.pkg > /iraf/iraf/unix/hlib/extern.pkg echo 'reset helpdb = "lib$helpdb.mip\' >> /iraf/iraf/unix/hlib/extern.pkg cat /iraf/iraf/unix/hlib/*.helpdb.mip >> /iraf/iraf/unix/hlib/extern.pkg echo ' "' >> /iraf/iraf/unix/hlib/extern.pkg echo 'keep' >> /iraf/iraf/unix/hlib/extern.pkg %postun cp /iraf/iraf/unix/hlib/extern.pkg /iraf/iraf/unix/hlib/extern.pkg.irafsave cat /iraf/iraf/unix/hlib/*.extern.pkg > /iraf/iraf/unix/hlib/extern.pkg echo 'reset helpdb = "lib$helpdb.mip\' >> /iraf/iraf/unix/hlib/extern.pkg cat /iraf/iraf/unix/hlib/*.helpdb.mip >> /iraf/iraf/unix/hlib/extern.pkg echo ' "' >> /iraf/iraf/unix/hlib/extern.pkg echo 'keep' >> /iraf/iraf/unix/hlib/extern.pkg %files %defattr(-,root,root) /iraf/xdimsum /iraf/iraf/unix/hlib/* %changelog * Wed Apr 18 2007 - rebuild for rhel 5 * Sun Aug 15 2004 - build for FC 2 * Tue Jan 20 2004 - build for FC 1 * Mon Dec 09 2002 - first crack at making rpm