IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33913


Ignore:
Timestamp:
May 25, 2012, 11:01:07 AM (14 years ago)
Author:
bills
Message:

Put the stack_id into the psphotStack output cmf file names instead of an integer

Location:
trunk
Files:
4 edited

Legend:

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

    r33690 r33913  
    144144            my $path_base = $file->{path_base};
    145145            print "input: $path_base\n";
     146            my $stack_id = $file->{stack_id};
    146147
    147148            my $imageCnv  = $ipprc->filename("PPSTACK.OUTPUT",          $path_base ); # Image name
     
    172173            &my_die("Couldn't find input: $sources",   $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists("$sources");
    173174
     175            print $listFile "  STACK_ID      S64  " . $stack_id  . "\n";
    174176            print $listFile "  RAW:IMAGE     STR  " . $imageRaw  . "\n";
    175177            print $listFile "  RAW:MASK      STR  " . $maskRaw   . "\n";
  • trunk/psModules/src/camera/pmFPAfile.c

    r33690 r33913  
    382382        // Number of the file in list
    383383        psString num = NULL;            // Number to use
    384         psStringAppend(&num, "%03d", file->fileID);
     384        psStringAppend(&num, "%" PRId64, file->fileID);
    385385        psStringSubstitute(&newRule, num, "{FILE.ID}");
    386386        psFree(num);
  • trunk/psModules/src/camera/pmFPAfile.h

    r33690 r33913  
    114114
    115115    int fileIndex;                      // Index of file
    116     int fileID;                         // internal sequence number
     116    psS64 fileID;                       // internal sequence number
    117117
    118118    psS64 imageId, sourceId;            // Image and source identifiers
  • trunk/psphot/src/psphotStackParseCamera.c

    r33690 r33913  
    129129        }
    130130
     131        psS64 stack_id = psMetadataLookupS64(&status, input, "STACK_ID");
     132        if (!status) {
     133            psError(PS_ERR_UNKNOWN, false, "Unable to find STACK_ID from sources %d", i);
     134            return false;
     135        }
    131136        // generate an pmFPAimage for the output convolved image
    132137        // XXX output of these files should be optional
     
    139144            }
    140145            outputImage->save = true;
    141             outputImage->fileID = i;            // this is used to generate output names
     146            outputImage->fileID = stack_id;             // this is used to generate output names
    142147
    143148            pmFPAfile *outputMask = pmFPAfileDefineOutput(config, outputImage->fpa, "PSPHOT.STACK.OUTPUT.MASK");
     
    151156            }
    152157            outputMask->save = true;
    153             outputMask->fileID = i;             // this is used to generate output names
     158            outputMask->fileID = stack_id;              // this is used to generate output names
    154159
    155160            pmFPAfile *outputVariance = pmFPAfileDefineOutput(config, outputImage->fpa, "PSPHOT.STACK.OUTPUT.VARIANCE");
     
    163168            }
    164169            outputVariance->save = true;
    165             outputVariance->fileID = i;         // this is used to generate output names
     170            outputVariance->fileID = stack_id;          // this is used to generate output names
    166171
    167172            // the output sources are carried on the outputImage->fpa structures
     
    172177            }
    173178            outsources->save = true;
    174             outsources->fileID = i;             // this is used to generate output names
     179            outsources->fileID = stack_id;              // this is used to generate output names
    175180        }
    176181    }
Note: See TracChangeset for help on using the changeset viewer.