Esempio n. 1
0
    def __init__(self, filename):

        self.filename = filename
        self.version = 0
        self.minw = float(0)
        self.maxw = float(0)
        self.minf = float(0)
        self.maxf = float(0)
        self.minx = float(0)
        self.maxx = float(0)
        self.miny = float(0)
        self.maxy = float(0)
        self.wave_par_ = ma.FVector()
        self.wave_errors_ = ma.FVector()
        self.fiber_par_ = ma.FVector()
        self.fiber_errors_ = ma.FVector()
        self.x_par_ = ma.FVector()
        self.x_errors_ = ma.FVector()
        self.y_par_ = ma.FVector()
        self.y_errors_ = ma.FVector()
        self.fy_par_ = ma.FVector()
        self.fy_errors_ = ma.FVector()
        self.reference_wavelength_ = float(0)
        self.reference_w_ = ma.MArray()
        self.reference_f_ = ma.MArray()
        self.wave_offsets_ = ma.MArray()
        self.x_offsets_ = ma.MArray()
Esempio n. 2
0
    def __init__(self, filename):

        self._max_fiber_dist = 14

        self.filename = filename
        self.version = 0
        self.minw = float(0)
        self.maxw = float(0)
        self.minf = float(0)
        self.maxf = float(0)
        self.minx = float(0)
        self.maxx = float(0)
        self.miny = float(0)
        self.maxy = float(0)
        self.sigma_par_ = ma.FVector()
        self.sigma_errors_ = ma.FVector()
        self.h2_par_ = ma.FVector()
        self.h2_errors_ = ma.FVector()
        self.h3_par_ = ma.FVector()
        self.h3_errors_ = ma.FVector()
        self.powerlaw_wings = []
        self.exp_par_ = ma.FVector()
        self.exp_errors_ = ma.FVector()
        self.amplitudes = []

        self.profile = None
Esempio n. 3
0
    def read(self):

        with open(self.filename) as in_:
            self.version = int(io_helpers.skip_commentlines(in_))
            self.minw = float(io_helpers.skip_commentlines(in_))
            self.maxw = float(io_helpers.skip_commentlines(in_))
            self.minf = float(io_helpers.skip_commentlines(in_))
            self.maxf = float(io_helpers.skip_commentlines(in_))
            self.minx = float(io_helpers.skip_commentlines(in_))
            self.maxx = float(io_helpers.skip_commentlines(in_))
            self.miny = float(io_helpers.skip_commentlines(in_))
            self.maxy = float(io_helpers.skip_commentlines(in_))

            self.fiducial_fib_ = int(io_helpers.skip_commentlines(in_))
            self.sigma_par_.read(in_)
            self.sigma_errors_.read(in_)
            self.h2_par_.read(in_)
            self.h2_errors_.read(in_)
            self.h3_par_.read(in_)
            self.h3_errors_.read(in_)
            size = float(io_helpers.skip_commentlines(in_))
            i = 0
            while i < size:
                amp = ma.FVector()
                amp.read(in_)
                self.amplitudes.append(amp)
                i += 1
Esempio n. 4
0
    def read(self):

        with open(self.filename) as in_:
            self.version = int(io_helpers.skip_commentlines(in_))
            self.minw = float(io_helpers.skip_commentlines(in_))
            self.maxw = float(io_helpers.skip_commentlines(in_))
            self.minf = float(io_helpers.skip_commentlines(in_))
            self.maxf = float(io_helpers.skip_commentlines(in_))
            self.minx = float(io_helpers.skip_commentlines(in_))
            self.maxx = float(io_helpers.skip_commentlines(in_))
            self.miny = float(io_helpers.skip_commentlines(in_))
            self.maxy = float(io_helpers.skip_commentlines(in_))

            self.sigma_par_.read(in_)
            self.sigma_errors_.read(in_)
            self.h2_par_.read(in_)
            self.h2_errors_.read(in_)
            self.h3_par_.read(in_)
            self.h3_errors_.read(in_)
            self.exp_par_.read(in_)
            self.exp_errors_.read(in_)
            for i in range(0, 4):
                val = float(io_helpers.skip_commentlines(in_))
                self.powerlaw_wings.append(val)
            size = float(io_helpers.skip_commentlines(in_))
            i = 0
            while i < size:
                amp = ma.FVector()
                amp.read(in_)
                self.amplitudes.append(amp)
                i += 1
Esempio n. 5
0
    def __init__(self, filename):

        self.filename = filename
        self.version = 0
        self.minw = float(0)
        self.maxw = float(0)
        self.minf = float(0)
        self.maxf = float(0)
        self.minx = float(0)
        self.maxx = float(0)
        self.miny = float(0)
        self.maxy = float(0)
        self.sigma_par_ = ma.FVector()
        self.sigma_errors_ = ma.FVector()
        self.h2_par_ = ma.FVector()
        self.h2_errors_ = ma.FVector()
        self.h3_par_ = ma.FVector()
        self.h3_errors_ = ma.FVector()
        self.exp_par_ = ma.FVector()
        self.exp_errors_ = ma.FVector()
        self.amplitudes = []