import pyraf from pyraf import iraf import copy, os, shutil, glob, sys, string, re, math, operator, time import pyfits from types import * from mx.DateTime import * from iqpkg import * import ephem # Necessary packages iraf.images() iraf.immatch() iraf.imfilter() iraf.noao() iraf.imred() iraf.ccdred() iraf.digiphot() iraf.apphot() yes=iraf.yes no=iraf.no INDEF=iraf.INDEF hedit=iraf.hedit imgets=iraf.imgets imcombine=iraf.imcombine pyrafdir="python/pyraf/" pyrafdir_key='PYRAFPARS' if os.environ.has_key(pyrafdir_key):
def gauss2(fn): iraf.images() iraf.imfilter() for i in (fn): iraf.gauss(i, i, '2')
import pyraf from pyraf import iraf import copy, os, shutil, glob, sys, string, re, math, operator, numpy, time import pyfits from types import * from numpy import matrix from numpy import linalg from iqpkg import * import p60photutils # Necessary packages iraf.images() iraf.immatch() iraf.imfilter() iraf.noao() iraf.imred() iraf.ccdred() iraf.digiphot() iraf.apphot() yes = iraf.yes no = iraf.no INDEF = iraf.INDEF hedit = iraf.hedit imgets = iraf.imgets imcombine = iraf.imcombine pyrafdir = "python/pyraf/" pyrafdir_key = 'PYRAFPARS'
def gauss2(setup, filelist): iraf.images() iraf.imfilter() for i in (filelist): name = setup + '/' + i iraf.gauss(name, name, '2')