IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21287


Ignore:
Timestamp:
Feb 4, 2009, 11:07:14 AM (17 years ago)
Author:
Paul Price
Message:

Wasn't triggering the writing of covariance matrices.

Location:
branches/pap_branch_20090128/psModules/src/camera
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_20090128/psModules/src/camera/pmFPAWrite.c

    r21270 r21287  
    500500    PS_ASSERT_PTR_NON_NULL(cell, false);
    501501    PS_ASSERT_PTR_NON_NULL(fits, false);
    502     return cellWrite(cell, fits, config, blank, FPA_WRITE_TYPE_VARIANCE);
     502    if (!cellWrite(cell, fits, config, blank, FPA_WRITE_TYPE_VARIANCE)) {
     503        return false;
     504    }
     505    if (!pmCellWriteCovariance(fits, cell)) {
     506        return false;
     507    }
     508    return true;
    503509}
    504510
     
    507513    PS_ASSERT_PTR_NON_NULL(chip, false);
    508514    PS_ASSERT_PTR_NON_NULL(fits, false);
    509     return chipWrite(chip, fits, config, blank, recurse, FPA_WRITE_TYPE_VARIANCE);
     515    if (!chipWrite(chip, fits, config, blank, recurse, FPA_WRITE_TYPE_VARIANCE)) {
     516        return false;
     517    }
     518    if (!pmChipWriteCovariance(fits, chip)) {
     519        return false;
     520    }
     521    return true;
    510522}
    511523
     
    514526    PS_ASSERT_PTR_NON_NULL(fpa, false);
    515527    PS_ASSERT_PTR_NON_NULL(fits, false);
    516     return fpaWrite(fpa, fits, config, blank, recurse, FPA_WRITE_TYPE_VARIANCE);
     528    if (!fpaWrite(fpa, fits, config, blank, recurse, FPA_WRITE_TYPE_VARIANCE)) {
     529        return false;
     530    }
     531    if (!pmFPAWriteCovariance(fits, fpa)) {
     532        return false;
     533    }
     534    return true;
    517535}
    518536
  • branches/pap_branch_20090128/psModules/src/camera/pmFPAWrite.h

    r21211 r21287  
    44 * @author Paul Price, IfA
    55 *
    6  * @version $Revision: 1.11.44.1 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2009-01-29 00:33:51 $
     6 * @version $Revision: 1.11.44.2 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2009-02-04 21:07:14 $
    88 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    99 */
     
    165165    );
    166166
     167/// Write covariance matrix to a FITS file
     168///
     169/// The covariance matrices for a cell are written to an independent extension, named after the chip and cell
     170/// name.
     171bool pmCellWriteCovariance(psFits *fits,///< FITS file to which to write
     172                           const pmCell *cell ///< Cell for which to write covariance
     173    );
     174
     175bool pmChipWriteCovariance(psFits *fits,///< FITS file to which to write
     176                           const pmChip *chip ///< Chip for which to write covariance
     177    );
     178
     179bool pmFPAWriteCovariance(psFits *fits,///< FITS file to which to write
     180                          const pmFPA *fpa ///< FPA for which to write covariance
     181    );
     182
    167183// XXX better name, please
    168184bool pmFPAUpdateNames(pmFPA *fpa, pmChip *chip, pmCell *cell);
Note: See TracChangeset for help on using the changeset viewer.