IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 12, 2007, 1:39:32 PM (19 years ago)
Author:
Paul Price
Message:

Fixing warning that CHIP.YPARITY wasn't matching the expected value after chip mosaicking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfigCamera.c

    r11687 r11754  
    3030// Remove certain concepts from the list of sources.  These concepts are important in the mosaicking process,
    3131// and are added explicitly to the defaults (elsewhere) so that the user can't get them wrong.
    32 static void removeConceptsSources(psMetadata *source // Source for concepts
    33                                  )
     32static void removeCellConceptsSources(psMetadata *source // Source for concepts
     33    )
    3434{
    3535    if (!source) {
     
    4343    removeConcept(source, "CELL.X0");
    4444    removeConcept(source, "CELL.Y0");
     45
     46    return;
     47}
     48
     49// Remove certain concepts from the list of sources.  These concepts are important in the mosaicking process,
     50// and are added explicitly to the defaults (elsewhere) so that the user can't get them wrong.
     51static void removeChipConceptsSources(psMetadata *source // Source for concepts
     52    )
     53{
     54    if (!source) {
     55        return;
     56    }
     57
    4558    removeConcept(source, "CHIP.XPARITY");
    4659    removeConcept(source, "CHIP.YPARITY");
     
    5063    return;
    5164}
    52 
    5365
    5466// Generate a mosaicked version of a camera configuration
     
    286298        }
    287299
    288         removeConceptsSources(translation);
    289         removeConceptsSources(database);
    290         removeConceptsSources(defaults);
     300        removeCellConceptsSources(translation);
     301        removeCellConceptsSources(database);
     302        removeCellConceptsSources(defaults);
    291303
    292304        // Add in the positioning concepts
    293         psMetadataAddS32(defaults, PS_LIST_TAIL, "CHIP.XPARITY", 0, NULL, 1);
    294         psMetadataAddS32(defaults, PS_LIST_TAIL, "CHIP.YPARITY", 0, NULL, 1);
    295305        psMetadataAddS32(defaults, PS_LIST_TAIL, "CELL.XPARITY", 0, NULL, 1);
    296306        psMetadataAddS32(defaults, PS_LIST_TAIL, "CELL.YPARITY", 0, NULL, 1);
     
    307317
    308318        if (level == PM_FPA_LEVEL_FPA) {
     319            removeChipConceptsSources(translation);
     320            removeChipConceptsSources(database);
     321            removeChipConceptsSources(defaults);
     322            psMetadataAddS32(defaults, PS_LIST_TAIL, "CHIP.XPARITY", 0, NULL, 1);
     323            psMetadataAddS32(defaults, PS_LIST_TAIL, "CHIP.YPARITY", 0, NULL, 1);
    309324            psMetadataAddS32(defaults, PS_LIST_TAIL, "CHIP.X0", 0, NULL, 0);
    310325            psMetadataAddS32(defaults, PS_LIST_TAIL, "CHIP.Y0", 0, NULL, 0);
Note: See TracChangeset for help on using the changeset viewer.