 
             ostringstream ostr;
             ostr << "dir-dog/d-" << basename << "-o-" << octave << "-l-" << l << ".pgm";
-            cerr << "Writing " << ostr.str() << endl;
+            // cerr << "Writing " << ostr.str() << endl;
             popart::write_plane2D( ostr.str().c_str(), true, p );
 
             ostringstream ostr2;
-            ostr2 << "dir-dog/d-" << basename << "-o-" << octave << "-l-" << l << ".txt";
+            ostr2 << "dir-dog-txt/d-" << basename << "-o-" << octave << "-l-" << l << ".txt";
             popart::write_plane2Dunscaled( ostr2.str().c_str(), true, p );
         }
 

                    mkdir("dir-feat", 0700);
                }


                ostringstream ostr;
                ostr << "dir-feat/" << basename << "-o-" << octave << "-l-" << level << ".pgm";
                ostringstream ostr2;
                ostr2 << "dir-feat/" << basename << "-o-" << octave << "-l-" << level << ".txt";
        #if 0
                ofstream of( ostr.str().c_str() );
                cerr << "Writing " << ostr.str() << endl;
                of << "P5" << endl
                   << width << " " << height << endl
                   << "255" << endl;


        if (stat("dir-dog", &st) == -1) {
            mkdir("dir-dog", 0700);
        }

        if (stat("dir-dog-txt", &st) == -1) {
            mkdir("dir-dog-txt", 0700);
        }

        float* array;
