Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with envplot #3

Open
Luis2195 opened this issue Aug 19, 2022 · 5 comments
Open

Error with envplot #3

Luis2195 opened this issue Aug 19, 2022 · 5 comments

Comments

@Luis2195
Copy link

I have this error when I try to plot the results from the inversion of the enveloped waveforms:

Error using textscan
Invalid file identifier. Use fopen to generate a valid file identifier.

Error in envplot>plpol_Callback (line 661)
C = textscan(fileID,'%f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f');

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in envplot (line 42)
gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)envplot('plpol_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating UIControl Callback.

Inversion was done for a line of sources under epicenter.
Error using sscanf
First argument must be a text scalar.

Error in readout3 (line 9)
totalgs=sscanf(tline,'%u');

Error in envplot>inv1_Callback (line 1142)
[totalgs,selectedsrc,selectedgrid,strike,dip,rake,Mo,Mw] = readout3

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in envplot (line 42)
gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)envplot('inv1_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating UIControl Callback.

I'll will appreciate your help.

@esokos
Copy link
Owner

esokos commented Aug 22, 2022

hello,

are you using the latest version of the GUI.?

@Luis2195
Copy link
Author

Yes, I'm using the latest version

@esokos
Copy link
Owner

esokos commented Aug 24, 2022

i see that the error is related with this file .\env_amp_inv\inv2.dat so please check in the env_amp_inv folder (of your run folder) and see if it is ok, e.g. it is not zero size and has 17 columns ... or just post the file here and i will check it

@Luis2195
Copy link
Author

Luis2195 commented Sep 6, 2022

In the folder env_amp_inv i don't have the file .\env_amp_inv\inv2.dat just the file "inv1" and "inv2_save" however in the folder invert i have the file inv2.dat.

I add the files...
Datas.zip

@esokos
Copy link
Owner

esokos commented Sep 14, 2022

this is strange .. are you sure that the fortran code runs correctly ..? check the command window (that opens) for errors and let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants