Skip to content

Input file formats for Spectrum, Correlations and Paths

Stephanie Durand edited this page Dec 12, 2017 · 1 revision

We have seen that in Spectrum, Correlation and Path it is possible to upload models files from any other model that would not be from the default ones already included in SeisTomoPy. We describe here the format of these files. For Spectrum and Correlation the files have the the same format. It is basically the same format as the files map_NEW_MODEL_PARA.out obtained with Map tool, which have 3 columns: latitude (from -89 to 89 degrees, with a step of 1 degree), longitude (from 0 to 359 degrees, with a step of 1 degree) and parameter perturbations (%). It must thus contain in total 64440 lines. Below is an extract given as example.

-89 0 0.73245523974336291
-88 0 0.72104058555001316
-87 0 0.71041631025040164
...
87 359 0.49352141683917167
88 359 0.51590110372203857
89 359 0.54502724312040074

For Path, the file must contain 5 columns: the radius, the distance in degrees from the starting point, dln(Vp), dln(Vs) and dln(rho) in %. It is basically the same format as the files MODEL_PathPy.sph obtained with Cross section tool. The user precises which parameter to be plotted in the input arguments of the function SeisTomoPy.path_plot_fromfile or with the parameters to set on the GUI. Below is an extract given as example.

3481 0 2.7162811E-002 4.9385717E-002 9.8771474E-003
3531 0 3.3263616E-002 6.0478839E-002 1.2099678E-002
3581 0 4.0070403E-002 7.2856784E-002 1.4571265E-002
...
6131 180 1.2205796 2.2192353 0.4438470
6181 180 0.4952321 0.9005191 0.1801038
6231 180 0.7806580 1.4193792 0.2833848
6281 180 1.5027913 2.7322743 0.5464547