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

How to load gprMax simulation files? #7

Closed
christianversloot opened this issue Apr 17, 2019 · 8 comments
Closed

How to load gprMax simulation files? #7

christianversloot opened this issue Apr 17, 2019 · 8 comments
Assignees
Labels

Comments

@christianversloot
Copy link

I used a gprMax GSSI simulated output file and gprMax's MATLAB .out to .dzt converter to create a dzt file based on my simulation.

However, when I try to read this file with readgssi -i PATH_TO_FILE.dzt I run into this error:

image

I cannot find similar issues, so I'm posting this one. How can I resolve this?

@christianversloot
Copy link
Author

It seems to be primarily the KeyError (top part of the screen) which throws the error in the first place.

@iannesbitt iannesbitt added the bug label Apr 17, 2019
@iannesbitt iannesbitt self-assigned this Apr 17, 2019
@iannesbitt
Copy link
Owner

I know why this is happening but I can't test it without a gprMax output file. Would you mind attaching an example file? I need to be able to see how gprMax encodes frequency information.

@christianversloot
Copy link
Author

Thank you for your immediate response! Great to see active maintenance.

With regards to your question: yes, please find them attached in the ZIP file.
gprmax_example_models.zip

iannesbitt added a commit that referenced this issue Apr 17, 2019
Attempt 1 to address issue #7 by properly handling DZTs created in gprMax
@iannesbitt
Copy link
Owner

Hi Christian, good news: I can read and plot this file with not too many code changes. The axis lengths are weird (1024 * 100 is not a ratio I see a lot) so I had to manually adjust the image axes in the Matplotlib GUI, but it works. See below. I will be committing these and other changes shortly.

gssi_1500_schaal_groot_water_mergedc0G1

@christianversloot
Copy link
Author

christianversloot commented Apr 17, 2019

Fantastic! Thanks a lot 👍

I can see why you find the axis lengths weird, but it is actually how we intended them to be :)
I'm currently working on my Information Technology master's thesis on automated utility characterization using machine learning (for amplifying the expert -- we think GPR data is too complex for full automation). Together with a geophysicist from the industry partner I'm working with we're in the process of generating many simulation files which can be training data. Since initially we will work on approaches which have one object as input, and since we specifically focus on the hyperbola apex A-scan and/or the single-object B-scan windows, the axes are weird.

@iannesbitt
Copy link
Owner

iannesbitt commented Apr 17, 2019

Makes total sense! The axis lengths aren't weird to me, they're just weird to the software. Matplotlib's tight_layout() function isn't great with long, thin images and I've yet to find a way around that.

I've made some changes in d51d9e0 that should allow you to read and plot gprMax files. I've not tested all functionality yet. Can you clone and test to see if this commit fixes the issue?

@christianversloot
Copy link
Author

It does! Tested the new version with some other gprMax generated .dzt files as well, and they also complete nicely :) Thanks again 👍

@iannesbitt
Copy link
Owner

For sure. Let me know if it gives you trouble in the future.

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

No branches or pull requests

2 participants