IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25081


Ignore:
Timestamp:
Aug 14, 2009, 3:30:20 PM (17 years ago)
Author:
heather
Message:

cleaned it up so the stuff I added looks pretty. HAF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/censorObjects/src/censorLoop.c

    r25080 r25081  
    2222 */
    2323bool censorLoop (pmConfig *config) {
    24   //bool status;
    2524    pmChip *chip;
    2625    pmCell *cell;
     
    3938    }
    4039
    41     // physical pixel scale in microns per pixel
    42     //double pixelScale = psMetadataLookupF32 (&status, recipe, "PSASTRO.PIXEL.SCALE");
    43     //if (!status) {
    44     //    psError(PS_ERR_IO, true, "Failed to lookup pixel scale");
    45     //    return false;
    46     //}
    47 
    48 
    4940    // select the input data sources
    5041    pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "CENSOR.INPUT");
     
    6152    }
    6253
    63    
    64 #if 0   
    65     pmFPAfileActivate(config->files, false, NULL);
    66     pmFPAfileActivate(config->files, true, "CENSOR.INPUT");
    67 #endif
    68 
    6954    pmFPAview *view = pmFPAviewAlloc (0);
    70 
    71 
    72 
    73 
    7455
    7556    bool badMaskFile = false;
     
    8162    if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE;
    8263
    83 
    84 // check PHU header to see if we are using mosaic-level or per-chip astrometry
     64    // check PHU header to see if we are using mosaic-level or per-chip astrometry
    8565    bool bilevelAstrometry = false;
    8666    pmHDU *phu = pmFPAviewThisPHU (view, input->fpa);
     
    9272      pmAstromReadBilevelMosaic (input->fpa, phu->header);
    9373    }
    94 
    95 
    9674
    9775    while ((chip = pmFPAviewNextChip (view, input->fpa, 1)) != NULL) {
     
    10886        pmHDU *hdu = pmFPAviewThisHDU (view, input->fpa);
    10987       
    110         //      int nAstro = psMetadataLookupS32 (&status, hdu->header, "NASTRO");
    111         //      if (!nAstro) {psLogMsg ("censor", 3, "nothing %f sec\n", psTimerMark ("censor"));}
    112        
    113         //continue;
    11488        if (bilevelAstrometry) {
    11589          if (!pmAstromReadBilevelChip (chip, hdu->header)) {
     
    12397          }
    12498        }
    125 
    126 
    127        
    128 
    12999
    130100        while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) {
Note: See TracChangeset for help on using the changeset viewer.