IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20520


Ignore:
Timestamp:
Nov 3, 2008, 4:38:50 PM (18 years ago)
Author:
bills
Message:

take the diffed skycells as arguments. Compute the overlap in image
coordinates to use in masking out non-warped pixels;

Location:
trunk/magic/remove/src
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/Makefile.simple

    r20496 r20520  
    55    streaksastrom.o \
    66    streaksextern.o \
     7    warpedpixels.o \
    78    Line.o
    89
  • trunk/magic/remove/src/streaks.h

    r20361 r20520  
    6464    pmChip  *chip;  // current chip
    6565    pmCell  *cell;  // current cell
     66    psImage *warpedPixels;
    6667    psVector    *tiles;
    6768    float   recoveryImageValue;
     
    7374    int numCols, int numRows);
    7475
     76extern void computeWarpedPixels(streakFiles *sf);
     77extern void streaksremoveExit(psString, int);
     78
    7579#define CHIP_LEVEL_INPUT(_stage) ((_stage == IPP_STAGE_RAW) || (_stage == IPP_STAGE_CHIP))
    7680#define USE_SUPPLIED_ASTROM(_stage) CHIP_LEVEL_INPUT(_stage)
  • trunk/magic/remove/src/streaksastrom.c

    r20280 r20520  
    3939            return false;
    4040        }
    41     } else {
     41    } else if (md) {
    4242        // The metadata is the raw header
    4343        // Assumes GPC1
     
    6363            return false;
    6464        }
     65    } else {
     66        // no metadata regular cell
     67        cell_x0 = 0;
     68        cell_y0 = 0;
     69        xParityCell = 1;
     70        yParityCell = 1;
    6571    }
    6672
  • trunk/magic/remove/src/streaksastrom.h

    r20280 r20520  
    44// Structure that encapsulates Astrometry
    55// Note: this file should have no dependence on ipp data types
     6// XXX: we might be able to remove this restrction. Paul S has
     7// used some of our datatypes in his code
     8//
    69typedef struct {
    710    // opaque pointers to psModules types
     
    1922
    2023
     24#ifndef notdef
    2125// There must be some well known type lying around that we
    2226// can use for this
     
    2529    double  y;
    2630} strkPt;
     31#else
     32// TODO: remove this typedef
     33typedef psPlane strkPt;
     34#endif
    2735
    2836extern bool skyToCell(strkPt *, strkAstrom *astrom, double ra, double dec);
  • trunk/magic/remove/src/streaksremove.c

    r20496 r20520  
    259259    }
    260260
    261     // got get the astrometry
     261    // read in the astrometry
    262262    astrometry_read(sf);
    263263}
     
    312312    }
    313313    setupAstromFromFPA(sf);
     314    if (CHIP_LEVEL_INPUT(sf->stage)) {
     315        computeWarpedPixels(sf);
     316    }
    314317     
    315318    psElemType tileType;                // Type corresponding to "long"
     
    498501   
    499502   
     503    if (!pmConfigFileSetsMD(config->arguments, &argc, argv, "SKYCELLS", "-skycell", "-skycelllist")) { ;
     504        if (CHIP_LEVEL_INPUT(stage)) {
     505            psError(PS_ERR_UNKNOWN, true, "-skycelllist is required for raw and chip stages\n");
     506            return NULL;
     507        }
     508    }
     509
    500510    if (!pmConfigFileSetsMD(config->arguments, &argc, argv, "ASTROM", "-astrom", NULL)) { ;
    501511        if (CHIP_LEVEL_INPUT(stage)) {
Note: See TracChangeset for help on using the changeset viewer.