IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41696


Ignore:
Timestamp:
Jul 7, 2021, 4:54:56 PM (5 years ago)
Author:
eugene
Message:

check in changes from trunk: allow dvoMakeCorr to operate on camera with missing chips

Location:
tags/ipp-ps1-20210510/dvoTools/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-ps1-20210510/dvoTools/src/dvoMakeCorrArguments.c

    r20180 r41696  
    3636    // these options override the DVOCORR recipe values loaded from recipe files
    3737    // psMetadata *options = pmConfigRecipeOptions (config, RECIPE_NAME);
     38    // EAM 20210607 : no dvocorr recipe values are actually defined
    3839
    3940    // XXX add options from command-line here
  • tags/ipp-ps1-20210510/dvoTools/src/dvoMakeCorrLoop.c

    r20372 r41696  
    3232    pmFPAview *view = pmFPAviewAlloc(0);// View for level of interest
    3333
    34     // load data at FPA leve
    35     if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) {
    36         psError(PS_ERR_UNKNOWN, false, "failed IO for fpa in psphot\n");
    37         psFree(view);
    38         return false;
    39     }
    40 
    4134    // XXX for now, do not use the I/O system to read this file; do it manually
    4235    if (!pmFPAfileOpen (input, view, config)) {
     
    4639    }
    4740    input->state = PM_FPA_STATE_INACTIVE; 
     41
     42    // load data at FPA leve
     43    if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) {
     44        psError(PS_ERR_UNKNOWN, false, "failed IO for fpa in psphot\n");
     45        psFree(view);
     46        return false;
     47    }
    4848
    4949    // process each chip in the FPA
     
    6161        assert (inChip->hdu);
    6262        assert (inChip->hdu->extname);
    63         psFitsMoveExtName (input->fits, inChip->hdu->extname);
     63
     64        // not all extensions are required to exist.  skip if not found
     65        if (!psFitsMoveExtName (input->fits, inChip->hdu->extname)) {
     66          continue;
     67        }
    6468        psImage *inImage = psFitsReadImage (input->fits, fullImage, 0);
    6569        assert (inImage);
     
    98102    }
    99103
     104    input->state = PM_FPA_STATE_OPEN; 
    100105    pmFPAfileClose (input, view);
    101106    psFree (view);
  • tags/ipp-ps1-20210510/dvoTools/src/dvoMakeCorrUnbin.c

    r20562 r41696  
    4848
    4949        outData = pmReadoutAlloc (outCell);
     50        psFree (outData); // free the extra reference
    5051        assert (outData != NULL);
    5152    }
Note: See TracChangeset for help on using the changeset viewer.