IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 16, 2009, 9:44:29 AM (17 years ago)
Author:
bills
Message:

Store the size in bytes and md5sum of the Compressed raw image files
in pzDownloadImfile. Propagate the values to rawImfile so that they are
available for checking.
(summitImfile has the parameters of the files before they are compressed)

Location:
trunk/ippScripts/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/register_imfile.pl

    r23831 r25418  
    3434my $ppStatsFromMetadata = can_run( 'ppStatsFromMetadata' ) or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1);
    3535
    36 my ($cache, $exp_id, $tmp_class_id, $tmp_exp_name, $uri, $dbname, $verbose, $no_update, $no_op, $logfile);
     36my ($cache, $exp_id, $tmp_class_id, $tmp_exp_name, $uri, $bytes, $md5sum, $dbname, $verbose, $no_update, $no_op, $logfile);
    3737GetOptions(
    3838    'caches'           => \$cache,
     
    4141    'tmp_exp_name|n=s' => \$tmp_exp_name,
    4242    'uri|u=s'          => \$uri,
     43    'bytes=s'          => \$bytes,
     44    'md5sum=s'         => \$md5sum,
    4345    'dbname|d=s'       => \$dbname,    # Database name
    4446    'verbose'          => \$verbose,   # Print to stdout
     
    123125$command .= " -tmp_class_id $tmp_class_id"; # the original class_id supplied by the user, replace by ppStats CLASS.ID
    124126$command .= " -uri $uri ";
     127$command .= " -bytes $bytes" if $bytes;
     128$command .= " -md5sum $md5sum" if $md5sum and ($md5sum ne 'NULL');
    125129$command .= " -hostname $host" if defined $host;
    126130$command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/summit_copy.pl

    r25371 r25418  
    105105# if so pass the results to pztool to the results in pzDownloadImfile.
    106106# uncomment this to turn on
    107 # my ($new_bytes, $new_md5) = check_instances($filename, $nebulous, $compress);
     107my ($new_bytes, $new_md5) = check_instances($filename, $nebulous, $compress);
    108108
    109109# command to update database
     
    121121# XXX: TODO: see above. Don't do this until pztool and the DB have
    122122# been updated
    123 # $command .= " -md5sum $new_md5 -bytes $new_bytes";
     123$command .= " -md5sum $new_md5 -bytes $new_bytes";
    124124
    125125# update the database
     
    198198        if ($b ne $new_bytes) {
    199199            $error = "size of $instances[$i] does not match $instances[0]";
    200         } elsif ($m != $new_md5) {
     200        } elsif ($m ne $new_md5) {
    201201            $error = "md5sum of $instances[$i] does not match $instances[0]";
    202202        }
Note: See TracChangeset for help on using the changeset viewer.