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

Output file format #30

Open
Wangmmstar opened this issue Mar 17, 2023 · 2 comments
Open

Output file format #30

Wangmmstar opened this issue Mar 17, 2023 · 2 comments

Comments

@Wangmmstar
Copy link

Hi, thank you for your wonderful work!

I processed the .DZT file using gprpy. However, when I save the file, it can only save as .gpr file. Even though I changed the source python file to let it not forcely save .gpr file, still get the same output.
Do you have any suggestions on save the processed data as .DZT file or convert the .gpr file to .DZT or npy file?
Any help would be very much appreciated!!

Best,
June

@AlainPlattner
Copy link
Member

Hi June,

Thank you for your encouraging comment and for using GPRPy.

When you change the source python file, you need to reinstall gprpy:
pip uninstall gprpy
then
pip install .
in the GPRPy folder. This will integrate your changes into the installed gprpy package, which is stored in your python package manager's folder.
Another option could be to use / alter a script that I just made available https://github.com/NSGeophysics/gpr2ascii
You could edit it to store the data as a .npy instead of a .DZT file.

I hope this helps.
Best and thank you,
Alain

@Wangmmstar
Copy link
Author

Hi June,

Thank you for your encouraging comment and for using GPRPy.

When you change the source python file, you need to reinstall gprpy: pip uninstall gprpy then pip install . in the GPRPy folder. This will integrate your changes into the installed gprpy package, which is stored in your python package manager's folder. Another option could be to use / alter a script that I just made available https://github.com/NSGeophysics/gpr2ascii You could edit it to store the data as a .npy instead of a .DZT file.

I hope this helps. Best and thank you, Alain

Hi Alain,

Thank you for your informative reply! I am trying the second way that use your gpr2ascii repository. I am not sure how could I edit it to store the data as a .npy file? Just change the suffix of file? Could you give me more details? Thanks again!

Best,
June

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