IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 20, 2011, 10:25:37 AM (15 years ago)
Author:
bills
Message:

Various changes to make the handling of recovery images (saved exised pixels) work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/streaksremove.c

    r30263 r30315  
    9393        // Raw files have a phu and multiple extensions, one per chip
    9494        // Since this is a raw file, copy it's PHU to output files
    95         copyPHU(sfiles, true);
     95        copyPHU(sfiles, true, true);
    9696
    9797        // advance to the first image extension
     
    617617        addRecoveryKeyword(sf->recImage->header);
    618618    }
    619     addDestreakKeyword(sf->outImage->header);
     619    addDestreakKeyword(sf->outImage->header, true);
    620620
    621621    if (!SFILE_IS_IMAGE(sf->inImage)) {
     
    643643                addRecoveryKeyword(sf->recMask->header);
    644644            }
    645             addDestreakKeyword(sf->outMask->header);
     645            addDestreakKeyword(sf->outMask->header, true);
    646646            // Note: we don't excise the mask pixels even if exciseAll is true.
    647647            setupImageRefs(sf->outMask, sf->recMask, sf->inMask, sf->extnum, false);
     
    675675            addRecoveryKeyword(sf->recWeight->header);
    676676        }
    677         addDestreakKeyword(sf->outWeight->header);
     677        addDestreakKeyword(sf->outWeight->header, true);
    678678        setupImageRefs(sf->outWeight, sf->recWeight, sf->inWeight, sf->extnum, exciseAll);
    679679
     
    916916            streaksExit("", PS_EXIT_DATA_ERROR);
    917917        }
    918         addDestreakKeyword(header);
     918        addDestreakKeyword(header, true);
    919919
    920920        if (!psFitsWriteBlank(out->fits, header, extname)) {
     
    977977        psArrayRealloc(outTable, j);
    978978
    979         addDestreakKeyword(header);
     979        addDestreakKeyword(header, true);
    980980        if (psArrayLength(outTable) > 0) {
    981981            printf("Censored %d sources\n", numCensored);
Note: See TracChangeset for help on using the changeset viewer.