Index: trunk/stac/src/stacConfig.c
===================================================================
--- trunk/stac/src/stacConfig.c	(revision 2500)
+++ trunk/stac/src/stacConfig.c	(revision 2661)
@@ -9,5 +9,5 @@
 {
     fprintf (stderr, "STAC: Simultaneous Telescope Array Combination\n"
-	     "Usage: %s [-h] [-v] [-g GAIN] [-r RN] [-o NX NY] [-s SAT] [-b BAD] [-k REJ] [-k FRAC] OUT IN1 IN2...\n"
+	     "Usage: %s [-h] [-v] [-g GAIN] [-r RN] [-o NX NY] [-s SAT] [-b BAD] [-k REJ] [-k FRAC] [-G GRAD] OUT IN1 IN2...\n"
 	     "where\n"
 	     "\t-h           Help (this info)\n"
@@ -19,5 +19,6 @@
 	     "\t-b BAD       Bad level (0)\n"
 	     "\t-k REJ       Rejection level (k-sigma; 3.5)\n"
-	     "\t-f FRAC      Fraction of pixel to be marked before considered bad (0.8)\n"
+	     "\t-f FRAC      Fraction of pixel to be marked before considered bad (0.5)\n"
+	     "\t-d GRAD      Gradient threshold for pixel to be marked (0.0)\n"
 	     "\tOUT          Output image\n"
 	     "\tIN1, IN2...  Input images, which have associated .map files.\n",
@@ -37,10 +38,11 @@
     config->inputs = NULL;
     config->output = NULL;
-    config->outnx = 512;
-    config->outny = 512;
+    config->outnx = 1024;
+    config->outny = 1024;
     config->saturated = 65536.0;
     config->bad = 0.0;
-    config->reject = 2.75;
+    config->reject = 3.5;
     config->frac = 0.5;
+    config->grad = 0.4;
 
     return config;
@@ -72,5 +74,5 @@
 
     /* Parse command-line arguments using getopt */
-    while ((opt = getopt(argc, argv, "hvg:r:o:s:b:k:f:")) != -1) {
+    while ((opt = getopt(argc, argv, "hvg:r:o:s:b:k:f:G:")) != -1) {
         switch (opt) {
 	  case 'h':
@@ -121,4 +123,9 @@
 	    }
 	    break;
+	  case 'G':
+	    if (sscanf(optarg, "%f", &config->grad) != 1) {
+		help(programName);
+	    }
+	    break;
 	  default:
 	    help(programName);
