IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 9, 2008, 3:59:32 PM (18 years ago)
Author:
eugene
Message:

generate logfile names in a consistent fashion with ipp_filename (expect register.pro)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/register.pro

    r16300 r17624  
    140140    set.host.for.camera $TMP_CAMERA $TMP_CLASS_ID
    141141
    142     # raw workdir examples:
     142    # set the WORKDIR variable
     143    set.workdir.by.camera $TMP_CAMERA $TMP_CLASS_ID $WORKDIR_TEMPLATE $default_host WORKDIR
     144
     145    # notes on how this works:
     146    # -- raw workdir examples:
    143147    # file://data/@HOST@.0/gpc1/20080130
    144148    # neb:///@HOST@-vol0/gpc1/20080130 (need to supply volname?, or are we re-defining this each time?)
    145     set.workdir.by.camera $TMP_CAMERA $TMP_CLASS_ID $WORKDIR_TEMPLATE $default_host WORKDIR
    146     # out workdir examples:
     149    # -- out workdir examples:
    147150    # file://data/ipp004.0/gpc1/20080130
    148151    # neb:///ipp004-vol0/gpc1/20080130
    149152
    150     ## generate output logfile name and convert URI to a PATH
    151     sprintf logfile "%s/%s/%s.%s.reg.log" $WORKDIR $EXP_TAG $EXP_TAG $TMP_CLASS_ID
     153    ## generate outroot specific to this exposure (& chip)
     154    sprintf logfile "%s/%s/%s.reg.%s.log" $WORKDIR $EXP_TAG $EXP_TAG $TMP_CLASS_ID
     155
     156    ## generate output log based on filerule (convert the URI to a PATH)
     157    ## note that we use ipp_datapath here not ipp_filename because the CAMERA name is not yet controlled
    152158    $logfile = `ipp_datapath.pl $logfile`
     159    if ("$logfile" == "")
     160      echo "WARNING: logfile not defined in register.pro:160"
     161      break
     162    end
    153163
    154164    stdout $logfile
     
    261271    set.host.for.camera $TMP_CAMERA $TMP_CLASS_ID
    262272
    263     # raw workdir examples:
     273    # set the WORKDIR variable
     274    set.workdir.by.camera $TMP_CAMERA $TMP_CLASS_ID $WORKDIR_TEMPLATE $default_host WORKDIR
     275
     276    # notes on how this works:
     277    # -- raw workdir examples:
    264278    # file://data/@HOST@.0/gpc1/20080130
    265279    # neb:///@HOST@-vol0/gpc1/20080130 (need to supply volname?, or are we re-defining this each time?)
    266     set.workdir.by.camera $TMP_CAMERA $TMP_CLASS_ID $WORKDIR_TEMPLATE $default_host WORKDIR
    267     # out workdir examples:
     280    # -- out workdir examples:
    268281    # file://data/ipp004.0/gpc1/20080130
    269282    # neb:///ipp004-vol0/gpc1/20080130
     
    271284    ## generate output log based on filerule
    272285    sprintf logfile "%s/%s/%s.reg.log" $WORKDIR $EXP_TAG $EXP_TAG
     286
     287    ## generate output log based on filerule (convert the URI to a PATH)
     288    ## note that we use ipp_datapath here not ipp_filename because the CAMERA name is not yet controlled
    273289    $logfile = `ipp_datapath.pl $logfile`
     290    if ("$logfile" == "")
     291      echo "WARNING: logfile not defined in register.pro:291"
     292      break
     293    end
    274294
    275295    stdout $logfile
Note: See TracChangeset for help on using the changeset viewer.