- Timestamp:
- Apr 16, 2016, 6:59:23 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/tools/src/ftable.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/tools/src/ftable.c
r39465 r39533 289 289 } 290 290 291 fprintf (stdout, "%-30s %-15s NAXIS NAXIS(i)...\n", "extname", "datatype");291 fprintf (stdout, "%-30s %-15s NAXIS NAXIS(i)...\n", "extname", "datatype"); 292 292 293 293 Ncomp = 0; … … 304 304 fprintf (stdout, "%-30s ", extname); 305 305 306 int IsCompressed = gfits_extension_is_compressed_table (&header); 307 306 308 /* extract the datatype for this component (IMAGE for 0th component) */ 307 309 if (Ncomp == 0) { … … 313 315 } 314 316 } 315 fprintf (stdout, "%-15s ", exttype); 317 if (IsCompressed) { 318 fprintf (stdout, "*%-15s ", exttype); 319 } else { 320 fprintf (stdout, " %-15s ", exttype); 321 } 316 322 317 323 /* extract the rank of the component */ … … 326 332 /* extract the individual axes */ 327 333 for (i = 0; i < Naxis; i++) { 328 sprintf (axisname, "NAXIS%d", i+1); 334 if (IsCompressed) { 335 sprintf (axisname, "ZNAXIS%d", i+1); 336 } else { 337 sprintf (axisname, "NAXIS%d", i+1); 338 } 329 339 status = gfits_scan (&header, axisname, OFF_T_FMT, 1, &Nelem); 330 340 if (!status) {
Note:
See TracChangeset
for help on using the changeset viewer.
