MTgeophysics / mtpy

Python toolbox for standard Magnetotelluric (MT) data analysis
GNU General Public License v3.0
147 stars 66 forks source link

error when create input data file for ModEM. from edi files #147

Closed anismoh closed 3 years ago

anismoh commented 3 years ago

hello I need some help, please

when I created an input data file for 3d inversion(ModEM), I get this file with the error word"Tra": I didn't know why I get this word ??

5.62341e-03 GCA MT Tra -29.868 139.695 0.000 0.000 0.000 ZXX -1.587891e+00 -1.748876e+01 6.943004e+00 5.62341e-03 GCA MT Tra -29.868 139.695 0.000 0.000 0.000 ZXY 1.339160e+02 4.278995e+01 6.943004e+00 5.62341e-03 GCA MT Tra -29.868 139.695 0.000 0.000 0.000 ZYX -1.363492e+02 -1.484753e+01 6.943004e+00 5.62341e-03 GCA MT Tra -29.868 139.695 0.000 0.000 0.000 ZYY -6.012245e+01 4.819113e+00 6.943004e+00 1.00000e-02 GCA MT Tra -29.868 139.695 0.000 0.000 0.000 ZXX 5.579812e+00 -1.253638e+01 6.692426e+00 1.00000e-02 GCA MT Tra -29.868 139.695 0.000 0.000 0.000 ZXY 1.159574e+02 4.500153e+01 6.692426e+00 1.00000e-02 GCA MT Tra -29.868 139.695 0.000 0.000 0.000 ZYX -1.424418e+02 -2.135535e+01 6.692426e+00

when I inverse this file with ModEM 3d the code indicates that the error began on the line where ''Tra'' appears

volkerrath commented 3 years ago

Hi, I don't know too much about mtpy, but ModEM does not allow site names with blancs. Hope this helps, Volker

On 17/06/2021 20:35, anismoh wrote:

hello I need some help, please

when I created an input data file for 3d inversion(ModEM), I get this file with the error word"Tra": I didn't know why I get this word ??

5.62341e-03 GCA MT Tra -29.868 139.695 0.000 0.000 0.000 ZXX -1.587891e+00 -1.748876e+01 6.943004e+00 5.62341e-03 GCA MT Tra -29.868 139.695 0.000 0.000 0.000 ZXY 1.339160e+02 4.278995e+01 6.943004e+00 5.62341e-03 GCA MT Tra -29.868 139.695 0.000 0.000 0.000 ZYX -1.363492e+02 -1.484753e+01 6.943004e+00 5.62341e-03 GCA MT Tra -29.868 139.695 0.000 0.000 0.000 ZYY -6.012245e+01 4.819113e+00 6.943004e+00 1.00000e-02 GCA MT Tra -29.868 139.695 0.000 0.000 0.000 ZXX 5.579812e+00 -1.253638e+01 6.692426e+00 1.00000e-02 GCA MT Tra -29.868 139.695 0.000 0.000 0.000 ZXY 1.159574e+02 4.500153e+01 6.692426e+00 1.00000e-02 GCA MT Tra -29.868 139.695 0.000 0.000 0.000 ZYX -1.424418e+02 -2.135535e+01 6.692426e+00

when I inverse this file with ModEM 3d the code indicates that the error began on the line where ''Tra'' appears

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MTgeophysics/mtpy/issues/147, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXJYFF5NE5ZAD72CVPLEVTTTI6AVANCNFSM464G2LPQ.

-- Volker Rath School of Cosmic Physics (retired) Dublin Institute for Advanced Studies 5 Merrion Square, Dublin 2, Ireland mobile: +33 642624460 email: @. email: @. skype: volker_rath https://www.researchgate.net/profile/Volker_Rath2

anismoh commented 3 years ago

thank you sir for helping, but in the header of the created input data file explain the type of every column:

Period(s) Code GG_Lat GG_Lon X(m) Y(m) Z(m) Component Real Imag Error

I think there is no column for the name of the station !

alkirkby commented 3 years ago

Hi yes try removing spaces from your station names, if you check your edi files what is the station name? I think MTPy might be cutting the name short, do your station names in your edi files all start with "GCA MT Tra"? As for the header, mine has that too and it runs fine, that row is commented anyway. I think the "Code" column is for the station name.

anismoh commented 3 years ago

yes sir you are right , thank you so much, the code column is about Data ID, from the edi file :

HEAD

DATAID="GCA MT Transect"