IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26397


Ignore:
Timestamp:
Dec 14, 2009, 1:09:48 PM (16 years ago)
Author:
watersc1
Message:

Fixed summitcopy/compression issues that came up over the weekend.

File:
1 edited

Legend:

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

    r26378 r26397  
    111111
    112112    task.exec
     113#      echo "DB_DEBUG: PRE" $pztoolDatastore_DB $DB:$pztoolDatastore_DB
    113114      if ($DB:n == 0)
    114115        option DEFAULT
     
    121122        if ($pztoolDatastore_DB >= $DB:n) set pztoolDatastore_DB = 0
    122123      end
     124
     125      # More debug
     126#      echo "DB_DEBUG: POST" $pztoolDatastore_DB $DB:$pztoolDatastore_DB
    123127      periods -exec 120
    124128    end
     
    127131    task.exit 0
    128132        # flush pzDataStore book
    129         book init pzDataStore
     133#        book init pzDataStore
    130134        # convert 'stdout' to book format
    131135        ipptool2book stdout pzDataStore -key camera:telescope -uniq -setword dbname $options:0
     
    449453        book getword pzDataStore $PZDSPAGE use_compress  -var USECOMPRESS
    450454
     455        # Debug line
     456#       echo "DEBUG: " $DBNAME $EXP_NAME $CAMERA $PZDSPAGE $USECOMPRESS
     457
     458        # unconditionally turn on requesting compression until we figuure
     459        # out why the above doesn't work
     460        if ($USECOMPRESS == "NULL")
     461#       if ("$CAMERA" == "gpc1")
     462            $USECOMPRESS = 1
     463        end
     464
    451465        $run = summit_copy.pl --uri $URI --filename $FILENAME --exp_name $EXP_NAME --inst $CAMERA --telescope $TELESCOPE --class $CLASS --class_id $CLASS_ID --bytes $BYTES --md5 $MD5SUM --dbname $DBNAME --timeout 120 --verbose --copies 2
    452466        if ($USECOMPRESS == 1)
     
    469483          echo command $run
    470484        end
     485        # More debug:
     486#       echo "DEBUG2: " $run
    471487        command $run
    472488    end
Note: See TracChangeset for help on using the changeset viewer.