Index: trunk/ippTools/src/sctool.c
===================================================================
--- trunk/ippTools/src/sctool.c	(revision 33921)
+++ trunk/ippTools/src/sctool.c	(revision 33922)
@@ -31,4 +31,5 @@
 #include "pxdata.h"
 #include "pxchip.h"
+#include "pxspace.h"
 
 #include "sctool.h"
@@ -143,12 +144,5 @@
     PXOPT_COPY_STR(config->args, where, "-skycell_id", "skycell.skycell_id", "LIKE");
     PXOPT_COPY_STR(config->args, where, "-tess_id", "skycell.tess_id", "LIKE");
-    PXOPT_COPY_F32(config->args, where, "-ra_min", "skycell.radeg", ">=");
-    PXOPT_COPY_F32(config->args, where, "-dec_min", "skycell.decdeg", ">=");
-    PXOPT_COPY_F32(config->args, where, "-ra_max", "skycell.radeg", "<");
-    PXOPT_COPY_F32(config->args, where, "-dec_max", "skycell.decdeg", "<");
-    PXOPT_COPY_F32(config->args, where, "-glong_min", "skycell.glong", ">=");
-    PXOPT_COPY_F32(config->args, where, "-glat_min", "skycell.glat", ">=");
-    PXOPT_COPY_F32(config->args, where, "-glong_max", "skycell.glong", "<");
-    PXOPT_COPY_F32(config->args, where, "-glat_max", "skycell.glat", "<");
+    pxskycellAddWhere(config, where);
 
     psString query = pxDataGet("sctool_list.sql");
