def __makeResponse(self): response = ArrayList() size = self.queryResults.size() for i in range(size): currentQuery = self.queryResults.get(i) content = GempakConvert.getSatHdrContent(currentQuery.getSpatialObject()) content = content + ";" + currentQuery.getCreatingEntity() + ";" + currentQuery.getPhysicalElement() aDbTime = "%s" % currentQuery.getDataTime() aDattim = GempakConvert.dbtimeToSatDattim(aDbTime) content = content + ";" + aDattim response.add(ResponseMessageGeneric(content)) return response
def __makeResponse(self): response = ArrayList() size = self.queryResults.size() for i in range(size): currentQuery = self.queryResults.get(i) content = GempakConvert.getMcidasHdrContent(currentQuery.getSpatialObject()) content = content + ";" + "%s" % currentQuery.getSatelliteId() + \ ";" + "%s" % currentQuery.getImageTypeNumber() + \ ";" + "%s" % currentQuery.getCalType() aDbTime = "%s" % currentQuery.getDataTime() aDattim = GempakConvert.dbtimeToSatDattim(aDbTime) content = content + ";" + aDattim response.add(ResponseMessageGeneric(content)) return response
def __makeResponse(self): from com.raytheon.edex.uengine.tasks.decode import FileIn response = ArrayList() size = self.queryResults.size() for i in range(size): currentQuery = self.queryResults.get(i) aLat = "%s" % currentQuery.getLatitude() aLon = "%s" % currentQuery.getLongitude() aProd = "%s" % currentQuery.getProductCode() aNx = "%s" % currentQuery.getNx() aNy = "%s" % currentQuery.getNy() aDbTime = "%s" % currentQuery.getDataTime() aDattim = GempakConvert.dbtimeToSatDattim(aDbTime) content = aLat + ";" + aLon + ";" + aProd + ";" + aNx + ";" + aNy + ";" + aDattim fileIn = FileIn(self.plugin, currentQuery) records = fileIn.retrieveGroup() convert = GempakConvert() thresholds = convert.getRadarThresholds(currentQuery, records) rpgIdDec = "10000" content = content + ";" + thresholds[0:-1] + ";" + rpgIdDec response.add(ResponseMessageGeneric(content)) return response
def __makeResponse(self): from com.raytheon.edex.uengine.tasks.decode import FileIn response = ArrayList() size = self.queryResults.size() for i in range(size): currentQuery = self.queryResults.get(i) aLat = "%s" % currentQuery.getLatitude() aLon = "%s" % currentQuery.getLongitude() aProd = "%s" % currentQuery.getProductCode() aNx = "%s" % currentQuery.getNx() aNy = "%s" % currentQuery.getNy() aDbTime = "%s" % currentQuery.getDataTime() aDattim = GempakConvert.dbtimeToSatDattim(aDbTime) content = aLat + ";" + aLon + ";" + aProd + ";" + aNx + ";" + aNy + ";" + aDattim fileIn = FileIn(self.plugin, currentQuery) records = fileIn.retrieveGroup() convert = GempakConvert(); thresholds = convert.getRadarThresholds(currentQuery, records); rpgIdDec = "10000" content = content + ";"+ thresholds[0:-1] + ";" + rpgIdDec response.add(ResponseMessageGeneric(content)) return response
def __makeResponse(self): from com.raytheon.edex.uengine.tasks.decode import FileIn response = ArrayList() size = self.queryResults.size() for i in range(size): currentQuery = self.queryResults.get(i) aLat = "%s" % currentQuery.getLatitude() aLon = "%s" % currentQuery.getLongitude() aProd = "%s" % currentQuery.getProductCode() aAngle = "%s" % currentQuery.getTrueElevationAngle() aNumBins = "%s" % currentQuery.getNumBins() aFormat = "%s" % currentQuery.getFormat() aDbTime = "%s" % currentQuery.getDataTime() aDattim = GempakConvert.dbtimeToSatDattim(aDbTime) content = aLat + ";" + aLon + ";" + aProd + ";" + aAngle + ";" + aNumBins + ";" + aFormat + ";" + aDattim fileIn = FileIn(self.plugin, currentQuery) records = fileIn.retrieveGroup() convert = GempakConvert(); thresholds = convert.getRadarThresholds(currentQuery, records); rpgIdDec = currentQuery.getSpatialObject().getRpgIdDec() content = content + ";"+ thresholds[0:-1] + ";" + rpgIdDec response.add(ResponseMessageGeneric(content)) return response