Changeset 20520
- Timestamp:
- Nov 3, 2008, 4:38:50 PM (18 years ago)
- Location:
- trunk/magic/remove/src
- Files:
-
- 1 added
- 5 edited
-
Makefile.simple (modified) (1 diff)
-
streaks.h (modified) (2 diffs)
-
streaksastrom.c (modified) (2 diffs)
-
streaksastrom.h (modified) (3 diffs)
-
streaksremove.c (modified) (3 diffs)
-
warpedpixels.c (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/Makefile.simple
r20496 r20520 5 5 streaksastrom.o \ 6 6 streaksextern.o \ 7 warpedpixels.o \ 7 8 Line.o 8 9 -
trunk/magic/remove/src/streaks.h
r20361 r20520 64 64 pmChip *chip; // current chip 65 65 pmCell *cell; // current cell 66 psImage *warpedPixels; 66 67 psVector *tiles; 67 68 float recoveryImageValue; … … 73 74 int numCols, int numRows); 74 75 76 extern void computeWarpedPixels(streakFiles *sf); 77 extern void streaksremoveExit(psString, int); 78 75 79 #define CHIP_LEVEL_INPUT(_stage) ((_stage == IPP_STAGE_RAW) || (_stage == IPP_STAGE_CHIP)) 76 80 #define USE_SUPPLIED_ASTROM(_stage) CHIP_LEVEL_INPUT(_stage) -
trunk/magic/remove/src/streaksastrom.c
r20280 r20520 39 39 return false; 40 40 } 41 } else {41 } else if (md) { 42 42 // The metadata is the raw header 43 43 // Assumes GPC1 … … 63 63 return false; 64 64 } 65 } else { 66 // no metadata regular cell 67 cell_x0 = 0; 68 cell_y0 = 0; 69 xParityCell = 1; 70 yParityCell = 1; 65 71 } 66 72 -
trunk/magic/remove/src/streaksastrom.h
r20280 r20520 4 4 // Structure that encapsulates Astrometry 5 5 // 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 // 6 9 typedef struct { 7 10 // opaque pointers to psModules types … … 19 22 20 23 24 #ifndef notdef 21 25 // There must be some well known type lying around that we 22 26 // can use for this … … 25 29 double y; 26 30 } strkPt; 31 #else 32 // TODO: remove this typedef 33 typedef psPlane strkPt; 34 #endif 27 35 28 36 extern bool skyToCell(strkPt *, strkAstrom *astrom, double ra, double dec); -
trunk/magic/remove/src/streaksremove.c
r20496 r20520 259 259 } 260 260 261 // got getthe astrometry261 // read in the astrometry 262 262 astrometry_read(sf); 263 263 } … … 312 312 } 313 313 setupAstromFromFPA(sf); 314 if (CHIP_LEVEL_INPUT(sf->stage)) { 315 computeWarpedPixels(sf); 316 } 314 317 315 318 psElemType tileType; // Type corresponding to "long" … … 498 501 499 502 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 500 510 if (!pmConfigFileSetsMD(config->arguments, &argc, argv, "ASTROM", "-astrom", NULL)) { ; 501 511 if (CHIP_LEVEL_INPUT(stage)) {
Note:
See TracChangeset
for help on using the changeset viewer.
