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

    r3393 r3402  
    11# include "dvo.h"
    22
    3 Image *LoadImages (int *Nimage) {
     3Image *LoadImages (int *nimage) {
    44
    55  char filename[256];
    6   int nimage, NIMAGE;
     6  int Nimage, NIMAGE;
    77  FILE *f;
    88  Header header;
     
    1111  VarConfig ("IMAGE_CATALOG", "%s", filename);
    1212
     13  *nimage = 0;
    1314  NIMAGE = 0;
    1415  Nimage = 0;
     
    3738  ALLOCATE (image, Image, NIMAGE);
    3839  fseek (f, header.size, SEEK_SET);
    39   nimage = Fread (image, sizeof(Image), NIMAGE, f, "image");
    40   if (nimage != NIMAGE) {
    41     fprintf (stderr, "failed to read in all images (%d of %d)\n", nimage, NIMAGE);
     40  Nimage = Fread (image, sizeof(Image), NIMAGE, f, "image");
     41  if (Nimage != NIMAGE) {
     42    fprintf (stderr, "failed to read in all images (%d of %d)\n", Nimage, NIMAGE);
    4243  }
    4344
    4445  fclose (f);
    45   *Nimage = nimage;
     46  *nimage = Nimage;
    4647  return (image);
    4748}
Note: See TracChangeset for help on using the changeset viewer.