Index: /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/ImageSubset.c
===================================================================
--- /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/ImageSubset.c	(revision 36987)
+++ /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/ImageSubset.c	(revision 36988)
@@ -99,11 +99,9 @@
   gfits_create_table_header (&theader, "BINTABLE", "IMAGE_SUBSET");
 
-  gfits_define_bintable_column (&theader, "E", "MCAL", "zero point offset", "magnitudes", 1.0, 0.0);
-  gfits_define_bintable_column (&theader, "E", "MCAL_ERR", "zero point error", "magnitudes", 1.0, 0.0);
-
-  // an unsigned int needs to have bzero of 0x8000
-  gfits_define_bintable_column (&theader, "J", "IMAGE_ID", "image ID", NULL, 1.0, 1.0*0x8000);
-  gfits_define_bintable_column (&theader, "J", "PHOTOM_MAP", "map", NULL, 1.0, 1.0*0x8000);
-  gfits_define_bintable_column (&theader, "J", "FLAGS", "flags", NULL, 1.0, 1.0*0x8000);
+  gfits_define_bintable_column (&theader, "E", "MCAL",       "zero point offset", "magnitudes", 1.0, 0.0);
+  gfits_define_bintable_column (&theader, "E", "MCAL_ERR",   "zero point error",  "magnitudes", 1.0, 0.0);
+  gfits_define_bintable_column (&theader, "J", "IMAGE_ID",   "image ID", 	  NULL, 	1.0, FT_BZERO_INT32);
+  gfits_define_bintable_column (&theader, "J", "PHOTOM_MAP", "map",      	  NULL, 	1.0, FT_BZERO_INT32);
+  gfits_define_bintable_column (&theader, "J", "FLAGS",      "flags",    	  NULL, 	1.0, FT_BZERO_INT32);
 
   // generate the output array that carries the data
@@ -114,6 +112,6 @@
 
   // create intermediate storage arrays
-  ALLOCATE (Mcal,  float, Nimage);
-  ALLOCATE (dMcal, float, Nimage);
+  ALLOCATE (Mcal,    float, 	   Nimage);
+  ALLOCATE (dMcal,   float, 	   Nimage);
   ALLOCATE (imageID, unsigned int, Nimage);
   ALLOCATE (map,     unsigned int, Nimage);
Index: /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/ImageSubsetFixImageIDs.c
===================================================================
--- /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/ImageSubsetFixImageIDs.c	(revision 36987)
+++ /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/ImageSubsetFixImageIDs.c	(revision 36988)
@@ -1,5 +1,3 @@
 # include "fiximids.h"
-# define FT_BZERO_INT16 1.0*0x8000	  
-# define FT_BZERO_INT32 1.0*0x80000000
 
 # define GET_COLUMN(OUT,NAME,TYPE) \
Index: /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/ImageSubsetFixStackIDs.c
===================================================================
--- /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/ImageSubsetFixStackIDs.c	(revision 36987)
+++ /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/ImageSubsetFixStackIDs.c	(revision 36988)
@@ -1,5 +1,3 @@
 # include "fixstkids.h"
-# define FT_BZERO_INT16 1.0*0x8000	  
-# define FT_BZERO_INT32 1.0*0x80000000
 
 # define GET_COLUMN(OUT,NAME,TYPE) \
Index: /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/ImageSubsetSetPosangle.c
===================================================================
--- /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/ImageSubsetSetPosangle.c	(revision 36987)
+++ /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/ImageSubsetSetPosangle.c	(revision 36988)
@@ -149,6 +149,5 @@
   gfits_create_table_header (&theader, "BINTABLE", "IMAGE_SUBSET");
 
-  // an unsigned int needs to have bzero of 0x8000
-  gfits_define_bintable_column (&theader, "J",   "IMAGE_ID",   "image ID", NULL, 1.0, 1.0*0x8000);
+  gfits_define_bintable_column (&theader, "J",   "IMAGE_ID",   "image ID", NULL, 1.0, FT_BZERO_INT32);
   gfits_define_bintable_column (&theader, "E",   "TZERO",      "tmp", 	   "mp", 1.0, 0.0);
   gfits_define_bintable_column (&theader, "E",   "TRATE",      "tmp", 	   "mp", 1.0, 0.0);
Index: /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/load_images_fiximids.c
===================================================================
--- /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/load_images_fiximids.c	(revision 36987)
+++ /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/load_images_fiximids.c	(revision 36988)
@@ -1,4 +1,3 @@
 # include "fiximids.h"
-# define FT_BZERO_INT32 1.0*0x80000000
 
 off_t   Nimage = 0;
Index: /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/load_images_fixstkids.c
===================================================================
--- /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/load_images_fixstkids.c	(revision 36987)
+++ /branches/eam_branches/ipp-20140610/Ohana/src/uniphot/src/load_images_fixstkids.c	(revision 36988)
@@ -1,4 +1,3 @@
 # include "fixstkids.h"
-# define FT_BZERO_INT32 1.0*0x80000000
 
 off_t Nimage = 0;
