Changeset 7080 for trunk/Ohana/src/imregister/imphot/rtext.c
- Timestamp:
- May 5, 2006, 5:44:26 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/imregister/imphot/rtext.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/imregister/imphot/rtext.c
r4024 r7080 10 10 /* check that file size makes sense */ 11 11 Nimage = 0; 12 fits_scan (&db[0].header, "NIMAGES", "%d", 1, &Nimage);12 gfits_scan (&db[0].header, "NIMAGES", "%d", 1, &Nimage); 13 13 if (stat (db[0].filename, &filestatus) == -1) { 14 14 if (VERBOSE) fprintf (stderr, "ERROR: failed to get status of image catalog\n"); … … 28 28 /* create a dummy set of table information */ 29 29 /* (original table has NAXIS = 2, change to 0) */ 30 fits_modify (&db[0].header, "NAXIS", "%d", 1, 0);31 fits_create_matrix (&db[0].header, &db[0].matrix);32 fits_table_mkheader_Image (&db[0].theader);30 gfits_modify (&db[0].header, "NAXIS", "%d", 1, 0); 31 gfits_create_matrix (&db[0].header, &db[0].matrix); 32 gfits_table_mkheader_Image (&db[0].theader); 33 33 db[0].ftable.header = &db[0].theader; 34 34 … … 41 41 } 42 42 db[0].ftable.buffer = (char *) image; 43 fits_modify (&db[0].theader, "NAXIS2", "%d", 1, Nimage);43 gfits_modify (&db[0].theader, "NAXIS2", "%d", 1, Nimage); 44 44 db[0].theader.Naxis[1] = Nimage; 45 db[0].ftable.size = fits_matrix_size (&db[0].theader);45 db[0].ftable.size = gfits_matrix_size (&db[0].theader); 46 46 47 47 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
