Index: trunk/ippMonitor/scripts/generate
===================================================================
--- trunk/ippMonitor/scripts/generate	(revision 21044)
+++ trunk/ippMonitor/scripts/generate	(revision 24758)
@@ -308,10 +308,16 @@
 	if ($value eq "*") { next; }
 	if ($format[$i] eq "%s") {
-	    print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'string');\n";
-	} else {
-	    print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'string');\n";
-	    print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'min');\n";
-	    print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'max');\n";
-	}
+	    print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'string', 1.0);\n";
+	    next;
+	} 
+	if ($format[$i] eq "%C") {
+	    # convert the RA & DEC limits to radians for comparison
+	    print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'min', 0.017453);\n";
+	    print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'max', 0.017453);\n";
+	    next;
+	} 
+	print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'string', 1.0);\n";
+	print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'min', 1.0);\n";
+	print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'max', 1.0);\n";
     }
     print FILE "\$WHERE = check_ordering ('$GROUPS', \$WHERE);\n";
