IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 30, 2007, 4:20:08 AM (19 years ago)
Author:
eugene
Message:

astrometry I/O at chip and file level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageAstrom.c

    r15136 r15137  
    1919    PS_ASSERT (input, false);
    2020
    21     // deactivate the psastro files, reactive when needed
    22     // XXX ??? pmFPAfileActivate (config->files, true, "PSASTRO.OUTPUT");
    23 
    2421    // convert the output sources created by psphot into astrometry objects
    2522    if (!psastroConvertFPA (input->fpa, recipe)) {
     
    3330    }
    3431
     32    // deactivate the psastro files, reactive when needed
     33    pmFPAfileActivate (config->files, false, NULL);
     34    pmFPAfileActivate (config->files, true, "PSASTRO.OUTPUT");
     35
     36    // loop over all chips and perform IO needed
     37    pmFPAview *view = pmFPAviewAlloc(0);// View for level of interest
     38    while ((chip = pmFPAviewNextChip(view, input->fpa, 1)) != NULL) {
     39        psLogMsg ("ppImageLoop", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
     40
     41        // Output and Close at Chip level
     42        if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) {
     43            psFree(view);
     44            return false;
     45        }
     46    }
     47
     48    // Output and Close FPA
     49    if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) {
     50        psFree(view);
     51        return false;
     52    }
     53
     54    // deactivate the PSASTRO files, re-active all else
     55    // XXX do we need a way to activate / deactivate other groups?
     56    pmFPAfileActivate (config->files, true, NULL);
     57    pmFPAfileActivate (config->files, false, "PSASTRO.OUTPUT");
     58
    3559    return true;
    3660}
Note: See TracChangeset for help on using the changeset viewer.