IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36571


Ignore:
Timestamp:
Feb 28, 2014, 6:42:12 AM (12 years ago)
Author:
eugene
Message:

select mosaics

Location:
branches/eam_branches/ipp-20140206/Ohana/src/relastro/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/MosaicOps.c

    r36570 r36571  
    270270    for (j = 0; j < host->Nimages; j++) {
    271271
    272       int Nim = host->imageSeq[j];
    273       if (Nim
    274 
    275       int mos = mosaic_for_images[Nim];
    276 
    277     }
    278 
    279 }
     272      int im = host->imseq[j];
     273     
     274      if (im < 0) abort();
     275      if (im >= Nmosaic_for_images) abort();
     276
     277      // search for the mosaic that
     278      off_t mos = mosaic_for_images[im];
     279      if (mos < 0) return NULL;
     280
     281      // &mosaic[mos];
     282      // XXX do what?
     283    }
     284
     285}
     286
  • branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/assign_images.c

    r36569 r36571  
    5757    regionHosts->hosts[i].NIMAGE = D_NIMAGE;
    5858    ALLOCATE (regionHosts->hosts[i].image, Image, regionHosts->hosts[i].NIMAGE);
     59    ALLOCATE (regionHosts->hosts[i].imseq, off_t, regionHosts->hosts[i].NIMAGE);
    5960  }
    6061
     
    129130    off_t Nsubset = regionHosts->hosts[i].Nimage;
    130131    regionHosts->hosts[i].image[Nsubset] = image[j];
    131     // regionHosts->hosts[i].line_number[Nsubset] = j;
     132    regionHosts->hosts[i].imseq[Nsubset] = j;
    132133
    133134    regionHosts->hosts[i].Nimage ++;
     
    253254  return -1;
    254255}
    255 
Note: See TracChangeset for help on using the changeset viewer.