Index: trunk/psModules/src/detrend/pmDetrendDB.c
===================================================================
--- trunk/psModules/src/detrend/pmDetrendDB.c	(revision 19176)
+++ trunk/psModules/src/detrend/pmDetrendDB.c	(revision 19295)
@@ -12,4 +12,5 @@
 #include "pmFPA.h"
 #include "pmFPALevel.h"
+#include "pmConfigCamera.h"
 #include "pmDetrendDB.h"
 #include "psPipe.h"
@@ -129,5 +130,7 @@
 
     pmDetrendSelectResults *results = pmDetrendSelectResultsAlloc();
-    psStringAppend(&line, "detselect -search -inst %s -det_type %s -time %s", options->camera, type, time);
+    psString realCamera = pmConfigCameraRootName (options->camera);
+    psStringAppend(&line, "detselect -search -inst %s -det_type %s -time %s", realCamera, type, time);
+    psFree (realCamera);
 
     if (options->filter) {
