Index: trunk/ippTools/src/dettool.c
===================================================================
--- trunk/ippTools/src/dettool.c	(revision 8076)
+++ trunk/ippTools/src/dettool.c	(revision 8120)
@@ -422,5 +422,9 @@
         rawExp->imfiles,
         rawExp->filter,
-        rawExp->stats
+        rawExp->airmass,
+        rawExp->ra,
+        rawExp->decl,
+        rawExp->exp_time,
+        rawExp->background
     );
 }
@@ -604,13 +608,4 @@
         return false;
     }
-    psString stats = psMetadataLookupStr(&status, config->args, "-stats");
-    if (!status) {
-        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats");
-        return false;
-    }
-    if (!stats) {
-        psError(PS_ERR_UNKNOWN, true, "-stats is required");
-        return false;
-    }
     psString recipe = psMetadataLookupStr(&status, config->args, "-recip");
     if (!status) {
@@ -645,5 +640,5 @@
     // create a new detProcessedImfile object
     detProcessedImfileRow *detRow = detProcessedImfileRowAlloc(
-        (psS32)atol(det_id), exp_id, class_id, uri, stats, recipe
+        (psS32)atol(det_id), exp_id, class_id, uri, recipe
     );   
     psFree(rawImfiles);
@@ -921,5 +916,5 @@
     PS_ASSERT_PTR_NON_NULL(config, false);
 
-    // det_id, class_id, uri, stats, & recipe are required
+    // det_id, class_id, uri, & recipe are required
     bool status = false;
     psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");
@@ -948,13 +943,4 @@
     if (!uri) {
         psError(PS_ERR_UNKNOWN, true, "-uri is required");
-        return false;
-    }
-    psString stats = psMetadataLookupStr(&status, config->args, "-stats");
-    if (!status) {
-        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats");
-        return false;
-    }
-    if (!stats) {
-        psError(PS_ERR_UNKNOWN, true, "-stats is required");
         return false;
     }
@@ -1010,5 +996,5 @@
     // create a new detStackedImfile object
     detStackedImfileRow *stackedImfile = detStackedImfileRowAlloc(
-        (psS32)atol(det_id), iteration, class_id, uri, stats, recipe
+        (psS32)atol(det_id), iteration, class_id, uri, recipe
     );   
 
@@ -1270,5 +1256,5 @@
     PS_ASSERT_PTR_NON_NULL(config, false);
  
-    // det_id, class_id, uri, stats, & recipe are required
+    // det_id, class_id, uri, & recipe are required
     bool status = false;
     psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");
@@ -1297,13 +1283,4 @@
     if (!uri) {
         psError(PS_ERR_UNKNOWN, true, "-uri is required");
-        return false;
-    }
-    psString stats = psMetadataLookupStr(&status, config->args, "-stats");
-    if (!status) {
-        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats");
-        return false;
-    }
-    if (!stats) {
-        psError(PS_ERR_UNKNOWN, true, "-stats is required");
         return false;
     }
@@ -1367,5 +1344,5 @@
     // create a new detNormalizedImfile object
     detNormalizedImfileRow *masterImfile = detNormalizedImfileRowAlloc(
-        (psS32)atol(det_id), iteration, class_id, uri, stats, recipe
+        (psS32)atol(det_id), iteration, class_id, uri, recipe
     );   
 
@@ -1541,5 +1518,5 @@
     PS_ASSERT_PTR_NON_NULL(config, false);
 
-    // det_id, exp_id, class_id, stats, & recipe are required
+    // det_id, exp_id, class_id, & recipe are required
     bool status = false;
     psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");
@@ -1568,13 +1545,4 @@
     if (!class_id) {
         psError(PS_ERR_UNKNOWN, true, "-class_id is required");
-        return false;
-    }
-    psString stats = psMetadataLookupStr(&status, config->args, "-stats");
-    if (!status) {
-        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats");
-        return false;
-    }
-    if (!stats) {
-        psError(PS_ERR_UNKNOWN, true, "-stats is required");
         return false;
     }
@@ -1649,5 +1617,4 @@
                 exp_id,
                 class_id,
-                stats,
                 recipe
             );
@@ -1704,5 +1671,5 @@
     PS_ASSERT_PTR_NON_NULL(config, false);
  
-    // det_id, exp_id, stats, & recipe are required
+    // det_id, exp_id,  & recipe are required
     bool status = false;
     psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");
@@ -1722,13 +1689,4 @@
     if (!exp_id) {
         psError(PS_ERR_UNKNOWN, true, "-exp_id is required");
-        return false;
-    }
-    psString stats = psMetadataLookupStr(&status, config->args, "-stats");
-    if (!status) {
-        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats");
-        return false;
-    }
-    if (!stats) {
-        psError(PS_ERR_UNKNOWN, true, "-stats is required");
         return false;
     }
@@ -1789,5 +1747,4 @@
                 iteration,
                 exp_id,
-                stats,
                 recipe,
                 accept
@@ -2099,5 +2056,9 @@
             inputExp->imfiles,
             inputExp->filter,
-            inputExp->stats
+            inputExp->airmass,
+            inputExp->ra,
+            inputExp->decl,
+            inputExp->exp_time,
+            inputExp->background
         );
         psArrayAdd(newInputExps, 0, newInputExp);
