Пример #1
0
class RunQuery:

    def viewQueryResults(self, longitude, latitude, radiusMultiplier):
        self.query = SDSSQuery(longitude, latitude, radiusMultiplier)
        return self.query.standardQuery()

    def viewSpectraResults(self, longitude, latitude, radiusMultiplier):
        self.query = SDSSQuery(longitude, latitude, radiusMultiplier)
        return self.query.querySpectra()

    def recedingVelocity(self, longitude, latitude, radiusMultiplier):
        self.result = RecedingVelocity(longitude, latitude, radiusMultiplier)
        return self.result.runRecedingVelocity()
    
    def objectVelocityData(self, longitude, latitude, radiusMultiplier):
        self.result = RecedingVelocity(longitude, latitude, radiusMultiplier)
        return self.result.writeData()

    def objectSpeedLightPercent(self, longitude, latitude, radiusMultiplier, targetID):
        self.result = RecedingVelocity(longitude, latitude, radiusMultiplier)
        return self.result.runSpeedLightPercent(targetID)

    def lumDistance(self, longitude, latitude, radiusMultiplier, targetID):
        self.result = LuminosityDistance(longitude, latitude, radiusMultiplier)
        return self.result.runLuminosityDistance(targetID)

    def plotMagnitudes(self, latitude, longitude, radiusMultiplier):
        self.result = ObjectMagnitudes(latitude, longitude, radiusMultiplier)
        return self.result.runObjectMagnitudes()
    
    def magnitudeData(self, longitude, latitude, radiusMultiplier):
        self.result = ObjectMagnitudes(longitude, latitude, radiusMultiplier)
        return self.result.writeData()

    def plotHRDiagram(self, latitude, longitude, radiusMultiplier):
        self.result = HRDiagram(latitude, longitude, radiusMultiplier)
        self.result.runHRDiagram()
Пример #2
0
 def plotHRDiagram(self, latitude, longitude, radiusMultiplier):
     self.result = HRDiagram(latitude, longitude, radiusMultiplier)
     self.result.runHRDiagram()
Пример #3
0
 def magnitudeData(self, longitude, latitude, radiusMultiplier):
     self.result = ObjectMagnitudes(longitude, latitude, radiusMultiplier)
     return self.result.writeData()
Пример #4
0
 def plotMagnitudes(self, latitude, longitude, radiusMultiplier):
     self.result = ObjectMagnitudes(latitude, longitude, radiusMultiplier)
     return self.result.runObjectMagnitudes()
Пример #5
0
 def lumDistance(self, longitude, latitude, radiusMultiplier, targetID):
     self.result = LuminosityDistance(longitude, latitude, radiusMultiplier)
     return self.result.runLuminosityDistance(targetID)
Пример #6
0
 def objectSpeedLightPercent(self, longitude, latitude, radiusMultiplier, targetID):
     self.result = RecedingVelocity(longitude, latitude, radiusMultiplier)
     return self.result.runSpeedLightPercent(targetID)
Пример #7
0
 def objectVelocityData(self, longitude, latitude, radiusMultiplier):
     self.result = RecedingVelocity(longitude, latitude, radiusMultiplier)
     return self.result.writeData()
Пример #8
0
 def recedingVelocity(self, longitude, latitude, radiusMultiplier):
     self.result = RecedingVelocity(longitude, latitude, radiusMultiplier)
     return self.result.runRecedingVelocity()