示例#1
0
    def _ReadFile(self, scatfile):

        if type(scatfile) == list:

            scats = map(scatReader, scatfile)

            scat = scats[0]

            for sc in scats[1:]:

                scat = scat + sc
        else:

            scat = scatReader(scatfile)

        self.scat = scat
示例#2
0
    def _ReadFile(self,scatfile):
    

        if type(scatfile) == list:


            scats  = map(scatReader,scatfile)

            scat = scats[0]

            for sc in scats[1:]:

                scat = scat + sc
        else:

            scat = scatReader(scatfile)

        self.scat = scat
示例#3
0
    def __init__(self, scatFile):

        self.scat = scatReader(scatFile)
import sys, os


inDir = sys.argv[1]
eMin = float(sys.argv[2])
eMax = float(sys.argv[3])

print "Looking for SCATS in "+ inDir

files = os.listdir(inDir)


print "Found: "
for x in files:
    print "\t"+x


scats = map(lambda x: sRead.scatReader(inDir + x), files)

combinedScat = scats[0]

for s in scats[1:]:
    combinedScat = combinedScat + s


fl = flc.fluxLightCurve(combinedScat,eMin,eMax)
fl.FormatCovarMat()
fl.LightCurveErrors()
fl.CreateLightCurve()
fl.Save(inDir+"/fluxSave.p")
示例#5
0
import spectralTools.scatReader as sRead
import fluxLightCurve as flc
import sys, os

inDir = sys.argv[1]
eMin = float(sys.argv[2])
eMax = float(sys.argv[3])

print "Looking for SCATS in " + inDir

files = os.listdir(inDir)

print "Found: "
for x in files:
    print "\t" + x

scats = map(lambda x: sRead.scatReader(inDir + x), files)

combinedScat = scats[0]

for s in scats[1:]:
    combinedScat = combinedScat + s

fl = flc.fluxLightCurve(combinedScat, eMin, eMax)
fl.FormatCovarMat()
fl.LightCurveErrors()
fl.CreateLightCurve()
fl.Save(inDir + "/fluxSave.p")
示例#6
0
    def __init__(self, scatFile):

        self.scat = scatReader(scatFile)