IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16149


Ignore:
Timestamp:
Jan 18, 2008, 4:21:06 PM (18 years ago)
Author:
eugene
Message:

adding chip/host relationships

Location:
branches/eam_branch_20080109/ippTasks
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080109/ippTasks/camera.pro

    r14693 r16149  
    127127    book getword camPendingExp $pageName reduction -var REDUCTION
    128128
    129     # specify choice of remote host:(need to choose based on chips)
    130     if ($parallel)
    131       host anyhost
    132     else
    133       host local
    134     end
     129    # specify choice of remote host based on camera and chip (class_id)
     130    set.host.for.camera $camera FPA
    135131
    136132    # output log from filerule
  • branches/eam_branch_20080109/ippTasks/chip.pro

    r16054 r16149  
    127127    book getword chipPendingImfile $pageName reduction -var REDUCTION
    128128
    129     # specify choice of local or remote host
     129    # specify choice of local or remote host based on camera and chip (class_id)
    130130    set.host.for.camera $camera $class_id
    131131
  • branches/eam_branch_20080109/ippTasks/detrend.correct.pro

    r15313 r16149  
    148148    book getword detPendingCorrectedImfile $pageName dbname    -var DBNAME
    149149
    150     # specify choice of remote host:
    151     if ($parallel)
    152       host anyhost
    153     else
    154       host local
    155     end
     150    # specify choice of local or remote host based on camera and chip (class_id)
     151    set.host.for.camera $camera $class_id
    156152
    157153    ## output log filename
     
    279275    book getword detPendingCorrectedExp $pageName dbname    -var DBNAME
    280276
    281     # specify choice of remote host:
    282     if ($parallel)
    283       host anyhost
    284     else
    285       host local
    286     end
     277    # specify choice of local or remote host based on camera and chip (class_id)
     278    set.host.for.camera $camera FPA
    287279
    288280    # XXX push this into the filerules?
  • branches/eam_branch_20080109/ippTasks/detrend.norm.pro

    r15854 r16149  
    156156    book getword detPendingNormStatImfile $pageName dbname    -var DBNAME
    157157
    158     # specify choice of remote host:
    159     if ($parallel)
    160       host anyhost
    161     else
    162       host local
    163     end
     158    # specify choice of local or remote host based on camera and chip (class_id)
     159    set.host.for.camera $camera FPA
    164160
    165161    if ("$WORKDIR" == "NULL")
     
    278274    book getword detPendingNormImfile $pageName dbname    -var DBNAME
    279275
    280     # specify choice of remote host:
    281     if ($parallel)
    282       host anyhost
    283     else
    284       host local
    285     end
     276    # specify choice of local or remote host based on camera and chip (class_id)
     277    set.host.for.camera $camera $class_id
    286278
    287279    # XXX use ipp_filename.pl to lookup output file names
     
    398390    book getword detPendingNormExp $pageName dbname    -var DBNAME
    399391
    400     # specify choice of remote host:
    401     if ($parallel)
    402       host anyhost
    403     else
    404       host local
    405     end
     392    # specify choice of local or remote host based on camera and chip (class_id)
     393    set.host.for.camera $camera FPA
    406394
    407395    # XXX add $WORKDIR/$LOG_DIR
  • branches/eam_branch_20080109/ippTasks/detrend.process.pro

    r14693 r16149  
    147147    book getword detPendingProcessedImfile $pageName reduction -var REDUCTION
    148148
    149     # specify choice of remote host:
    150     if ($parallel)
    151       host anyhost
    152     else
    153       host local
    154     end
     149    # specify choice of local or remote host based on camera and chip (class_id)
     150    set.host.for.camera $camera $class_id
    155151
    156152    ## output log filename
     
    276272    book getword detPendingProcessedExp $pageName dbname    -var DBNAME
    277273
    278     # specify choice of remote host:
    279     if ($parallel)
    280       host anyhost
    281     else
    282       host local
    283     end
     274    # specify choice of local or remote host based on camera and chip (class_id)
     275    set.host.for.camera $camera FPA
    284276
    285277    # XXX push this into the filerules?
  • branches/eam_branch_20080109/ippTasks/detrend.reject.pro

    r14693 r16149  
    125125    book getword detRejectExp $pageName dbname    -var DBNAME
    126126
    127     # specify choice of remote host:
    128     if ($parallel)
    129       host anyhost
    130     else
    131       host local
    132     end
     127    # specify choice of local or remote host based on camera and chip (class_id)
     128    set.host.for.camera $camera FPA
    133129
    134130    if ("$WORKDIR" == "NULL")
  • branches/eam_branch_20080109/ippTasks/detrend.resid.pro

    r14693 r16149  
    147147    book getword detPendingResidImfile $pageName reduction -var REDUCTION
    148148
    149     # specify choice of remote host:
    150     if ($parallel)
    151       host anyhost
    152     else
    153       host local
    154     end
     149    # specify choice of local or remote host based on camera and chip (class_id)
     150    set.host.for.camera $camera $class_id
    155151
    156152    # XXX use ipp_filename.pl to lookup output file names
     
    279275    book getword detPendingResidExp $pageName dbname    -var DBNAME
    280276
    281     # specify choice of remote host:
    282     if ($parallel)
    283       host anyhost
    284     else
    285       host local
    286     end
     277    # specify choice of local or remote host based on camera and chip (class_id)
     278    set.host.for.camera $camera FPA
    287279
    288280    # XXX use ipp_filename.pl to lookup output file names
  • branches/eam_branch_20080109/ippTasks/detrend.stack.pro

    r14693 r16149  
    127127    book getword detPendingStackedImfile $pageName reduction -var REDUCTION
    128128
    129     # specify choice of remote host:
    130     if ($parallel)
    131       host anyhost
    132     else
    133       host local
    134     end
     129    # specify choice of local or remote host based on camera and chip (class_id)
     130    set.host.for.camera $camera $class_id
    135131
    136132    if ("$WORKDIR" == "NULL")
  • branches/eam_branch_20080109/ippTasks/pantasks.pro

    r16054 r16149  
    340340end
    341341
    342 macro set.host.for.camera
     342macro set.host.by.camera
    343343  if ($0 != 3)
    344     echo "USAGE: set.host.for.camera (camera) (class_id)"
     344    echo "USAGE: set.host.by.camera (camera) (class_id)"
    345345    break
    346346  end
     
    351351  end
    352352
    353   # XXX need to catch missing camera and/or chiphosts table and fallback on anyhost
     353  # missing camera and/or chiphosts table results in host = NULL
    354354  book getword chiphosts $1 $2 -var $host
    355355
     
    360360  end
    361361end
    362 
    363 
  • branches/eam_branch_20080109/ippTasks/summit.copy.pro

    r16054 r16149  
    77# pztool -adddatastore -inst allskycam -telescope ps1 -uri  http://otis1.ifa.hawaii.edu/ds/allskycam/index.txt
    88
    9 $workdir    = /data/ipp010.0/
     9# XXX these things below need to be set in pantasks.pro, perhaps with a site-dependent call.
     10# XXX not sure how to handle the .N value if we need to use more than one
     11$workdir_template = /data/@HOST@.0/
    1012
    1113$VERBOSE = 1
     
    3436    periods      -poll     1
    3537    periods      -timeout  15
     38    npending     1
    3639
    3740    # success
     
    263266        substr $DATEOBS 8 2 DAY
    264267
     268        # we need to set the workdir based on 1) nebulous or not? 2) chip/host relationship
     269        set.workdir.by.camera $CAMERA $CLASS_ID /data/@HOST@.0
     270
    265271        # figure out filename
     272        # XXXX this filename needs to use nebulous names
    266273        $FILENAME = $workdir/$CAMERA/$YEAR/$MONTH/$DAY/$EXP_NAME/$EXP_NAME.$CLASS_ID.fits
    267274
Note: See TracChangeset for help on using the changeset viewer.