IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 27, 2008, 3:25:21 PM (18 years ago)
Author:
eugene
Message:

skip the header updates for non-FITS output files

File:
1 edited

Legend:

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

    r16186 r16257  
    390390    }
    391391
     392    // check if the file is a FITS file (or uses the fits header)
     393    bool fitsType = false;
     394    fitsType |= (file->type == PM_FPA_FILE_IMAGE);
     395    fitsType |= (file->type == PM_FPA_FILE_MASK);
     396    fitsType |= (file->type == PM_FPA_FILE_WEIGHT);
     397    fitsType |= (file->type == PM_FPA_FILE_HEADER);
     398    fitsType |= (file->type == PM_FPA_FILE_FRINGE);
     399    fitsType |= (file->type == PM_FPA_FILE_CMP);
     400    fitsType |= (file->type == PM_FPA_FILE_CMF);
     401    fitsType |= (file->type == PM_FPA_FILE_PSF);
     402    fitsType |= (file->type == PM_FPA_FILE_ASTROM);
    392403
    393404    // Ensure headers and all are updated
    394405    // This is here so that the individual write functions (e.g., images, PSFs, sources, etc) don't have to
    395406    // take care of all this themselves (because they generally don't).
    396     {
     407    if (fitsType) {
    397408        pmHDU *hdu = pmFPAviewThisHDU(view, file->fpa);
    398409        if (hdu) {
Note: See TracChangeset for help on using the changeset viewer.