IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20550


Ignore:
Timestamp:
Nov 5, 2008, 5:36:04 AM (18 years ago)
Author:
Sebastian Jester
Message:

Pass both runlist and workdir to compIPPphoto()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py

    r20549 r20550  
    116116                     cmfDir = '/IPP/data/SDSS/stripe82/coadd/prod/run_ipp_20080815/',\
    117117                     workdir = '/Users/jester/science/sdss/coadd/Hawaii/compare_tsObj',
     118                     runlist=[1056,1755,3388,3434,3465,4145,4192,4203,4247,4263,5052],\
    118119                     copyfields_list = ['RUN','RERUN','CAMCOL','FIELD','FILTER','FWHM_MAJ','FWHM_MIN'],\
    119120                     skip=True):
     
    145146    column_hash={}
    146147    stats_hash={}
    147     chipfile_l,fpObjc_l = makePlan(cmfDir=cmfDir)
     148    chipfile_l,fpObjc_l = makePlan(cmfDir=cmfDir,runlist=runlist)
    148149    filters = []
    149150    bandindex_hash = {}
     
    217218    from numpy import concatenate
    218219    from sm import cvar,angle
     220    import smLib
    219221    import re
    220222    import sm,smLib
     
    230232    # all the explict sm. and smLib. calls should be wrapped into
    231233    # functions that can be called for other plotting packages
    232     sm.window(1,1,1,1)
    233     sm.frelocate(0.5,1.05)
    234     sm.putlabel(5,re.sub('(\.[sc]mf|\.fits?)$','',re.sub('_','\_',matchtable)))
     234    smSetTitle(re.sub('(\.[sc]mf|\.fits?)$','',re.sub('_','\_',matchtable)))
    235235    i=0
    236236    for troika in plotcol_tlist:
     
    299299    return all_outname
    300300
     301def smSetTitle(titlestr):
     302    import sm
     303    sm.expand(0.8)
     304    sm.window(1,1,1,1)
     305    sm.location(3500,31000,3500,31000)
     306    sm.frelocate(0.5,1.05)
     307    sm.putlabel(5,titlestr)
     308
     309
    301310def setWindow(i,Nplots,portrait=True):
    302311    """Set sm window for plotting the i-th out of Nplots. The logic is
     
    305314    fewer if that's still enough."""
    306315   
    307     from scipy import sqrt
     316    from math import sqrt
    308317    if int(sqrt(Nplots))**2 == Nplots:
    309318        Ny = int(sqrt(Nplots))
     
    9951004        fpObjcDir += '/'
    9961005    # For testing:
    997     return ['1056-0192.421/1056-0192.421.ch.421.CHIP1.cmf'],['1056-0192.421/fpObjc-001056-1-0192.fit']
     1006    # return ['1056-0192.421/1056-0192.421.ch.421.CHIP1.cmf'],['1056-0192.421/fpObjc-001056-1-0192.fit']
    9981007
    9991008    from glob import glob
Note: See TracChangeset for help on using the changeset viewer.