Index: trunk/psModules/src/objects/pmSourcePhotometry.c
===================================================================
--- trunk/psModules/src/objects/pmSourcePhotometry.c	(revision 21183)
+++ trunk/psModules/src/objects/pmSourcePhotometry.c	(revision 21363)
@@ -3,6 +3,6 @@
  *  @author EAM, IfA; GLG, MHPCC
  *
- *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2009-01-27 06:39:38 $
+ *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2009-02-06 02:31:25 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -446,5 +446,5 @@
     assert (Pj != NULL);
 
-    const psImage *Wi = Mi->weight;
+    const psImage *Wi = Mi->variance;
     if (!unweighted_sum) {
         assert (Wi != NULL);
@@ -511,5 +511,5 @@
     assert (Pj != NULL);
 
-    const psImage *Wi = Mi->weight;
+    const psImage *Wi = Mi->variance;
     if (!unweighted_sum) {
         assert (Wi != NULL);
@@ -567,5 +567,5 @@
     const psImage *Pi = Mi->pixels;
     assert (Pi != NULL);
-    const psImage *Wi = Mi->weight;
+    const psImage *Wi = Mi->variance;
     if (!unweighted_sum) {
         assert (Wi != NULL);
@@ -612,5 +612,5 @@
 # endif
 
-bool pmSourceChisq (pmModel *model, psImage *image, psImage *mask, psImage *weight,
+bool pmSourceChisq (pmModel *model, psImage *image, psImage *mask, psImage *variance,
                     psImageMaskType maskVal)
 {
@@ -618,5 +618,5 @@
     PS_ASSERT_PTR_NON_NULL(image, false);
     PS_ASSERT_PTR_NON_NULL(mask, false);
-    PS_ASSERT_PTR_NON_NULL(weight, false);
+    PS_ASSERT_PTR_NON_NULL(variance, false);
 
     double dC = 0.0;
@@ -626,7 +626,7 @@
             if (mask->data.PS_TYPE_IMAGE_MASK_DATA[j][i] & maskVal)
                 continue;
-            if (weight->data.F32[j][i] <= 0)
-                continue;
-            dC += PS_SQR (image->data.F32[j][i]) / weight->data.F32[j][i];
+            if (variance->data.F32[j][i] <= 0)
+                continue;
+            dC += PS_SQR (image->data.F32[j][i]) / variance->data.F32[j][i];
             Npix ++;
         }
@@ -648,5 +648,5 @@
     const psImage *Pi = Mi->modelFlux;
     assert (Pi != NULL);
-    const psImage *Wi = Mi->weight;
+    const psImage *Wi = Mi->variance;
     if (!unweighted_sum) {
         assert (Wi != NULL);
@@ -706,5 +706,5 @@
     assert (Pj != NULL);
 
-    const psImage *Wi = Mi->weight;
+    const psImage *Wi = Mi->variance;
     if (!unweighted_sum) {
         assert (Wi != NULL);
@@ -770,5 +770,5 @@
     assert (Pj != NULL);
 
-    const psImage *Wi = Mi->weight;
+    const psImage *Wi = Mi->variance;
     if (!unweighted_sum) {
         assert (Wi != NULL);
