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

    r2598 r3393  
    1111  VarConfig ("IMAGE_CATALOG", "%s", filename);
    1212
     13  NIMAGE = 0;
     14  Nimage = 0;
     15  image  = NULL;
     16
    1317  /* check if image datafile exists, get header */
    1418  if (!fits_read_header (filename, &header)) {
    1519    fprintf (stderr, "No available image catalog %s (1)\n", filename);
    16     *Nimage = 0;
    17     return ((Image *) NULL);
     20    return (NULL);
     21  }
     22
     23  fits_scan (&header, "NIMAGES", "%d", 1, &NIMAGE);
     24  if (NIMAGE == 0) {
     25    fprintf (stderr, "no images found\n");
     26    return (NULL);
    1827  }
    1928
     
    2332    fprintf (stderr, "No available image catalog: %s (2)\n", filename);
    2433    free (header.buffer);
    25     *Nimage = 0;
    26     return ((Image *) NULL);
    27   }
    28 
    29   NIMAGE = 0;
    30   fits_scan (&header, "NIMAGES", "%d", 1, &NIMAGE);
    31   if (NIMAGE == 0) {
    32     fprintf (stderr, "no images found\n");
    33     *Nimage = NIMAGE;
    34     fclose (f);
    35     return ((Image *) NULL);
     34    return (NULL);
    3635  }
    3736
     
    4645  *Nimage = nimage;
    4746  return (image);
    48 
    49 
    5047}
    51  
Note: See TracChangeset for help on using the changeset viewer.