IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28882


Ignore:
Timestamp:
Aug 10, 2010, 2:33:20 PM (16 years ago)
Author:
bills
Message:

delay check that astrometry is compatible with input image until after Mosaic image has been made

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/src/ppstampMakeStamp.c

    r28310 r28882  
    229229
    230230static int makeStamp(pmConfig *config, ppstampOptions *options, pmFPAfile *input,
    231                 pmChip *inChip, pmFPAview *view, pmAstromObj *center)
     231                pmChip *inChip, pmFPAview *view, pmAstromObj *center, pmFPAfile *astrom)
    232232{
    233233    int status = false;
     
    266266        srcFile = input;
    267267        *srcView = *view;
     268    }
     269
     270    if (astrom->camera != srcFile->camera) {
     271        psError(PS_ERR_UNKNOWN, true, "Input camera and astrometry camera do not match");
     272        return PS_EXIT_CONFIG_ERROR;
    268273    }
    269274
     
    583588    if (!astrom) {
    584589        astrom = input;
    585     } else if (astrom->camera != input->camera) {
    586         psError(PS_ERR_UNKNOWN, true, "Input camera and astrometry camera do not match");
    587         return PS_EXIT_CONFIG_ERROR;
    588590    }
    589591
     
    636638        case PPSTAMP_ON:
    637639        case PPSTAMP_PARTIALLY_ON:
    638             returnval = makeStamp(config, options, input, chip, view, center);
     640            returnval = makeStamp(config, options, input, chip, view, center, astrom);
    639641            allDone = true;
    640642            foundOverlap = true;
Note: See TracChangeset for help on using the changeset viewer.