Changeset 20550
- Timestamp:
- Nov 5, 2008, 5:36:04 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py
r20549 r20550 116 116 cmfDir = '/IPP/data/SDSS/stripe82/coadd/prod/run_ipp_20080815/',\ 117 117 workdir = '/Users/jester/science/sdss/coadd/Hawaii/compare_tsObj', 118 runlist=[1056,1755,3388,3434,3465,4145,4192,4203,4247,4263,5052],\ 118 119 copyfields_list = ['RUN','RERUN','CAMCOL','FIELD','FILTER','FWHM_MAJ','FWHM_MIN'],\ 119 120 skip=True): … … 145 146 column_hash={} 146 147 stats_hash={} 147 chipfile_l,fpObjc_l = makePlan(cmfDir=cmfDir )148 chipfile_l,fpObjc_l = makePlan(cmfDir=cmfDir,runlist=runlist) 148 149 filters = [] 149 150 bandindex_hash = {} … … 217 218 from numpy import concatenate 218 219 from sm import cvar,angle 220 import smLib 219 221 import re 220 222 import sm,smLib … … 230 232 # all the explict sm. and smLib. calls should be wrapped into 231 233 # 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))) 235 235 i=0 236 236 for troika in plotcol_tlist: … … 299 299 return all_outname 300 300 301 def 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 301 310 def setWindow(i,Nplots,portrait=True): 302 311 """Set sm window for plotting the i-th out of Nplots. The logic is … … 305 314 fewer if that's still enough.""" 306 315 307 from scipyimport sqrt316 from math import sqrt 308 317 if int(sqrt(Nplots))**2 == Nplots: 309 318 Ny = int(sqrt(Nplots)) … … 995 1004 fpObjcDir += '/' 996 1005 # 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'] 998 1007 999 1008 from glob import glob
Note:
See TracChangeset
for help on using the changeset viewer.
