예제 #1
0
파일: dataBank.py 프로젝트: tamorris/OSCAAR
 def calcChiSq(self):
     for star in self.allStarsDict:
         self.allStarsDict[star]['chisq'] = mathMethods.chiSquared(self.getFluxes(self.targetKey),self.getFluxes(star))
     chisq = []
     for star in self.allStarsDict:
         chisq.append(self.allStarsDict[star]['chisq'])
     self.chisq = np.array(chisq)
     self.meanChisq = np.mean(chisq)
     self.stdChisq = np.std(chisq)
예제 #2
0
파일: dataBank.py 프로젝트: tamorris/OSCAAR
 def calcChiSq_multirad(self,apertureRadiusIndex):
     for star in self.allStarsDict:
         print self.getFluxes_multirad(self.targetKey,apertureRadiusIndex),self.getFluxes_multirad(star,apertureRadiusIndex)
         self.allStarsDict[star]['chisq'][apertureRadiusIndex] = mathMethods.chiSquared(self.getFluxes_multirad(self.targetKey,apertureRadiusIndex),self.getFluxes_multirad(star,apertureRadiusIndex))
     chisq = []
     for star in self.allStarsDict:
         chisq.append(self.allStarsDict[star]['chisq'][apertureRadiusIndex])
     self.chisq = np.array(chisq)
     self.meanChisq = np.mean(chisq)
     self.stdChisq = np.std(chisq)
예제 #3
0
파일: dataBank.py 프로젝트: bluegod/OSCAAR
 def calcChiSq(self):
     """
     Calculate the :math:`$\chi^2$` for the fluxes of each comparison star and the fluxes of the target star. This
     metric can be used to suggest which comparison stars have similar overall trends to the target star.
     """
     for star in self.allStarsDict:
         self.allStarsDict[star]['chisq'] = mathMethods.chiSquared(self.getFluxes(self.targetKey),self.getFluxes(star))
     chisq = []
     for star in self.allStarsDict:
         chisq.append(self.allStarsDict[star]['chisq'])
     self.chisq = np.array(chisq)
     self.meanChisq = np.mean(chisq)
     self.stdChisq = np.std(chisq)
예제 #4
0
파일: dataBank.py 프로젝트: xnaveira/OSCAAR
 def calcChiSq(self):
     """
     Calculate the :math:`$\chi^2$` for the fluxes of each comparison star and the fluxes of the target star. This
     metric can be used to suggest which comparison stars have similar overall trends to the target star.
     """
     for star in self.allStarsDict:
         self.allStarsDict[star]['chisq'] = mathMethods.chiSquared(self.getFluxes(self.targetKey),self.getFluxes(star))
     chisq = []
     for star in self.allStarsDict:
         chisq.append(self.allStarsDict[star]['chisq'])
     self.chisq = np.array(chisq)
     self.meanChisq = np.mean(chisq)
     self.stdChisq = np.std(chisq)
예제 #5
0
파일: dataBank.py 프로젝트: bluegod/OSCAAR
 def calcChiSq_multirad(self,apertureRadiusIndex):
     """
     Calculate the :math:`$\chi^2$` for the fluxes of each comparison star and the fluxes of the target star. This
     metric can be used to suggest which comparison stars have similar overall trends to the target star.
     """
     for star in self.allStarsDict:
         print self.getFluxes_multirad(self.targetKey,apertureRadiusIndex),self.getFluxes_multirad(star,apertureRadiusIndex)
         self.allStarsDict[star]['chisq'][apertureRadiusIndex] = mathMethods.chiSquared(self.getFluxes_multirad(self.targetKey,apertureRadiusIndex),self.getFluxes_multirad(star,apertureRadiusIndex))
     chisq = []
     for star in self.allStarsDict:
         chisq.append(self.allStarsDict[star]['chisq'][apertureRadiusIndex])
     self.chisq = np.array(chisq)
     self.meanChisq = np.mean(chisq)
     self.stdChisq = np.std(chisq)
예제 #6
0
파일: dataBank.py 프로젝트: xnaveira/OSCAAR
 def calcChiSq_multirad(self,apertureRadiusIndex):
     """
     Calculate the :math:`$\chi^2$` for the fluxes of each comparison star and the fluxes of the target star. This
     metric can be used to suggest which comparison stars have similar overall trends to the target star.
     """
     for star in self.allStarsDict:
         print self.getFluxes_multirad(self.targetKey,apertureRadiusIndex),self.getFluxes_multirad(star,apertureRadiusIndex)
         self.allStarsDict[star]['chisq'][apertureRadiusIndex] = mathMethods.chiSquared(self.getFluxes_multirad(self.targetKey,apertureRadiusIndex),self.getFluxes_multirad(star,apertureRadiusIndex))
     chisq = []
     for star in self.allStarsDict:
         chisq.append(self.allStarsDict[star]['chisq'][apertureRadiusIndex])
     self.chisq = np.array(chisq)
     self.meanChisq = np.mean(chisq)
     self.stdChisq = np.std(chisq)