예제 #1
0
파일: kaitutils.py 프로젝트: cenko/python
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):
예제 #2
0
def gauss2(fn):
    iraf.images()
    iraf.imfilter()
    for i in (fn):
        iraf.gauss(i, i, '2')
예제 #3
0
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'
예제 #4
0
def gauss2(setup, filelist):
    iraf.images()
    iraf.imfilter()
    for i in (filelist):
        name = setup + '/' + i
        iraf.gauss(name, name, '2')