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/streaksastrom.c

    r24716 r25082  
    9393    // since the transform already accounts for the chip parity we just use the cell parity
    9494    astrom->xParity = (double) xParityCell;
    95     astrom->yParity = (double) yParityCell; 
     95    astrom->yParity = (double) yParityCell;
    9696
    9797    astrom->numCols = numCols;
     
    135135
    136136void
    137 cellToChipInt(int *xChip, int *yChip, strkAstrom *astrom, int xCell, int yCell)
     137cellToChipInt(unsigned int *xChip, unsigned int *yChip, strkAstrom *astrom, int xCell, int yCell)
    138138{
    139139    if (astrom->xParity > 0) {
     
    148148    }
    149149}
    150  
     150
    151151bool
    152152SkyToLocal(strkPt *outPt, strkAstrom *astrom, double ra, double dec)
     
    156156
    157157    pmFPA *fpa   = (pmFPA *) astrom->fpa;
    158     pmChip *chip = (pmChip *) astrom->chip;
    159158
    160159    // find the RA,DEC coords of the 0,0 pixel for this chip:
     
    183182
    184183    pmFPA *fpa   = (pmFPA *) astrom->fpa;
    185     pmChip *chip = (pmChip *) astrom->chip;
    186184
    187185    // find the RA,DEC coords of the 0,0 pixel for this chip:
     
    251249    pmChip *chip = (pmChip *) astrom->chip;
    252250    pmAstromObj *pt = (pmAstromObj *) astrom->pt;
    253    
     251
    254252    pt->sky->r = ra;
    255253    pt->sky->d = dec;
     
    276274    pmChip *chip = (pmChip *) astrom->chip;
    277275    pmAstromObj *pt = (pmAstromObj *) astrom->pt;
    278    
     276
    279277    cellToChip(&pt->chip->x, &pt->chip->y, astrom, x, y);
    280278
     
    294292}
    295293
    296  
     294
    297295static bool
    298296readAstrometry(streakFiles *sf)
     
    362360            break;
    363361        }
    364     } 
     362    }
    365363    if (!sf->chip) {
    366364        psError(PS_ERR_UNKNOWN, true, "Failed to find chip with data.");
Note: See TracChangeset for help on using the changeset viewer.