Index: /trunk/ippTools/src/detselect.c
===================================================================
--- /trunk/ippTools/src/detselect.c	(revision 11098)
+++ /trunk/ippTools/src/detselect.c	(revision 11099)
@@ -116,4 +116,10 @@
     }
 
+    // XXX need to place in here the range constraints for range-based values:
+    // use_begin    < time     < use_end
+    // airmass_min  < airmass  < airmass_max
+    // ccd_temp_min < ccd_temp < ccd_temp_max
+    // exp_time_min < exp_time < exp_time_max
+
     {
         psString str = NULL;
@@ -121,4 +127,12 @@
         if ((str = psMetadataLookupStr(&status, config->args, "-det_type"))) {
             psStringAppend(&query, " AND detRun.det_type = '%s'", str);
+        }
+    }
+
+    {
+        psString str = NULL;
+        bool status = false;
+        if ((str = psMetadataLookupStr(&status, config->args, "-filter"))) {
+            psStringAppend(&query, " AND detRun.filter = '%s'", str);
         }
     }
