Index: trunk/Ohana/src/relastro/src/BrightCatalog.c
===================================================================
--- trunk/Ohana/src/relastro/src/BrightCatalog.c	(revision 39248)
+++ trunk/Ohana/src/relastro/src/BrightCatalog.c	(revision 39262)
@@ -67,6 +67,4 @@
     GET_COLUMN(R,         "RA",   	double);
     GET_COLUMN(D,         "DEC",  	double);
-    GET_COLUMN(RoffGAL,   "ROFF_GAL",  	float);
-    GET_COLUMN(DoffGAL,   "DOFF_GAL",  	float);
     GET_COLUMN(M,         "MAG_SYS",  	float);
     GET_COLUMN(Mcal,      "MAG_CAL",  	float);
@@ -94,6 +92,4 @@
       measure[i].R         = R[i];
       measure[i].D         = D[i];
-      measure[i].RoffGAL   = RoffGAL[i];
-      measure[i].DoffGAL   = DoffGAL[i];
       measure[i].M         = M[i];
       measure[i].Mcal      = Mcal[i];
@@ -121,6 +117,4 @@
     free (R       );
     free (D       );
-    free (RoffGAL );
-    free (DoffGAL );
     free (M       );
     free (Mcal    );
@@ -362,6 +356,4 @@
     gfits_define_bintable_column (&theader, "D", "RA",       "ra",                         "degrees", 1.0, 0.0);
     gfits_define_bintable_column (&theader, "D", "DEC",      "dec",                        "degrees", 1.0, 0.0);
-    gfits_define_bintable_column (&theader, "E", "ROFF_GAL", "ra offset",                  "arcsec", 1.0, 0.0);
-    gfits_define_bintable_column (&theader, "E", "DOFF_GAL", "dec offset",                 "arcsec", 1.0, 0.0);
     gfits_define_bintable_column (&theader, "E", "MAG_SYS",  "magnitude (sys)",             NULL,    1.0, 0.0);
     gfits_define_bintable_column (&theader, "E", "MAG_CAL",  "magnitude (cal)",             NULL,    1.0, 0.0);
@@ -382,13 +374,9 @@
 
     // generate the output array that carries the data
-    ohana_memcheck (1);
     gfits_create_table (&theader, &ftable);
-    ohana_memcheck (1);
 
     // create intermediate storage arrays
     double *R         ; ALLOCATE (R        ,  double, catalog->Nmeasure);
     double *D         ; ALLOCATE (D        ,  double, catalog->Nmeasure);
-    float  *RoffGAL   ; ALLOCATE (RoffGAL  ,  float,  catalog->Nmeasure);
-    float  *DoffGAL   ; ALLOCATE (DoffGAL  ,  float,  catalog->Nmeasure);
     float  *M         ; ALLOCATE (M        ,  float,  catalog->Nmeasure);
     float  *Mcal      ; ALLOCATE (Mcal     ,  float,  catalog->Nmeasure);
@@ -407,5 +395,4 @@
     int    *catID     ; ALLOCATE (catID    ,  int  ,  catalog->Nmeasure);
     short  *photcode  ; ALLOCATE (photcode ,  short,  catalog->Nmeasure);
-    ohana_memcheck (1);
 
     // assign the storage arrays
@@ -414,6 +401,4 @@
       R[i]        = measure[i].R        ;
       D[i]        = measure[i].D        ;
-      RoffGAL[i]  = measure[i].RoffGAL  ;
-      DoffGAL[i]  = measure[i].DoffGAL  ;
       M[i]  	  = measure[i].M        ;
       Mcal[i]     = measure[i].Mcal     ;
@@ -433,13 +418,8 @@
       photcode[i] = measure[i].photcode ;
     }
-    ohana_memcheck (1);
 
     // add the columns to the output array
     gfits_set_bintable_column (&theader, &ftable, "RA",   	R,         catalog->Nmeasure);
-    ohana_memcheck (1);
     gfits_set_bintable_column (&theader, &ftable, "DEC",  	D,         catalog->Nmeasure);
-    ohana_memcheck (1);
-    gfits_set_bintable_column (&theader, &ftable, "ROFF_GAL",   RoffGAL,   catalog->Nmeasure);
-    gfits_set_bintable_column (&theader, &ftable, "DOFF_GAL",   DoffGAL,   catalog->Nmeasure);
     gfits_set_bintable_column (&theader, &ftable, "MAG_SYS",  	M,         catalog->Nmeasure);
     gfits_set_bintable_column (&theader, &ftable, "MAG_CAL",  	Mcal,      catalog->Nmeasure);
@@ -461,6 +441,4 @@
     free (R       );
     free (D       );
-    free (RoffGAL );
-    free (DoffGAL );
     free (M       );
     free (Mcal    );
Index: trunk/Ohana/src/relastro/src/ImageOps.c
===================================================================
--- trunk/Ohana/src/relastro/src/ImageOps.c	(revision 39248)
+++ trunk/Ohana/src/relastro/src/ImageOps.c	(revision 39262)
@@ -769,12 +769,4 @@
       ref[i].R += dTime * catalog[c].average[n].uR / 3600.0 / cos(ref[i].D*RAD_DEG);
       ref[i].D += dTime * catalog[c].average[n].uD / 3600.0;
-    }
-
-    // if we are correcting for the Galaxy Motion Model, we assume the mean R,D is at the J2000 epoch position
-    if (0) {
-      myAssert (!isnan(measure[0].RoffGAL), "oops");
-      myAssert (!isnan(measure[0].DoffGAL), "oops");
-      ref[i].R += measure[0].RoffGAL / 3600.0;
-      ref[i].D += measure[0].DoffGAL / 3600.0;
     }
 
