Changeset 12271
- Timestamp:
- Mar 6, 2007, 8:50:47 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dvo-mods-2007-02/Ohana/src/addstar/src/ReadStarsFITS.c
r12037 r12271 13 13 if (in_theader == NULL) { 14 14 table.header = &theader; 15 if (!gfits_fread_header (f, table.header)) Shutdown ("ERROR: can't read table header"); 15 16 } else { 16 17 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 {26 18 Nskip = in_theader[0].size; 27 19 fseek (f, Nskip, SEEK_CUR); … … 34 26 } 35 27 36 if (!gfits_scan ( &theader, "EXTTYPE", "%s", 1, type)) {28 if (!gfits_scan (table.header, "EXTTYPE", "%s", 1, type)) { 37 29 strcpy (type, "SMPDATA"); 38 30 }
Note:
See TracChangeset
for help on using the changeset viewer.
