IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 16, 2009, 6:35:43 PM (17 years ago)
Author:
eugene
Message:

remove clumpfor raw and ref stars for entire run, save as SUBSET

File:
1 edited

Legend:

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

    r26136 r26167  
    5656
    5757                // select the raw objects for this readout
    58                 psArray *rawstarsAll = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.RAWSTARS");
    59                 if (rawstarsAll == NULL) { continue; }
    60                 psArray *rawstars = psastroRemoveClumpsIterate(rawstarsAll, 150, 3);
     58                psArray *rawstars = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.RAWSTARS.SUBSET");
     59                if (rawstars == NULL) { continue; }
    6160
    6261                // select the raw objects for this readout
    63                 psArray *refstarsAll = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.REFSTARS");
    64                 if (refstarsAll == NULL) { continue; }
    65                 psArray *refstars = psastroRemoveClumpsIterate(refstarsAll, 150, 2);
     62                psArray *refstars = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.REFSTARS.SUBSET");
     63                if (refstars == NULL) { continue; }
    6664
    6765                // the absolute minimum number of stars is 4 (for order = 1)
     
    6967                    readout->data_exists = false;
    7068                    psLogMsg ("psastro", 3, "insufficient rawstars (%ld) or refstars (%ld)", rawstars->n, refstars->n);
    71                     psFree (rawstars);
    72                     psFree (refstars);
    7369                    continue;
    7470                }
     
    8783                    readout->data_exists = false;
    8884                    psLogMsg ("psastro", 3, "failed to find a solution\n");
    89                     psFree (rawstars);
    90                     psFree (refstars);
    9185                    continue;
    9286                }
     
    9589                    readout->data_exists = false;
    9690                    psLogMsg ("psastro", 3, "failed to find a solution\n");
    97                     psFree (rawstars);
    98                     psFree (refstars);
    9991                    continue;
    10092                }
    101 
    102                 psFree (rawstars);
    103                 psFree (refstars);
    10493
    10594                numGoodRO++;
Note: See TracChangeset for help on using the changeset viewer.