IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 7, 2014, 6:37:32 AM (12 years ago)
Author:
eugene
Message:

add Koppenhoefer correction; move pmConceptsChipNumberFromName & pmConceptsChipFromName to pmConcepts; clean up some visuals; change pmSourceIO_MatchedRefs to use PSASTRO.RAWSTARS.SUBSET, PSASTRO.REFSTARS.SUBSET instead of PSASTRO.RAWSTARS, PSASTRO.REFSTARS; modify the output fields in MATCHED_REFS; clip e0 outliers from psf model construction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConcepts.c

    r30049 r36834  
    578578}
    579579
     580int pmConceptsChipNumberFromName (pmFPA *fpa, char *name) {
     581
     582    for (int i = 0; i < fpa->chips->n; i++) {
     583        pmChip *chip = fpa->chips->data[i];
     584        if (!chip) continue;
     585        char *thisone = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME");
     586        if (!thisone) continue;
     587        if (!strcmp (name, thisone)) return (i);
     588    }
     589    return -1;
     590}
     591
     592pmChip *pmConceptsChipFromName (pmFPA *fpa, char *name) {
     593
     594    for (int i = 0; i < fpa->chips->n; i++) {
     595        pmChip *chip = fpa->chips->data[i];
     596        if (!chip) continue;
     597        char *thisone = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME");
     598        if (!thisone) continue;
     599        if (!strcmp (name, thisone)) return (chip);
     600    }
     601    return NULL;
     602}
     603
Note: See TracChangeset for help on using the changeset viewer.