IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26136


Ignore:
Timestamp:
Nov 13, 2009, 5:03:05 AM (16 years ago)
Author:
eugene
Message:

remove clumps before passing to chip analysis steps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091113/psastro/src/psastroChipAstrom.c

    r25299 r26136  
    5656
    5757                // select the raw objects for this readout
    58                 psArray *rawstars = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.RAWSTARS");
    59                 if (rawstars == NULL) { continue; }
     58                psArray *rawstarsAll = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.RAWSTARS");
     59                if (rawstarsAll == NULL) { continue; }
     60                psArray *rawstars = psastroRemoveClumpsIterate(rawstarsAll, 150, 3);
    6061
    6162                // select the raw objects for this readout
    62                 psArray *refstars = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.REFSTARS");
    63                 if (refstars == NULL) { continue; }
     63                psArray *refstarsAll = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.REFSTARS");
     64                if (refstarsAll == NULL) { continue; }
     65                psArray *refstars = psastroRemoveClumpsIterate(refstarsAll, 150, 2);
    6466
    6567                // the absolute minimum number of stars is 4 (for order = 1)
    6668                if ((rawstars->n < 4) || (refstars->n < 4)) {
    6769                    readout->data_exists = false;
    68                     psLogMsg ("psastro", 3, "insufficient rawstars (%ld) or refstars (%ld)",
    69                               rawstars->n, refstars->n);
     70                    psLogMsg ("psastro", 3, "insufficient rawstars (%ld) or refstars (%ld)", rawstars->n, refstars->n);
     71                    psFree (rawstars);
     72                    psFree (refstars);
    7073                    continue;
    7174                }
     
    8487                    readout->data_exists = false;
    8588                    psLogMsg ("psastro", 3, "failed to find a solution\n");
     89                    psFree (rawstars);
     90                    psFree (refstars);
    8691                    continue;
    8792                }
     
    9095                    readout->data_exists = false;
    9196                    psLogMsg ("psastro", 3, "failed to find a solution\n");
     97                    psFree (rawstars);
     98                    psFree (refstars);
    9299                    continue;
    93100                }
     101
     102                psFree (rawstars);
     103                psFree (refstars);
    94104
    95105                numGoodRO++;
Note: See TracChangeset for help on using the changeset viewer.