IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 9, 2006, 3:55:20 PM (20 years ago)
Author:
Paul Price
Message:

Was having trouble reading and writing concepts at different levels. Added 'propagateUp' and 'propagateDown' flags to the pmConceptsRead and pmConceptsWrite functions so we can read up and down the hierarchy. For example, when you read a header at the chip level, it may be a PHU so that you want the FPA to also read concepts from it if it doesn't have its own HDU, and you want the cell to read concepts from it if it doesn't have its own HDU. But if I add a PHU, I only want to propagate upwards, because the downwards propagation will occur when I read the header lower down.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAWrite.c

    r7278 r7469  
    136136            (pixels && (hdu->images || (!hdu->images && pmHDUGenerateForChip(chip) && hdu->images)))) { // Data
    137137        success &= pmConceptsWriteChip(chip, PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CAMERA |
    138                                        PM_CONCEPT_SOURCE_DEFAULTS, false, NULL);
     138                                       PM_CONCEPT_SOURCE_DEFAULTS, false, true, NULL);
    139139        success &= pmHDUWrite(hdu, fits);
    140140    }
     
    177177            (pixels && (hdu->images || (!hdu->images && pmHDUGenerateForFPA(fpa) && hdu->images)))) { // Data
    178178        success &= pmConceptsWriteFPA(fpa, PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CAMERA |
    179                                       PM_CONCEPT_SOURCE_DEFAULTS, NULL);
     179                                      PM_CONCEPT_SOURCE_DEFAULTS, true, NULL);
    180180        success &= pmHDUWrite(hdu, fits);
    181181    }
Note: See TracChangeset for help on using the changeset viewer.