IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12727


Ignore:
Timestamp:
Apr 3, 2007, 10:52:28 AM (19 years ago)
Author:
eugene
Message:

added (fixed) support for mosaic images

File:
1 edited

Legend:

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

    r12332 r12727  
    9090
    9191    status = RD_to_XY (&X, &Y, Ra, Dec, &image[i].coords);
     92    if (!finite(X)) continue;
     93    if (!finite(Y)) continue;
    9294    if (!status) continue;
    93     if (X < 0) continue;
    94     if (Y < 0) continue;
    95     if (X > image[i].NX) continue;
    96     if (Y > image[i].NY) continue;
     95    if (!strcmp(&image[i].coords.ctype[4], "-DIS")) {
     96        if (X < -0.5*image[i].NX) continue;
     97        if (Y < -0.5*image[i].NY) continue;
     98        if (X > +0.5*image[i].NX) continue;
     99        if (Y > +0.5*image[i].NY) continue;
     100    } else {
     101        if (X < 0) continue;
     102        if (Y < 0) continue;
     103        if (X > image[i].NX) continue;
     104        if (Y > image[i].NY) continue;
     105    }
    97106
    98107    /*** XXX we need to re-introduce the use of applyMcal
Note: See TracChangeset for help on using the changeset viewer.