IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 29, 2006, 8:36:33 AM (20 years ago)
Author:
eugene
Message:

extensive work to catch errors and clear leaks; implement mosaics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroChipAstrom.c

    r10785 r10855  
    4949                if (refstars == NULL) { continue; }
    5050
     51                // the absolute minimum number of stars is 4 (for order = 1)
     52                if ((rawstars->n < 4) || (refstars->n < 4)) {
     53                    psLogMsg ("psastro", 3, "insufficient rawstars (%ld) or refstars (%ld)",
     54                            rawstars->n, refstars->n);
     55                    continue;
     56                }
     57
    5158                // save WCS and analysis metadata in update header
    5259                psMetadata *updates = psMetadataAlloc();
    5360
     61                // XXX update the header with info to reflect the failure
    5462                if (!psastroOneChip (fpa, chip, refstars, rawstars, recipe, updates)) {
    55                     psError (PSASTRO_ERR_DATA, false, "failed to find a solution\n");
    56                     return false;
     63                    psLogMsg ("psastro", 3, "failed to find a solution\n");
     64                    psFree (updates);
     65                    continue;
    5766                }
    5867                pmAstromWriteWCS (updates, fpa, chip, NONLIN_TOL);
Note: See TracChangeset for help on using the changeset viewer.