IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 8, 2015, 2:20:51 PM (11 years ago)
Author:
eugene
Message:

updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150419/oofview/scripts/oof.sh

    r38253 r38254  
    77
    88$srcdir = /local/ipp/psconfig
    9 
    10 $test = 1
     9$dsroot = /export/ippc20.0/ps2-oof/htdocs
     10
     11$test = 0
    1112
    1213if not($?Nrun)       set Nrun = 0
     
    1617if not($?runstate:n) set runstate:n = 0
    1718
     19if not($?expset)      set expset:n = 0
     20if not($?expsetstate) set expsetstate:n = 0
     21
    1822if (not($?ppImageOpts))
    1923  $ppImageOpts =
     
    2125  $ppImageOpts = $ppImageOpts -recipe PPIMAGE PPIMAGE_DET_ONLY
    2226  $ppImageOpts = $ppImageOpts -F PPIMAGE.OUTPUT PPIMAGE.OUTPUT.NOCOMP
    23   $ppImageOpts = $ppImageOpts -Db FLAT F
    24   $ppImageOpts = $ppImageOpts -Db BASE.FITS T
    2527  $ppImageOpts = $ppImageOpts -Db SQUASH.NANS T
    2628  $ppImageOpts = $ppImageOpts -threads 4
     
    4143  ippc39
    4244  ippc40
     45  ippc41
     46  ippc42
     47  ippc43
     48  ippc44
     49  ippc45
     50  ippc46
     51  ippc47
     52  ippc48
     53  ippc49
     54  ippc50
     55  ippc51
     56  ippc52
     57  ippc53
     58  ippc54
     59  ippc55
     60  ippc56
     61  ippc57
     62  ippc58
     63  ippc59
     64end
     65
     66macro mknight
     67  if ($0 != 2)
     68    echo "USAGE: mknight (YYYYMMDD)"
     69    break
     70  end
     71
     72  local i expname datename idxname
     73  $datename = $1
     74  $idxname = $dsroot/gpc2/$datename.idx
     75
     76  exec wget 'http://dsmaster.ps2/ds/gpc2/index.txt?$datename' -O $idxname
     77  list lines -x "grep OOF $idxname" 
     78  for i 0 $lines:n
     79    substr "$lines:$i" 0 11 expname
     80    mkcommands neb:///gpc2/$datename/$expname/$expname
     81  end
     82end
     83
     84macro done.night
     85  if ($0 != 2)
     86    echo "USAGE: done.night (YYYYMMDD)"
     87    break
     88  end
     89
     90  local i expname datename idxname
     91  $datename = $1
     92  $idxname = $dsroot/gpc2/$datename.idx
     93
     94  list lines -x "grep OOF $idxname" 
     95  for i 0 $lines:n
     96    substr "$lines:$i" 0 11 expname
     97    echo mkoof.sh neb:///gpc2/oof/$datename/$expname/$expname
     98  end
    4399end
    44100
     
    68124    if ($alldone)
    69125      echo "$expset:$i is DONE"
     126      $expsetstate:$i = done
    70127    else
    71128      echo "$expset:$i is not DONE"
     
    83140  for i 0 $expset:n
    84141    $name = $expset:$i
    85     echo $expset:$i $name[]
     142    echo $expset:$i $expsetstate:$i $name[]
    86143  end
    87144end
     
    112169
    113170  delete -q $expname
    114   list expset -add $expname
     171  list expset      -add $expname
     172  list expsetstate -add run
    115173
    116174  list word -x "neb-ls -c $1%.fits"
     
    168226  end
    169227end
    170 
Note: See TracChangeset for help on using the changeset viewer.