IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 27, 2015, 12:40:15 PM (11 years ago)
Author:
bills
Message:

The SAS.40 dvo has nebulous path gorp in the NAME field. Strip this out if
any ':' characters are found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/releasecalib/scripts/extractinfo

    r35927 r39192  
    6565    my $zpt = $clam - $mcal;
    6666
     67    if ($name =~ ':') {
     68        # semi colons in file name, must be a nebulous path split by ':' characters
     69        # The smf name that we want is the last one
     70        my @words = split ':', $name;
     71        my $n = scalar @words;
     72        die "cannot parse file name $name" unless $n;
     73        $name = @words[$n-1];
     74    }
    6775    my ($exp_name, $exp_id, undef, $cam_id) = split '\.', $name;
    6876
Note: See TracChangeset for help on using the changeset viewer.