IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 5, 2010, 2:51:24 PM (16 years ago)
Author:
Paul Price
Message:

Only output the region file (no stdout).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppViz/src/ppCoord/ppCoordLoop.c

    r27605 r27608  
    242242
    243243                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)) {
    245245                    // Not on this chip
    246246                    continue;
     
    309309                continue;
    310310            }
    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" : ""));
    316311            if (!rawFile && data->ds9) {
    317312                // 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",
    319314                        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" : ""));
    320321            }
    321322        }
Note: See TracChangeset for help on using the changeset viewer.