Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/a/g/agpy-0.1.3/agpy/pyflagger.py   agpy(Download)
import agpy
from agpy.PCA_tools import *
from AG_image_tools.drizzle import drizzle
from agpy import smooth
from guppy import hpy
        self.weightmap = self.mapstr['WT_MAP'][0]
        self.nhitsmap = self.mapstr['NHITSMAP'][0]
        self.residsquaremap = drizzle(self.tstomap,self.noise**2,self.map.shape,self.weight*(True-self.flags))
        self.weightsquaremap = drizzle(self.tstomap,self.weight**2,self.map.shape,1.0)
        self.varscalemap = self.weightmap / (self.weightmap**2 - self.weightsquaremap)
        elif not isinstance(weights,numpy.ndarray): weights = numpy.ones(ts.shape)*weights
 
        self.map = drizzle(self.tstomap,ts,self.map.shape,weights*(True-self.flags))
        print "Computing map took %f seconds" % (time.time() - t0)
        if showmap: self.showmap(**kwargs)