IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 14, 2009, 3:58:07 PM (17 years ago)
Author:
Paul Price
Message:

Fix streaksremove so that output CMF files have PHU called ext.hdr and table called ext.psf. Turned on -Wall -Werror and fixed a host of little problems.

File:
1 edited

Legend:

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

    r24853 r25082  
    33static pmConfig *parseArguments(int argc, char **argv);
    44static bool readAndCopyToOutput(streakFiles *sf, bool exciseAll);
    5 static StreakPixels * getStreakPixels(streakFiles *sfiles, Streaks *streaks);
    6 static void exciseNonWarpedPixels(streakFiles *sfiles, double newMaskValue);
    7 static bool warpedPixel(streakFiles *sfiles, PixelPos *cellCoord);
    8 static void excisePixel(streakFiles *sfiles, unsigned int x, unsigned int y, bool streak, double newMaskValue);
    95static void writeImages(streakFiles *sf, bool exciseImageCube);
    106
     
    128main(int argc, char *argv[])
    139{
    14     bool status;
    15 
    1610    psLibInit(NULL);
    1711    psTimerStart("STREAKSREMOVE");
     
    2519    // Values to set for masked pixels
    2620    psU32 maskStreak = 0;           // for the image and weight (usually NAN, MAXINT for integer images)
    27     psU32 maskMask = 0;             // value looked up for MASK.STREAK 
     21    psU32 maskMask = 0;             // value looked up for MASK.STREAK
    2822
    2923    // Does true work here?
     
    216210        // image data directly from psFits
    217211        readImage(sf->inImage, sf->extnum, sf->stage, false);
    218        
     212
    219213        // astrom struct is only needed for raw stage, and only the chip to cell parameters are used
    220214        sf->astrom = streakSetAstrometry(sf->astrom, sf->stage, NULL, NULL, false,
     
    304298            initValue = NAN;
    305299        } else {
    306             // otherwise write it to the output 
     300            // otherwise write it to the output
    307301            writeImageCube(sf->outImage, sf->inImage->imagecube, extname, sf->extnum);
    308302            initValue = 0;
Note: See TracChangeset for help on using the changeset viewer.