Index: /branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py
===================================================================
--- /branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py	(revision 20549)
+++ /branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py	(revision 20550)
@@ -116,4 +116,5 @@
                      cmfDir = '/IPP/data/SDSS/stripe82/coadd/prod/run_ipp_20080815/',\
                      workdir = '/Users/jester/science/sdss/coadd/Hawaii/compare_tsObj',
+                     runlist=[1056,1755,3388,3434,3465,4145,4192,4203,4247,4263,5052],\
                      copyfields_list = ['RUN','RERUN','CAMCOL','FIELD','FILTER','FWHM_MAJ','FWHM_MIN'],\
                      skip=True):
@@ -145,5 +146,5 @@
     column_hash={}
     stats_hash={}
-    chipfile_l,fpObjc_l = makePlan(cmfDir=cmfDir)
+    chipfile_l,fpObjc_l = makePlan(cmfDir=cmfDir,runlist=runlist)
     filters = []
     bandindex_hash = {}
@@ -217,4 +218,5 @@
     from numpy import concatenate
     from sm import cvar,angle
+    import smLib
     import re
     import sm,smLib
@@ -230,7 +232,5 @@
     # all the explict sm. and smLib. calls should be wrapped into
     # functions that can be called for other plotting packages
-    sm.window(1,1,1,1)
-    sm.frelocate(0.5,1.05)
-    sm.putlabel(5,re.sub('(\.[sc]mf|\.fits?)$','',re.sub('_','\_',matchtable)))
+    smSetTitle(re.sub('(\.[sc]mf|\.fits?)$','',re.sub('_','\_',matchtable)))
     i=0
     for troika in plotcol_tlist:
@@ -299,4 +299,13 @@
     return all_outname
 
+def smSetTitle(titlestr):
+    import sm
+    sm.expand(0.8)
+    sm.window(1,1,1,1)
+    sm.location(3500,31000,3500,31000)
+    sm.frelocate(0.5,1.05)
+    sm.putlabel(5,titlestr)
+
+
 def setWindow(i,Nplots,portrait=True):
     """Set sm window for plotting the i-th out of Nplots. The logic is
@@ -305,5 +314,5 @@
     fewer if that's still enough."""
     
-    from scipy import sqrt
+    from math import sqrt
     if int(sqrt(Nplots))**2 == Nplots:
         Ny = int(sqrt(Nplots))
@@ -995,5 +1004,5 @@
         fpObjcDir += '/'
     # For testing:
-    return ['1056-0192.421/1056-0192.421.ch.421.CHIP1.cmf'],['1056-0192.421/fpObjc-001056-1-0192.fit']
+    # return ['1056-0192.421/1056-0192.421.ch.421.CHIP1.cmf'],['1056-0192.421/fpObjc-001056-1-0192.fit']
 
     from glob import glob
