Exporting Data

1. Exporting Data

Now that you know how to import data and how to extract cross sections from it, you may want to export it to a format that can be imported into e.g. Paraview. This has been done already at several instances during this tutorial, but we state it here again for completeness. Exporting data to vts format (which can be imported to Paraview) can be done using the function Write_Paraview.

Based on the previous part of the tutorial, you may want to export the whole block of the imported tomography. This is simply done using this command:

julia> Write_Paraview(Data_Paffrath, "DataPaffrathAlps")    

If, on the other hand, you would like to export the vertical cross section you just created, it can be exported using:

julia> Write_Paraview(Data_Paffrath_A, "DataPaffrath_ProfileA")    

whereas the horizontal slice can be exported with:

julia> Write_Paraview(Data_Paffrath_d100, "DataPaffrath_Slice100")    

Where the first argument is the data structure to be exported and the second one denotes the vts filename. That’s it!

Exercises

  1. Export all volumes/cross sections that you created.

Marcel Thielmann
Marcel Thielmann
Principal Investigator/Group Leader

Working on localization processes in Earth materials, in particular deep earthquakes, flow of complex fluids in porous media and Earth’s lower mantle rheology.