IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2007, 5:20:01 PM (19 years ago)
Author:
jhoblitt
Message:

add gpc1/allskycam/isp cameras
write files into a directory structure based on date

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/summit.copy.pro

    r15063 r15170  
    66#$telescope  = zl
    77#$workdir    = /data/ipp004.0/allskycam
    8 $uri        = http://conductor/ds/gpc1/index.txt
    9 $camera     = gpc1
    10 $telescope  = ps1
    11 $workdir    = /data/ipp006.0/gpc1
     8#$workdir    = /data/ipp006.0/gpc1
     9$workdir    = /export/ipp010.0/
    1210
    1311$VERBOSE = 1
     
    2624
    2725# run pzgetexp periodically to populate pzPendingExp in the database (no I/O)
    28 task pzgetexp
    29   command      pzgetexp -uri $uri -inst $camera -telescope $telescope
    30   host         local
    31 
     26task pzgetexp.gpc1
    3227  # timeout shorter than exec so jobs do not build up
    3328  periods      -exec     15
    3429  periods      -poll     1
    3530  periods      -timeout  15
     31  host         local
     32
     33  task.exec
     34      $uri        = http://conductor/ds/gpc1/index.txt
     35      $camera     = gpc1
     36      $telescope  = ps1
     37
     38        $run = pzgetexp -uri $uri -inst $camera -telescope $telescope
     39#        echo command $run
     40        command $run
     41  end
     42
     43  task.exit     0
     44  end
     45
     46  task.exit     default
     47    showcommand failure
     48  end
     49  task.exit     timeout
     50    showcommand timeout
     51  end
     52end
     53
     54task pzgetexp.allskycam
     55  # timeout shorter than exec so jobs do not build up
     56  periods      -exec     15
     57  periods      -poll     1
     58  periods      -timeout  15
     59  host         local
     60
     61  task.exec
     62      $uri        = http://otis1.ifa.hawaii.edu/ds/allskycam/index.txt
     63      $camera     = allskycam
     64      $telescope  = ps1
     65        $run = pzgetexp -uri $uri -inst $camera -telescope $telescope
     66#        echo command $run
     67        command $run
     68  end
     69
     70
     71  task.exit     0
     72  end
     73
     74  task.exit     default
     75    showcommand failure
     76  end
     77  task.exit     timeout
     78    showcommand timeout
     79  end
     80end
     81
     82task pzgetexp.isp
     83  # timeout shorter than exec so jobs do not build up
     84  periods      -exec     15
     85  periods      -poll     1
     86  periods      -timeout  15
     87  host         local
     88
     89  task.exec
     90      $uri        = http://otis1.ifa.hawaii.edu/ds/skyprobe/index.txt
     91      $camera     = isp
     92      $telescope  = ps1
     93        $run = pzgetexp -uri $uri -inst $camera -telescope $telescope
     94#        echo command $run
     95        command $run
     96  end
     97
    3698
    3799  task.exit     0
     
    82144    periods      -timeout  15
    83145    host        local
    84     npending    5
     146    npending    3
    85147
    86148    task.exec
     
    142204# build a book of imfiles/files that need to be downloaded
    143205task pztool.pendingimfile
    144     command      pztool -pendingimfile -limit 25
     206    command      pztool -pendingimfile -limit 120
    145207    host         local
    146208
     
    207269        book getword pzPendingImfile $pageName md5sum -var MD5SUM
    208270        book getword pzPendingImfile $pageName dateobs -var DATEOBS
     271        book getword pzPendingImfile $pageName camera -var $CAMERA
     272
     273        # 2007-08-30T05:09:59Z
     274        substr $DATEOBS 0 4 YEAR
     275        substr $DATEOBS 5 2 MONTH
     276        substr $DATEOBS 8 2 DAY
    209277
    210278        # figure out filename
    211         $FILENAME = $workdir/$EXP_NAME.$CLASS_ID.fits
    212 
    213         book setword pzPendingImfile $pageName filename FILENAME
     279        $FILENAME = $workdir/$CAMERA/$YEAR/$MONTH/$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID.fits
     280
     281        book setword pzPendingImfile $pageName filename $FILENAME
    214282
    215283        # store the pageName with this job
Note: See TracChangeset for help on using the changeset viewer.