IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 4, 2007, 10:15:51 AM (19 years ago)
Author:
eugene
Message:

extensive updates to the avextract / mextract / skyregion system

File:
1 edited

Legend:

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

    r12332 r14401  
    1414  SkyList *skylist, *skyset;
    1515  Vector *vec;
     16  SkyRegionSelection *selection;
     17
     18  // parse skyregion options
     19  if ((selection = SetRegionSelection (&argc, argv)) == NULL) {
     20    gprint (GP_ERR, "invalid sky region selection\n");
     21    return FALSE;
     22  }
    1623
    1724  start = stop = 0;
     
    7885
    7986  if ((image = LoadImages (&Nimage)) == NULL) return (FALSE);
    80   image_subset (image, Nimage, &subset, &Nsubset, (Graphdata *) NULL, FALSE, tzero, trange, TimeSelect);
     87  image_subset (image, Nimage, &subset, &Nsubset, selection, tzero, trange, TimeSelect);
    8188  BuildChipMatch (image, Nimage);
    8289  GetTimeFormat (&TimeReference, &TimeFormat);
     
    8996  ALLOCATE (skylist, SkyList, 1);
    9097  ALLOCATE (skylist[0].regions, SkyRegion *, NREGIONS);
     98  skylist[0].ownElements = FALSE;
    9199
    92100  /* for each image of interest, find the appropriate region files */
     
    107115      CHECK_REALLOCATE (skylist[0].regions, SkyRegion *, NREGIONS, Nregions, 10);
    108116    }
    109     SkyListFree (skyset, FALSE);
     117    SkyListFree (skyset);
    110118  }     
    111119  free (subset);
Note: See TracChangeset for help on using the changeset viewer.