Index: /trunk/psModules/src/detrend/pmShifts.c
===================================================================
--- /trunk/psModules/src/detrend/pmShifts.c	(revision 12263)
+++ /trunk/psModules/src/detrend/pmShifts.c	(revision 12264)
@@ -13,6 +13,4 @@
 
 #define SHIFTS_BUFFER 100               // Buffer size for shifts
-#define TABLE_NAME "SHIFTS.TABLE"       // Name for table on the analysis metadata
-#define KERNEL_NAME "SHIFTS.KERNEL"     // Name for kernel on the analysis metadata
 #define TRACE "psModules.detrend"       // Trace facility
 #define FFT_SIZE 25                     // Size at which we use FFT instead of direct convolution
@@ -74,5 +72,5 @@
 
     bool mdok;                          // Status of MD lookup
-    pmShifts *check = psMetadataLookupPtr(&mdok, cell->analysis, TABLE_NAME); // Table, or NULL
+    pmShifts *check = psMetadataLookupPtr(&mdok, cell->analysis, PM_SHIFTS_TABLE_NAME); // Table, or NULL
     if (check) {
         psTrace(TRACE, 2, "Cell already has OT kernel present.\n");
@@ -298,5 +296,5 @@
     if (phuLevel == PM_FPA_LEVEL_CELL) {
         // Only a single cell
-        psMetadataAddPtr(cell->analysis, PS_LIST_TAIL, TABLE_NAME, PS_DATA_KERNEL,
+        psMetadataAddPtr(cell->analysis, PS_LIST_TAIL, PM_SHIFTS_TABLE_NAME, PS_DATA_KERNEL,
                          "Orthogonal transfer shifts", singleShifts);
         psFree(singleShifts);
@@ -336,5 +334,5 @@
                       }
                       pmCell *cell = chip->cells->data[cellNum]; // Cell of interest
-                      if (psMetadataLookup(cell->analysis, TABLE_NAME)) {
+                      if (psMetadataLookup(cell->analysis, PM_SHIFTS_TABLE_NAME)) {
                           // Already has a shifts table, for some reason
                           psWarning("Chip %s, cell %s already has a shifts table --- overwriting\n",
@@ -343,5 +341,5 @@
 
                       pmShifts *vectors = psHashLookup(cells, cellName); // Shifts for the cell of interest
-                      psMetadataAddPtr(cell->analysis, PS_LIST_TAIL, TABLE_NAME,
+                      psMetadataAddPtr(cell->analysis, PS_LIST_TAIL, PM_SHIFTS_TABLE_NAME,
                                        PS_DATA_KERNEL | PS_META_REPLACE,
                                        "Orthogonal transfer shifts", vectors);
@@ -361,5 +359,5 @@
                   }
                   pmCell *cell = chip->cells->data[cellNum]; // Cell of interest
-                  if (psMetadataLookup(cell->analysis, TABLE_NAME)) {
+                  if (psMetadataLookup(cell->analysis, PM_SHIFTS_TABLE_NAME)) {
                       // Already has a shifts table, for some reason
                       psWarning("Cell %s already has a shifts table --- overwriting\n", name);
@@ -367,5 +365,5 @@
 
                   pmShifts *vectors = psHashLookup(multipleShifts, name); // Shifts for this cell
-                  psMetadataAddPtr(cell->analysis, PS_LIST_TAIL, TABLE_NAME,
+                  psMetadataAddPtr(cell->analysis, PS_LIST_TAIL, PM_SHIFTS_TABLE_NAME,
                                    PS_DATA_KERNEL | PS_META_REPLACE,
                                    "Orthogonal transfer shifts", vectors);
@@ -393,5 +391,5 @@
 
     bool mdok;                          // Status of MD lookup
-    pmShifts *shifts = psMetadataLookupPtr(&mdok, cell->analysis, TABLE_NAME);
+    pmShifts *shifts = psMetadataLookupPtr(&mdok, cell->analysis, PM_SHIFTS_TABLE_NAME);
     if (!shifts) {
         psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find shifts table for cell.\n");
@@ -405,5 +403,5 @@
         return false;
     }
-    psMetadataAddPtr(cell->analysis, PS_LIST_TAIL, KERNEL_NAME, PS_DATA_KERNEL,
+    psMetadataAddPtr(cell->analysis, PS_LIST_TAIL, PM_SHIFTS_KERNEL_NAME, PS_DATA_KERNEL,
                      "Orthogonal transfer kernel, calculated from shifts", kernel);
     psFree(kernel);
@@ -418,8 +416,8 @@
 
     bool mdok;                          // Status of MD lookup
-    psKernel *kernel = psMetadataLookupPtr(&mdok, source->analysis, KERNEL_NAME);
+    psKernel *kernel = psMetadataLookupPtr(&mdok, source->analysis, PM_SHIFTS_KERNEL_NAME);
     if (!kernel) {
         // Maybe they just forgot to generate the kernel with pmShiftsKernel
-        if (psMetadataLookup(source->analysis, TABLE_NAME)) {
+        if (psMetadataLookup(source->analysis, PM_SHIFTS_TABLE_NAME)) {
             if (!pmShiftsKernel(source)) {
                 psError(PS_ERR_UNKNOWN, false, "Unable to generate shifts kernel.");
@@ -427,5 +425,5 @@
             }
             // Hopefully it's there now
-            kernel = psMetadataLookupPtr(&mdok, source->analysis, KERNEL_NAME);
+            kernel = psMetadataLookupPtr(&mdok, source->analysis, PM_SHIFTS_KERNEL_NAME);
             if (!kernel) {
                 psError(PS_ERR_UNKNOWN, false, "Unable to find shifts kernel.");
Index: /trunk/psModules/src/detrend/pmShifts.h
===================================================================
--- /trunk/psModules/src/detrend/pmShifts.h	(revision 12263)
+++ /trunk/psModules/src/detrend/pmShifts.h	(revision 12264)
@@ -4,4 +4,7 @@
 #include <pslib.h>
 #include "pmFPA.h"
+
+#define PM_SHIFTS_TABLE_NAME "SHIFTS.TABLE" ///< Name for table on the analysis metadata
+#define PM_SHIFTS_KERNEL_NAME "SHIFTS.KERNEL" ///< Name for kernel on the analysis metadata
 
 /// Shifts due to orthogonal transfer
