Index: trunk/ppStac/src/ppStacOptions.c
===================================================================
--- trunk/ppStac/src/ppStacOptions.c	(revision 12994)
+++ trunk/ppStac/src/ppStacOptions.c	(revision 13247)
@@ -83,11 +83,13 @@
     }
 
-    const char *outName = argv[1];      // Output filename
+    psString outName = pmConfigConvertFilename(argv[1], options->config, true); // Output filename
     options->outFile = psFitsOpen(outName, "w");
     if (!options->outFile) {
         psError(PS_ERR_IO, false, "Unable to open output file %s.\n", outName);
         psFree(options);
+        psFree(outName);
         return NULL;
     }
+    psFree(outName);
 
     int numInputs = *argc - 2; // Number of input files
