314 char infile[]=
"junk.sff";
315 char outfile[]=
"junk2.sff";
316 cout <<
"test reading from file: " << infile << endl
317 <<
"-----------------------" << endl;
321 std::cerr <<
"manipulate " << infile
322 <<
" - if you like to..." << std::endl;
326 std::ifstream is(infile);
329 std::ofstream os(outfile);
334 cout <<
"FREE: " << std::endl << fhd.free() << endl;
338 cout <<
"SRCEtime: " << fhd.srce().date.timestring() << endl;
347 }
catch (GSE2::Terror) {
348 cerr <<
"UUpppsss" << endl;
350 cerr << wid2line.
line();
352 cerr << series.size() <<
" samples" << endl;
355 cerr << iwf.header().wid2().line() << endl;
357 os << sff::OutputWaveform<Tseries>(iwf.series(),
361 cout <<
"you will find the data in " << outfile << endl;
aff::Series< double > Tseries
scale for maximum dynamic range