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/ImageOps.c

    r3393 r3402  
    4444        while (flipped && (r > Rmid)) r-= 360.0;
    4545        status = RD_to_XY (&X, &Y, r, d, &graph[0].coords);
    46 
    4746        if (!status) continue;
    4847        if (X < graph[0].xmin) continue;
     
    5049        if (Y < graph[0].ymin) continue;
    5150        if (Y > graph[0].ymax) continue;
    52         subset[n] = i;
    53         n++;
    54         if (n > npts - 1) {
    55           npts += 200;
    56           REALLOCATE (subset, int, npts);
    57         }
    58         break;
     51        goto in_region;
     52        /** we miss any images which surround the region.  we are also
     53            missing the DIS images for which the corners don't touch
     54            the region, but which are needed for WRP images with
     55            corners touching the region **/
    5956      }
    60       /** we miss any images which surround the region.  we are also
    61           missing the DIS images for which the corners don't touch
    62           the region, but which are needed for WRP images with
    63           corners touching the region **/
     57      continue;
     58    }
     59  in_region:
     60    subset[n] = i;
     61    n++;
     62    if (n > npts - 1) {
     63      npts += 200;
     64      REALLOCATE (subset, int, npts);
    6465    }
    6566  }
Note: See TracChangeset for help on using the changeset viewer.