IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 26, 2009, 2:45:31 PM (17 years ago)
Author:
Paul Price
Message:

Reorganised the concepts files, moving the Write functions into pmConceptsWrite, and the Read functions into pmConceptsRead, which sort of makes sense. Added new type of concept property: copy. Most concepts use the default copy method (which is to simply copy the item), but for the TIMESYS concepts, we want to ensure that the target is of the correct type --- if it's already set (e.g., via the DEFAULTS), then we don't copy it. This will allow us to set the target TIMESYS using the DEFAULTS in the camera format, and have the output time be adjusted appropriately. Without this, the TIMESYS is simply copied, and specifying the TIMESYS in the DEFAULTS results in a warning ('values don't match'). Removed pmFPACopyConcepts, since it is pretty much the same as pmConceptsCopyFPA.

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

Legend:

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

    r21363 r22699  
    1414#include "pmFPAview.h"
    1515#include "pmFPAFlags.h"
    16 #include "pmConcepts.h"
     16#include "pmConceptsRead.h"
    1717#include "pmFPAConstruct.h"
    1818#include "pmFPAUtils.h"
  • trunk/psModules/src/camera/pmFPACopy.c

    r22688 r22699  
    1313#include "pmFPAUtils.h"
    1414#include "pmHDUUtils.h"
    15 #include "pmConcepts.h"
     15#include "pmConceptsCopy.h"
    1616#include "pmFPACopy.h"
    1717
  • trunk/psModules/src/camera/pmFPAHeader.c

    r18163 r22699  
    1010#include "pmFPA.h"
    1111#include "pmFPALevel.h"
    12 #include "pmConcepts.h"
     12#include "pmConceptsRead.h"
    1313#include "pmFPAHeader.h"
    1414
  • trunk/psModules/src/camera/pmFPARead.c

    r21363 r22699  
    1717#include "pmFPAFlags.h"
    1818#include "pmHDUUtils.h"
    19 #include "pmConcepts.h"
     19#include "pmConceptsRead.h"
    2020#include "pmFPAHeader.h"
    2121
  • trunk/psModules/src/camera/pmFPAWrite.c

    r21363 r22699  
    1818#include "pmHDUUtils.h"
    1919#include "pmHDUGenerate.h"
    20 #include "pmConcepts.h"
     20#include "pmConceptsWrite.h"
    2121
    2222#include "pmFPAWrite.h"
  • trunk/psModules/src/camera/pmFPAfile.c

    r21363 r22699  
    1818#include "pmFPAfile.h"
    1919#include "pmFPACopy.h"
    20 #include "pmConcepts.h"
     20#include "pmConceptsCopy.h"
    2121
    2222static void pmFPAfileFree(pmFPAfile *file)
     
    409409    // XXX this should be smarter (ie, only copy concepts from the current chips)
    410410    // but such a call is needed, so re-copy stuff rather than no copy
    411     pmFPACopyConcepts (out, in);
     411    pmConceptsCopyFPA(out, in, true, true);
    412412
    413413    // pmFPAWrite takes care of all PHUs as needed
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r21314 r22699  
    2121#include "pmFPAConstruct.h"
    2222
    23 #include "pmConcepts.h"
     23#include "pmConceptsCopy.h"
    2424
    2525# define FPA_TEST_ASSERT(A){ \
     
    10241024        }
    10251025
    1026         // XXX A TEST: this is a provisional fpa until we read the first header for this pmFPAfile
    1027         // we are going to replace it when we determine the true file.  blow this away here...
    1028         psFree (file->fpa);
    1029         file->fpa = NULL;
     1026        // XXX A TEST: this is a provisional fpa until we read the first header for this pmFPAfile
     1027        // we are going to replace it when we determine the true file.  blow this away here...
     1028        psFree (file->fpa);
     1029        file->fpa = NULL;
    10301030    }
    10311031
     
    11841184
    11851185    // inherit the concepts from the src fpa:
    1186     pmFPACopyConcepts(file->fpa, file->src);
     1186    pmConceptsCopyFPA(file->fpa, file->src, true, true);
    11871187
    11881188    return file;
  • trunk/psModules/src/camera/pmFPAfileFitsIO.c

    r21363 r22699  
    2222#include "pmFPAConstruct.h"
    2323#include "pmDark.h"
    24 #include "pmConcepts.h"
     24#include "pmConceptsWrite.h"
    2525
    2626// Get a suitable FPA for the file; generate it if necessary
Note: See TracChangeset for help on using the changeset viewer.