Index: trunk/Ohana/src/relastro/src/UpdateObjects.c
===================================================================
--- trunk/Ohana/src/relastro/src/UpdateObjects.c	(revision 15600)
+++ trunk/Ohana/src/relastro/src/UpdateObjects.c	(revision 15694)
@@ -47,4 +47,6 @@
   int mode, Nave, Npm, Npar, Nskip;
   double Tmin, Tmax;
+  float errorScale;
+  PhotCode *code;
 
   initObjectData (catalog, Ncatalog);
@@ -96,6 +98,9 @@
 	/* the astrometric errors are not being carried yet (but should be!) */
 	/* we use the photometric mag error as a weighting term */
-	dR[N] = MAX (catalog[i].measure[m].dM, MIN_ERROR);
-	dD[N] = MAX (catalog[i].measure[m].dM, MIN_ERROR);
+
+	code = GetPhotcodebyCode (catalog[0].measure[m].photcode);
+	errorScale = code[0].astromScale;
+	dR[N] = MAX (catalog[i].measure[m].dM, MIN_ERROR) * errorScale;
+	dD[N] = MAX (catalog[i].measure[m].dM, MIN_ERROR) * errorScale;
 	dT[N] = catalog[i].measure[m].dt;
 
