Changeset 34623 for branches/czw_branch/20120906/ppSkycell
- Timestamp:
- Oct 29, 2012, 2:26:09 PM (14 years ago)
- Location:
- branches/czw_branch/20120906/ppSkycell/src
- Files:
-
- 2 edited
-
ppSkycellCamera.c (modified) (1 diff)
-
ppSkycellLoop.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20120906/ppSkycell/src/ppSkycellCamera.c
r28375 r34623 103 103 return false; 104 104 } 105 if (!pmFPAfileDefineOutput(data->config, NULL, "PPSKYCELL.BIN1")) { 105 pmFPAfile *bin1 = pmFPAfileDefineOutput(data->config, NULL, "PPSKYCELL.BIN1"); 106 if (!bin1) { 106 107 psError(psErrorCodeLast(), false, "Unable to define output."); 107 108 return false; 108 109 } 109 if (!pmFPAfileDefineOutput(data->config, NULL, "PPSKYCELL.BIN2")) { 110 pmFPAfile *bin2 = pmFPAfileDefineOutput(data->config, NULL, "PPSKYCELL.BIN2"); 111 if (!bin2) { 112 psError(psErrorCodeLast(), false, "Unable to define output."); 113 return false; 114 } 115 if (!pmFPAfileDefineOutput(data->config, bin1->fpa , "PPSKYCELL.BIN1.MASK")) { 116 psError(psErrorCodeLast(), false, "Unable to define output."); 117 return false; 118 } 119 if (!pmFPAfileDefineOutput(data->config, bin2->fpa, "PPSKYCELL.BIN2.MASK")) { 110 120 psError(psErrorCodeLast(), false, "Unable to define output."); 111 121 return false; -
branches/czw_branch/20120906/ppSkycell/src/ppSkycellLoop.c
r34458 r34623 249 249 psFree(view); 250 250 251 // data->maskVal = 1; 251 252 pmReadout *bin1RO = pmReadoutAlloc(NULL), *bin2RO = pmReadoutAlloc(NULL); // Binned readouts 252 253 if (!pmReadoutRebin(bin1RO, inRO, data->maskVal, data->bin1, data->bin1)) { … … 293 294 pmFPAfileActivate(data->config->files, true, "PPSKYCELL.BIN1"); 294 295 pmFPAfileActivate(data->config->files, true, "PPSKYCELL.BIN2"); 296 /* if (data->masksName) { */ 297 /* pmFPAfileActivate(data->config->files, true, "PPSKYCELL.BIN1.MASK"); */ 298 /* pmFPAfileActivate(data->config->files, true, "PPSKYCELL.BIN2.MASK"); */ 299 /* } */ 295 300 } 296 301 … … 400 405 fits1->fileIndex = i; 401 406 407 // Do the mask if we need to 408 /* if (data->masksName) { */ 409 /* pmFPAfile *Mask1 = pmFPAfileSelectSingle(data->config->files, "PPSKYCELL.BIN1.MASK", 0); */ 410 /* Mask1->fpa->hdu = pmHDUAlloc(NULL); */ 411 /* Mask1->fpa->hdu->header = psMetadataAlloc(); */ 412 /* psMetadataCopy(Mask1->fpa->hdu->header,fits1->fpa->hdu->header); */ 413 /* pmChip *Mchip1 = pmFPAfileThisChip(data->config->files, view, "PPSKYCELL.BIN1.MASK"); */ 414 /* psMetadataAddS32(Mchip1->concepts,PS_LIST_TAIL,"CHIP.XPARITY", PS_META_REPLACE,"",1); */ 415 /* psMetadataAddS32(Mchip1->concepts,PS_LIST_TAIL,"CHIP.YPARITY", PS_META_REPLACE,"",1); */ 416 417 /* pmCell *Mcell1 = pmFPAfileThisCell(data->config->files, view, "PPSKYCELL.BIN1.MASK"); // Rebinned cell 1 */ 418 /* /\* // This is a hack to get a functioning header created so the fits images can be written out. *\/ */ 419 /* psMetadataAddS32(Mcell1->concepts,PS_LIST_TAIL,"CELL.XPARITY", PS_META_REPLACE,"",1); */ 420 /* psMetadataAddS32(Mcell1->concepts,PS_LIST_TAIL,"CELL.YPARITY", PS_META_REPLACE,"",1); */ 421 /* psMetadataAddS32(Mcell1->concepts,PS_LIST_TAIL,"CELL.READDIR", PS_META_REPLACE,"",1); */ 422 423 /* pmReadout *Mro1 = pmReadoutAlloc(Mcell1); */ 424 /* Mro1->image = image1; */ 425 /* Mro1->mask = mask1; */ 426 /* Mro1->data_exists = Mcell1->data_exists = Mcell1->parent->data_exists = true; */ 427 428 /* Mask1->save = true; */ 429 /* Mask1->fileIndex = i; */ 430 /* } */ 431 432 433 402 434 // Repeat with second binned image 403 435 pmFPAfile *fits2 = pmFPAfileSelectSingle(data->config->files, "PPSKYCELL.BIN2", 0); … … 447 479 fits2->save = true; 448 480 fits2->fileIndex = i; 481 482 449 483 } 450 484
Note:
See TracChangeset
for help on using the changeset viewer.
