IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 9, 2005, 9:23:49 PM (21 years ago)
Author:
eugene
Message:

adding mosaic astrom support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/images.c

    r3393 r3402  
    8686
    8787    /* project this image to screen display coords */
    88     x[0] = 0;           y[0] = 0;
    89     x[1] = image[i].NX; y[1] = 0;
    90     x[2] = image[i].NX; y[2] = image[i].NY;
    91     x[3] = 0;           y[3] = image[i].NY;
     88    /* DIS images represent a field, not a chip */
     89    if (!strcmp(&image[i].coords.ctype[4], "-DIS")) {
     90      x[0] = -0.5*image[i].NX; y[0] = -0.5*image[i].NY;
     91      x[1] = +0.5*image[i].NX; y[1] = -0.5*image[i].NY;
     92      x[2] = +0.5*image[i].NX; y[2] = +0.5*image[i].NY;
     93      x[3] = -0.5*image[i].NX; y[3] = +0.5*image[i].NY;
     94    } else {
     95      x[0] = 0;           y[0] = 0;
     96      x[1] = image[i].NX; y[1] = 0;
     97      x[2] = image[i].NX; y[2] = image[i].NY;
     98      x[3] = 0;           y[3] = image[i].NY;
     99    }
    92100    status = FALSE;
    93101
Note: See TracChangeset for help on using the changeset viewer.