IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 43099


Ignore:
Timestamp:
Sep 22, 2026, 3:14:54 PM (41 hours ago)
Author:
eugene
Message:

check that the selected TESS_ID and DVODB are defined in the site.config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/ippScripts/scripts/ipp_inject_fileset.pl

    r43082 r43099  
    5353my $pxinject = can_run('pxinject') or die "Can't find pxinject\n";
    5454
    55 # tess_id needs to be an absolute path, or it must start with file://, path://, or neb://
     55# if tess_id is not defined in the list of tessellations in ipprc,
     56# then tess_id needs to be an absolute path, or it must start with
     57# file://, path://, or neb://
    5658if ($tess_id) {
    57     $tess_id = &fixpath ($tess_id);
     59    # test if tess_id is listed in the TESSELLATION metadata block
     60    my $tess_dir = $ipprc->tessellation_catdir( $tess_id ); # Tessellation catdir for DVO
     61    unless (defined $tess_dir) { die "configuration error"; }
     62    if ($tess_dir eq $tess_id) {
     63        # if $tess_dir matches $tess_id, it must be a filename, not a TESSELLATION entry
     64        $tess_id = &fixpath ($tess_dir);
     65    }
    5866}
    5967
    6068# dvodb needs to be an absolute path, or it must start with file://, path://, or neb://
    6169if ($dvo_db) {
    62     $dvo_db = &fixpath ($dvo_db);
     70    # test if dvo_db is listed in the DVO.CATDIRS metadata block
     71    my $catdir = $ipprc->dvo_catdir( $dvo_db ); # catdirs for DVO
     72    unless (defined $catdir) { die "configuration error"; }
     73    if ($catdir eq $dvo_db) {
     74        # if $catdir matches $dvo_db, it must be a filename, not a DVO.CATDIRS entry
     75        $dvo_db = &fixpath ($catdir);
     76    }
    6377}
    6478
Note: See TracChangeset for help on using the changeset viewer.