Changeset 35097 for trunk/ippToPsps/jython/plot.py
- Timestamp:
- Feb 6, 2013, 3:16:35 PM (13 years ago)
- Location:
- trunk/ippToPsps
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps
- Property svn:mergeinfo changed
-
trunk/ippToPsps/jython
- Property svn:ignore
-
old new 1 1 *.class 2 Makefile 3 Makefile.in
-
- Property svn:ignore
-
trunk/ippToPsps/jython/plot.py
r34165 r35097 15 15 Constructor 16 16 ''' 17 def __init__(self, logger, config, ippToPspsDb):17 def __init__(self, logger, skychunk, ippToPspsDb): 18 18 19 19 self.logger = logger 20 self. config = config20 self.skychunk = skychunk 21 21 self.ippToPspsDb = ippToPspsDb 22 22 23 23 ''' 24 Creates a density plot of pending exposures for this config24 Creates a density plot of pending exposures for this skychunk 25 25 ''' 26 26 def createDensityPlot(self, batchType, forCzartool=False): 27 27 28 tempFilename = "./" + self. config.name + "_" + batchType + "_plotData.dat"28 tempFilename = "./" + self.skychunk.name + "_" + batchType + "_plotData.dat" 29 29 DATFILE = open(tempFilename,'w') 30 30 max = self.ippToPspsDb.createPendingDensityPlotData(batchType, DATFILE) … … 36 36 37 37 if forCzartool: 38 OUTPUTFILE = self.config.czarPlotsPath + "/ippToPsps_density_" + self.config.name + "_" + batchType + ".png" 38 ## XXX from config?? 39 OUTPUTFILE = self.skychunk.czarPlotsPath + "/ippToPsps_density_" + self.skychunk.name + "_" + batchType + ".png" 39 40 else: 40 OUTPUTFILE = self. config.name + "_" + batchType + "_" + timestamp + ".png"41 OUTPUTFILE = self.skychunk.name + "_" + batchType + "_" + timestamp + ".png" 41 42 42 43 f = os.popen('/home/panstarrs/ipp/local/bin/gnuplot', 'w') … … 49 50 print >> f, "set term " + TERM + "; \ 50 51 set output \"" + OUTPUTFILE + "\"; \ 51 set title \"Unprocessed " + batchType + " items for '" + self. config.name + "' as of " + timestamp + "\"; \52 set title \"Unprocessed " + batchType + " items for '" + self.skychunk.name + "' as of " + timestamp + "\"; \ 52 53 set grid; \ 53 set xrange [" + str(self. config.minRa) + ":" + str(self.config.maxRa) + "] reverse; \54 set yrange [" + str(self. config.minDec) + ":" + str(self.config.maxDec) + "]; \54 set xrange [" + str(self.skychunk.minRa) + ":" + str(self.skychunk.maxRa) + "] reverse; \ 55 set yrange [" + str(self.skychunk.minDec) + ":" + str(self.skychunk.maxDec) + "]; \ 55 56 unset key; \ 56 57 set palette rgb 22,13,10; \
Note:
See TracChangeset
for help on using the changeset viewer.
