IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 6, 2007, 5:09:52 PM (19 years ago)
Author:
eugene
Message:

merging changes from eam_branch_20071015 (read compressed images, clean addstar I/O, other minor issues)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/header/F_create_H.c

    r7054 r15487  
    2222                                       
    2323  for (i = 0; i < header[0].Naxes; i++) {
    24     sprintf (axis, "NAXIS%d", i + 1);
     24    snprintf (axis, 10, "NAXIS%d", i + 1);
    2525    gfits_modify (header,  axis, "%d", 1, header[0].Naxis[i]);
    2626  }
    2727
    28   /* PCOUNT & GCOUNT are not implemented, but they are required to be here */
    29   gfits_modify (header, "PCOUNT", "%d", 1, 0);
    30   gfits_modify (header, "GCOUNT", "%d", 1, 1);
     28  gfits_modify (header, "PCOUNT", "%d",  1, header[0].pcount);
     29  gfits_modify (header, "GCOUNT", "%d",  1, header[0].gcount);
    3130  gfits_modify (header, "BSCALE", "%lf", 1, header[0].bscale);
    3231  gfits_modify (header, "BZERO",  "%lf", 1, header[0].bzero);
Note: See TracChangeset for help on using the changeset viewer.