IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20509


Ignore:
Timestamp:
Nov 2, 2008, 11:13:13 PM (18 years ago)
Author:
Sebastian Jester
Message:

merge nup plots filter by filter

File:
1 edited

Legend:

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

    r20472 r20509  
    9494    os.chdir(workdir)
    9595    outroot = re.sub('(\.[sc]mf|\.fits?)$','',summaryTable)
    96     for tup in plotcol_1frame_tlist:
    97         t1,t2,t3=tup
    98         for filt in filtlist:
    99             globstr = getOutnameStatsOnefile("match_%s_*"%(filt),t3,t1,t2)
    100             filelist = glob(globstr)
    101             outname = getOutnameStatsOnefile("merged_%s_%s" %(outroot,filt),t3,t1,t2)
    102             cmdstr = "gs -dNOPAUSE -sDEVICE=pswrite -sOutputFile=%s %s -c quit" %(outname,' '.join(filelist))
    103             print "Making %s" %(outname)
    104             call(cmdstr,shell=True)
    105             print "gzipping %s" %(outname)
    106             call("gzip -f %s" %(outname),shell=True)
     96    for filt in filtlist:
     97        rootstr = "nup_match_%s"%(filt)
     98        globstr = "%s_*.eps"%(rootstr)
     99        filelist = glob(globstr)
     100        outname = rootstr + ".eps"
     101        cmdstr = "gs -dNOPAUSE -sDEVICE=pswrite -sOutputFile=%s %s -c quit" %(outname,' '.join(filelist))
     102        print "Making %s" %(outname)
     103        call(cmdstr,shell=True)
     104        print "gzipping %s" %(outname)
     105        call("gzip -f %s" %(outname),shell=True)
    107106
    108107def compIPPphoto(summaryTable,mode,plotcol_1frame_tlist=plotcol_1frame_tlist,\
Note: See TracChangeset for help on using the changeset viewer.