Changeset 5583
- Timestamp:
- Nov 23, 2005, 9:13:06 AM (20 years ago)
- Location:
- trunk/archive/scripts/src/phase2
- Files:
-
- 8 edited
-
ipprc.config (modified) (1 diff)
-
megacam_raw.config (modified) (1 diff)
-
papPhase2.c (modified) (5 diffs)
-
pmConfig.c (modified) (1 diff)
-
pmFPAConceptsSet.c (modified) (2 diffs)
-
pmFPAConstruct.c (modified) (3 diffs)
-
pmFPARead.h (modified) (1 diff)
-
pmFPAWrite.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/scripts/src/phase2/ipprc.config
r5564 r5583 8 8 ### Setups for each camera system 9 9 CAMERAS METADATA 10 # MEGACAM_SINGLE STR megacam_single.config 10 11 MEGACAM_RAW STR megacam_raw.config 11 #MEGACAM_SPLICE STR megacam_splice.config12 #GPC1_RAW STR gpc1_raw.config12 MEGACAM_SPLICE STR megacam_splice.config 13 GPC1_RAW STR gpc1_raw.config 13 14 # LRIS_BLUE STR lris_blue.config 14 15 # LRIS_RED STR lris_red.config -
trunk/archive/scripts/src/phase2/megacam_raw.config
r5564 r5583 165 165 MASK.SOURCE STR FILE # Source type for mask: EXT | FILE 166 166 MASK.NAME STR %a_mask.fits # Name for mask extension or filename 167 WEIGHT.SOURCE STR EXT# Source type for weight: EXT | FILE168 WEIGHT.NAME STR % f-weight# Name for weight extension or filename167 WEIGHT.SOURCE STR FILE # Source type for weight: EXT | FILE 168 WEIGHT.NAME STR %a_weight.fits # Name for weight extension or filename 169 169 END -
trunk/archive/scripts/src/phase2/papPhase2.c
r5564 r5583 149 149 } 150 150 151 #if 0152 psString outputMaskName = psStringCopy(outputName);153 (void)psStringAppend(&outputMaskName, ".mask");154 #ifdef PRODUCTION155 psFits *outputMaskFile = psFitsOpen(outputMaskName, "w");156 #else157 psFits *outputMaskFile = psFitsAlloc(outputMaskName);158 #endif159 if (! outputMaskFile) {160 psErrorStackPrint(stderr, "Can't open output mask image: %s\n", outputMaskName);161 exit(EXIT_FAILURE);162 }163 psFree(outputMaskName);164 #endif165 166 151 // Get camera configuration from header if not already defined 167 152 if (! camera) { … … 298 283 exit(EXIT_FAILURE); 299 284 } 285 300 286 #ifdef PRODUCTION 301 287 psFitsClose(inputFile); … … 304 290 #endif 305 291 306 307 #if 1 292 #if 0 293 pmFPAReadMask(input, inputFile); 294 pmFPAReadWeight(input, inputFile); 295 #else 308 296 { 309 297 // Generate mask and weight frame … … 353 341 #endif 354 342 355 //pmFPAPrint(input); 343 #if 0 344 pmFPAPrint(input); 345 #endif 356 346 357 347 // Load the calibration frames, if required … … 825 815 #ifdef PRODUCTION 826 816 psFitsClose(outputFile); 827 // psFitsClose(outputMaskFile);828 817 #else 829 818 psFree(outputFile); 830 // psFree(outputMaskFile);831 819 #endif 832 820 -
trunk/archive/scripts/src/phase2/pmConfig.c
r5462 r5583 177 177 if (! headerItem || headerItem->type != ruleItem->type) { 178 178 match = false; 179 break; 179 180 } 180 181 -
trunk/archive/scripts/src/phase2/pmFPAConceptsSet.c
r5564 r5583 621 621 while (biassec = psListGetAndIncrement(biassecsIter)) { 622 622 psListIteratorSet(checkListIter, PS_LIST_HEAD); 623 ps Region *checkRegion = NULL; // Regionfrom iteration623 psString checkRegionString = NULL; // Region string from iteration 624 624 int i = 0; // Counter 625 while (checkRegion = psListGetAndIncrement(checkListIter)) { 626 if (COMPARE_REGIONS(biassec, checkRegion)) { 625 while (checkRegionString = psListGetAndIncrement(checkListIter)) { 626 psRegion checkRegion = psRegionFromString(checkRegionString); 627 psTrace(__func__, 7, "Checking [%.0f:%.0f,%.0f:%.0f] against " 628 "[%.0f:%.0f,%.0f:%.0f]\n", biassec->x0, biassec->x1, biassec->y0, 629 biassec->y1, checkRegion.x0, checkRegion.x1, checkRegion.y0, 630 checkRegion.y1); 631 if (COMPARE_REGIONS(biassec, &checkRegion)) { 627 632 check->data.U8[i] = 1; 628 633 i++; … … 707 712 psMetadataItem *binItem = psMetadataItemAllocStr(xKeyword, "Binning factor in x and y", 708 713 binString); 714 psFree(binString); 709 715 psMetadata *header = NULL; // The FITS header 710 716 if (cell->hdu) { -
trunk/archive/scripts/src/phase2/pmFPAConstruct.c
r5564 r5583 141 141 } 142 142 // The cell 143 psArray *images = NULL;144 psMetadata *header = NULL;145 143 psMetadata *cellData = getCellData(camera, cellType); 146 144 pmCell *cell = pmCellAlloc(chip, cellData, extName); // The cell … … 242 240 const char *cellType = contentItem->data.V; // The type of cell 243 241 psTrace(__func__, 5, "Cell type is %s\n", cellType); 244 psArray *images = NULL;245 psMetadata *header = NULL;246 242 psMetadata *cellData = getCellData(camera, cellType); 247 243 pmCell *cell = pmCellAlloc(chip, cellData, extName); // The cell 248 244 // psFree(cellData); 249 245 cell->hdu = p_pmHDUAlloc(extName); // Prepare cell to receive FITS data 246 247 psFree(cell); 250 248 } // Iterating through contents 251 249 psFree(contentsIter); … … 256 254 return NULL; 257 255 } 256 psFree(chipName); 257 psFree(chip); 258 258 259 259 } else { -
trunk/archive/scripts/src/phase2/pmFPARead.h
r5564 r5583 15 15 16 16 bool pmFPAReadMask(pmFPA *fpa, // FPA to read into 17 psFits *source // Source FITS file (for the original data)17 psFits *source // Source FITS file (for the original data) 18 18 ); 19 19 -
trunk/archive/scripts/src/phase2/pmFPAWrite.c
r5564 r5583 64 64 status &= writeHDU(fits, fpa->hdu); 65 65 } 66 67 66 68 67 69 return status;
Note:
See TracChangeset
for help on using the changeset viewer.
