11 string version =
"$Id: writevtk.cpp 1849 2010-05-07 11:53:45Z mmoorkamp $";
24 <<
" This is writevtk, convert Mackie or WinGlink model files to vtk format for display"
27 <<
" Output format is legacy VTK format, ending '.vtk' is appended to output"
29 cout <<
" This is Version: " <<
version << endl << endl;
31 string infilename, outfilename;
35 infilename = AskFilename(
"Modelfile: ");
36 cout <<
"Type 1 for old Mackie, 2 for Winglink: ";
39 cout <<
"Outfile root: ";
49 Model.
WriteVTK(outfilename +
".vtk");
53 cerr << e.what() << endl;
void ReadMackie(std::string filename)
Read an ascii file in the format use by Mackie's old code.
void WriteNetCDF(std::string filename)
Write the model in netcdf format.
The class 3DMTModel manages 3D models for magnetotelluric model calculations, at this point this is o...
void ReadWinGLink(std::string filename)
Read an ascii file in the format written by WinGLink.
void WriteVTK(std::string filename)
Write an ascii file in .vtk format for plotting.
The basic exception class for all errors that arise in gplib.