Index: trunk/Ohana/src/opihi/dvo/pmeasure.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/pmeasure.c	(revision 5448)
+++ trunk/Ohana/src/opihi/dvo/pmeasure.c	(revision 5451)
@@ -6,5 +6,4 @@
   int i, j, k, m, N;
   int Ngraph;
-  char filename[128], catdir[256];
   double Mz, Mr, mag;
   double Radius, Rmin, Rmax;
@@ -22,5 +21,4 @@
   if (!InitPhotcodes ()) return (FALSE);
   if (!GetGraph (&graphmode, NULL, &Ngraph)) return (FALSE);
-  if (VarConfig ("CATDIR", "%s", catdir) == NULL) return (FALSE);
 
   f = (FILE *) NULL;
@@ -76,6 +74,5 @@
 
   /* load sky from correct table */
-  sky = SkyTableLoadOptimal (CATDIR, SKY_TABLE, GSCFILE, -1, VERBOSE);
-  SkyTableSetFilenames (sky, CATDIR, "cpt");
+  sky = GetSkyTable ();
   skylist = SkyListByRadius (sky, -1, graphmode.coords.crval1, graphmode.coords.crval2, Radius);
   
@@ -84,5 +81,5 @@
     
     /* lock, load, unlock catalog */
-    catalog.filename = skylist[0].regions[j][0].filename;
+    catalog.filename = (char *) skylist[0].regions[j][0].filename;
     switch (lock_catalog (&catalog, LCK_SOFT)) {
     case 2:
