Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 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)
Exemple #5
0
 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)
Exemple #6
0
 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)