IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27117


Ignore:
Timestamp:
Feb 27, 2010, 1:06:53 PM (16 years ago)
Author:
bills
Message:

limit postage stamp size to 5000x5000 pixels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/src/ppstampMakeStamp.c

    r25817 r27117  
    394394    double dy = 0.5 * options->roip.dDEC / fpa->toSky->Ys;
    395395
     396    if (dx > 5000) {
     397        fprintf(stderr, "requested width %f too large reducing to 5000\n", dx);
     398        dx = 5000;
     399    }
     400    if (dy > 5000) {
     401        fprintf(stderr, "requested height %f too large reducing to 5000\n", dy);
     402        dy = 5000;
     403    }
     404
    396405    pt->TP->xErr = 0;
    397406    pt->TP->yErr = 0;
     
    497506            int width  = options->roip.dX;
    498507            int height = options->roip.dY;
     508            if (width > 5000) {
     509                fprintf(stderr, "requested width %d too large reducing to 5000\n", width);
     510                width = 5000;
     511            }
     512            if (height > 5000) {
     513                fprintf(stderr, "requested height %d too large reducing to 5000\n", height);
     514                height = 5000;
     515            }
    499516
    500517            // calculate the ROI in chip coordinates
Note: See TracChangeset for help on using the changeset viewer.