IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 19, 2009, 11:45:11 AM (17 years ago)
Author:
Paul Price
Message:

Noticed that the TIMESYS wouldn't necessarily be updated just because we alter it in the format process for a TIME. To remedy this, force it to be written after updating. Reworked the concepts writing so that conceptsWrite() provides the iteration, while the other functions write a single entry only. This allows a new function, pmConceptWriteSingle(), which is used to update the TIMESYS.

Location:
trunk/psModules/src/camera
Files:
2 edited

Legend:

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

    r22747 r23428  
    172172
    173173    if (writeBlank || writeImage) {
    174         pmConceptSource source = PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CELLS |
    175                                  PM_CONCEPT_SOURCE_DEFAULTS | PM_CONCEPT_SOURCE_DATABASE;
    176         if (!pmConceptsWriteCell(cell, source, true, config)) {
     174        if (!pmConceptsWriteCell(cell, true, config)) {
    177175            psError(PS_ERR_IO, false, "Unable to write concepts for cell.");
    178176            return false;
     
    225223
    226224        if (writeBlank || writeImage) {
    227             pmConceptSource source = PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CELLS |
    228                                      PM_CONCEPT_SOURCE_DEFAULTS | PM_CONCEPT_SOURCE_DATABASE;
    229             if (!pmConceptsWriteChip(chip, source, true, true, config)) {
     225            if (!pmConceptsWriteChip(chip, true, true, config)) {
    230226                psError(PS_ERR_IO, false, "Unable to write concepts for chip.\n");
    231227                return false;
     
    294290
    295291        if (writeBlank || writeImage) {
    296             pmConceptSource source = PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CELLS |
    297                                      PM_CONCEPT_SOURCE_DEFAULTS | PM_CONCEPT_SOURCE_DATABASE;
    298             if (!pmConceptsWriteFPA(fpa, source, true, config)) {
     292            if (!pmConceptsWriteFPA(fpa, true, config)) {
    299293                psError(PS_ERR_IO, false, "Unable to write concepts for FPA.\n");
    300294                return false;
  • trunk/psModules/src/camera/pmFPAfileFitsIO.c

    r22699 r23428  
    183183          }
    184184
    185           pmConceptSource sources = PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CELLS |
    186               PM_CONCEPT_SOURCE_DEFAULTS | PM_CONCEPT_SOURCE_DATABASE; // Concept sources to write
    187185          if (cell) {
    188               if (!pmConceptsWriteCell(cell, sources, true, config)) {
     186              if (!pmConceptsWriteCell(cell, true, config)) {
    189187                  psError(PS_ERR_IO, false, "Unable to write concepts for cell.\n");
    190188                  return false;
    191189              }
    192190          } else if (chip) {
    193               if (!pmConceptsWriteChip(chip, sources, true, true, config)) {
     191              if (!pmConceptsWriteChip(chip, true, true, config)) {
    194192                  psError(PS_ERR_IO, false, "Unable to write concepts for chip.\n");
    195193                  return false;
    196194              }
    197           } else if (!pmConceptsWriteFPA(fpa, sources, true, config)) {
     195          } else if (!pmConceptsWriteFPA(fpa, true, config)) {
    198196              psError(PS_ERR_IO, false, "Unable to write concepts for FPA.\n");
    199197              return false;
Note: See TracChangeset for help on using the changeset viewer.