IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12271


Ignore:
Timestamp:
Mar 6, 2007, 8:50:47 AM (19 years ago)
Author:
eugene
Message:

fix error for supplied table header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dvo-mods-2007-02/Ohana/src/addstar/src/ReadStarsFITS.c

    r12037 r12271  
    1313  if (in_theader == NULL) {
    1414    table.header = &theader;
     15    if (!gfits_fread_header (f, table.header)) Shutdown ("ERROR: can't read table header");
    1516  } else {
    1617    table.header = in_theader;
    17   }
    18 
    19   /* load the table header (skip this?) */
    20   if (in_theader == NULL) {
    21     if (!gfits_fread_header (f, &theader)) {
    22       fprintf (stderr, "ERROR: can't read table header\n");
    23       exit (1);
    24     }
    25   } else {
    2618    Nskip = in_theader[0].size;
    2719    fseek (f, Nskip, SEEK_CUR);
     
    3426  }
    3527
    36   if (!gfits_scan (&theader, "EXTTYPE", "%s", 1, type)) {
     28  if (!gfits_scan (table.header, "EXTTYPE", "%s", 1, type)) {
    3729    strcpy (type, "SMPDATA");
    3830  }
Note: See TracChangeset for help on using the changeset viewer.