IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 25, 2007, 3:20:29 PM (19 years ago)
Author:
magnier
Message:

incorporating updates from eam_02_branch (cached models, pmPSF FITS IO)

File:
1 edited

Legend:

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

    r12890 r13034  
    1717#include "pmFPAfile.h"
    1818#include "pmFPACopy.h"
     19#include "pmConcepts.h"
    1920
    2021static void pmFPAfileFree(pmFPAfile *file)
     
    326327    PS_ASSERT_PTR_NON_NULL(view, false);
    327328
     329    // XXX this should be smarter (ie, only copy concepts from the current chips)
     330    // but such a call is needed, so re-copy stuff rather than no copy
     331    pmFPACopyConcepts (out, in);
     332
    328333    // pmFPAWrite takes care of all PHUs as needed
    329     if ((view->chip == -1) || in->hdu) {
     334    if (view->chip == -1) {
    330335        status = pmFPACopyStructure (out, in, xBin, yBin);
    331336        return status;
     
    338343    pmChip *outChip = out->chips->data[view->chip];
    339344
    340     if ((view->cell == -1) || inChip->hdu) {
     345    if (view->cell == -1) {
    341346        status = pmChipCopyStructure (outChip, inChip, xBin, yBin);
    342347        return status;
    343     }
     348    } 
    344349    if (view->cell >= inChip->cells->n) {
    345350        psError(PS_ERR_IO, true, "Requested cell == %d>= inChip->cells->n == %ld",
     
    350355    pmCell *outCell = outChip->cells->data[view->cell];
    351356
    352     if ((view->readout == -1) || inCell->hdu) {
    353         status = pmCellCopyStructure (outCell, inCell, xBin, yBin);
    354         return status;
    355     }
    356     psError(PS_ERR_UNKNOWN, true, "Returning false");
    357     return false;
     357    status = pmCellCopyStructure (outCell, inCell, xBin, yBin);
     358    return status;
    358359}
    359360
Note: See TracChangeset for help on using the changeset viewer.