10 string version
= "$Id: sac2asc.cpp 1816 2009-09-07 11:28:35Z mmoorkamp $"
12 int main
cout << " This is sac2asc: Convert sac to plain ascii format"
cout << " Reads in a file in SAC format and writes it as an ascii file"
<< " Most header values are ignored, only npts, dt and b are written to the output file"
cout << " This is Version: "
<< endl << endl;
infilename = AskFilename("Input file: "
outfilename = infilename + ".asc"
cerr << e.what() << endl;
int ReadData(const std::string &filename, tseismicdataformat format=sac)
Read in data from a file, as we cannot determine the type from the ending we have to provide it...
int main(int argc, char *argv)
int WriteAsAscii(const std::string &filename) const
Write the data in plain ascii format.
The basic exception class for all errors that arise in gplib.