Changeset 27608 for trunk/ppViz/src/ppCoord/ppCoordLoop.c
- Timestamp:
- Apr 5, 2010, 2:51:24 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppViz/src/ppCoord/ppCoordLoop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppViz/src/ppCoord/ppCoordLoop.c
r27605 r27608 242 242 243 243 float x = pix->x, y = pix->y; // Pixel coordinates 244 if ( !data->chipName &&(x < 0 || x > numCols || y < 0 || y > numRows)) {244 if ((x < 0 || x > numCols || y < 0 || y > numRows)) { 245 245 // Not on this chip 246 246 continue; … … 309 309 continue; 310 310 } 311 fprintf(stdout, "%.10lf %.10lf --> %.3f %.3f %s%s%s\n",312 ra->data.F64[i], dec->data.F64[i], xPix->data.F32[i], yPix->data.F32[i],313 chipName ? chipName : "UNKNOWN",314 rawFile ? " " : "",315 rawFile && cellName ? cellName : (rawFile ? "UNKNOWN" : ""));316 311 if (!rawFile && data->ds9) { 317 312 // Region file is only appropriate if we're not mapping all the way back to cell coordinates 318 fprintf(data->ds9, "image;circle(%f,%f,%f) # color=%s ",313 fprintf(data->ds9, "image;circle(%f,%f,%f) # color=%s\n", 319 314 xPix->data.F32[i], yPix->data.F32[i], data->ds9radius, data->ds9color); 315 } else { 316 fprintf(stdout, "%.10lf %.10lf --> %.3f %.3f %s%s%s\n", 317 ra->data.F64[i], dec->data.F64[i], xPix->data.F32[i], yPix->data.F32[i], 318 chipName ? chipName : "UNKNOWN", 319 rawFile ? " " : "", 320 rawFile && cellName ? cellName : (rawFile ? "UNKNOWN" : "")); 320 321 } 321 322 }
Note:
See TracChangeset
for help on using the changeset viewer.
