IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 7, 2005, 10:21:59 PM (21 years ago)
Author:
eugene
Message:

added mosaic astrometry functions

File:
1 edited

Legend:

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

    r2598 r3393  
    44int imdata (int argc, char **argv) {
    55 
    6   int i, j, k;
     6  int i, j, k, I;
    77  int Nimage, N, NPTS, skip, mode, TimeSelect;
    88  int n, Nregion, Ntregion, TimeFormat;
     
    7474  if ((vec = SelectVector (argv[1], ANYVECTOR, TRUE)) == NULL) return (FALSE);
    7575
    76   image = LoadImages (&Nimage);
    77   if (Nimage == 0) {
    78     return (FALSE);
    79   }
     76  if ((image = LoadImages (&Nimage)) == NULL) return (FALSE);
    8077  image_subset (image, Nimage, &subset, &Nsubset, (Graphdata *) NULL, FALSE, tzero, trange, TimeSelect);
     78  BuildChipMatch (image, Nimage);
    8179  GetTimeFormat (&TimeReference, &TimeFormat);
    8280
     
    8583  ALLOCATE (region, GSCRegion, 1);
    8684  for (i = 0; i < Nsubset; i++) {
    87     tregion = get_regions (&image[subset[i]], &Ntregion);
     85    I = subset[i];
     86    if (!FindMosaicForImage (image, Nimage, I)) continue;
     87    tregion = get_regions (&image[I], &Ntregion);
    8888    REALLOCATE (region, GSCRegion, MAX (1, Nregion + Ntregion));
    8989    for (j = 0; j < Ntregion; j++) {
Note: See TracChangeset for help on using the changeset viewer.