IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 1, 2013, 1:27:47 PM (13 years ago)
Author:
eugene
Message:

fix the plotter stuff (HAF); use boxes scaled by cos(DEC); use ranges for ra float comparisons; use installed perl programs (in PATH); do not attempt to re-publish automatically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/plot.py

    r35097 r35217  
    1515    Constructor
    1616    '''
    17     def __init__(self, logger, skychunk, ippToPspsDb):
     17    def __init__(self, logger, skychunk, config, ippToPspsDb):
    1818
    1919        self.logger = logger
    2020        self.skychunk = skychunk
     21        self.config = config
    2122        self.ippToPspsDb = ippToPspsDb
    2223
     
    2526    '''
    2627    def createDensityPlot(self, batchType, forCzartool=False):
    27 
     28       
    2829        tempFilename = "./" + self.skychunk.name + "_" + batchType + "_plotData.dat"
    2930        DATFILE = open(tempFilename,'w')
    3031        max = self.ippToPspsDb.createPendingDensityPlotData(batchType, DATFILE)
    3132        DATFILE.close()
    32 
    3333        if max == 0: max = 1
    3434
    3535        timestamp = time.strftime('%Y_%m%d_%H%M%S')
    36 
     36       
    3737        if forCzartool:
    3838            ## XXX from config??
    39             OUTPUTFILE = self.skychunk.czarPlotsPath + "/ippToPsps_density_" + self.skychunk.name + "_" + batchType + ".png"
     39            OUTPUTFILE = self.config.czarPlotsPath + "/ippToPsps_density_" + self.skychunk.name + "_" + batchType + ".png"
    4040        else:
    4141            OUTPUTFILE = self.skychunk.name + "_" + batchType + "_" + timestamp + ".png"
    42 
     42           
    4343        f = os.popen('/home/panstarrs/ipp/local/bin/gnuplot', 'w')
    44            
     44       
    4545        if 0:
    4646            TERM = "X11"
    4747        else:
    4848            TERM = "png font \"/usr/share/fonts/corefonts/arial.ttf\" 8"
    49                      
     49        print "output to : "+ OUTPUTFILE     
    5050        print >> f, "set term " + TERM + "; \
    5151            set output \"" + OUTPUTFILE + "\"; \
     
    5757            set palette rgb 22,13,10; \
    5858            set ylabel \"Dec\"; \
    59             set ylabel \"RA\"; \
     59            set xlabel \"RA\"; \
    6060            set cbrange [0:" + str(max) + "]; \
    6161            set datafile missing \"NaN\"; \
Note: See TracChangeset for help on using the changeset viewer.