IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26165


Ignore:
Timestamp:
Nov 16, 2009, 6:30:49 PM (16 years ago)
Author:
eugene
Message:

handle extensions which are not tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091113/Ohana/src/addstar/src/MatchHeaders.c

    r25910 r26165  
    66
    77  int i, j, Nimage, NIMAGE;
    8   char extname[80], exttype[80], exthead[80];
     8  char extname[80], exttype[80], exthead[80], xtension[80];
    99  HeaderSet *headerSets;
    1010
     
    4646      extsize[0][i] = headers[i][0].size + gfits_data_size (headers[i]);
    4747    }
     48
     49    // is this a fits table? (otherwise we skip it)
     50    if (!gfits_scan (headers[i], "XTENSION", "%s", 1, xtension)) continue;
     51    if (strcmp (xtension, "BINTABLE")) continue;
    4852
    4953    if (!gfits_scan (headers[i], "EXTTYPE", "%s", 1, exttype)) continue;
Note: See TracChangeset for help on using the changeset viewer.