IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42287


Ignore:
Timestamp:
Sep 14, 2022, 8:12:29 PM (4 years ago)
Author:
cclin33
Message:

update to check psastro.mdc file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-ops-20220906/ippScripts/scripts/warp_skycell.pl

    r41705 r42287  
    150150my $dynamicMasks;               # Use dynamic masks?
    151151{
     152    # Check psastro.mdc file
     153    my $psastro_mdc = $ipprc->filename ("PSASTRO.CONFIG", @$imfiles[0]->{cam_path_base}, undef);
    152154    # Get the PSASTRO recipe
    153     my $command = "$ppConfigDump -camera $camera -recipe PSASTRO $recipe_psastro -dump-recipe PSASTRO -";
     155    my $command = "$ppConfigDump -recipe PSASTRO $recipe_psastro -dump-recipe PSASTRO -";
     156    if ($ipprc->file_exists($psastro_mdc)) {
     157        # get recipes as set in config dump file
     158        $command .= " -ipprc $psastro_mdc";
     159    } else {
     160        # use this camera's recipes
     161        $command .= " -camera $camera";
     162    }
    154163    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    155164        run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.