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

need help in my plot #619

Closed
Goziephy opened this issue Nov 21, 2023 · 16 comments
Closed

need help in my plot #619

Goziephy opened this issue Nov 21, 2023 · 16 comments

Comments

@Goziephy
Copy link

Problem description

Need help with my plot

Please describe your issue here.
Good evening Prof., I sent you traveltime.TOM file the other day and you plotted it and share the code with me. Your plot appeals exactly as it is in reflexW software with scale 10 to 60 seconds on traveltime axis); But when i run the code with the file, my plot displaced the traveltime (y-axis) having 0.01 to 0.06 scale which is different from yours. Please what can i do?
Hope to hear from you

Your environment: Jupyter-notebook

Please provide the output of print(pygimli.Report()) here. If that does not
work, please give provide some additional information on your:

image001
20231121_154300

Operating system: Windows
Python version: 3.11.5
pyGIMLi version: Output of `print(pygimli.version):1.4.4
Way of installation: e.g. Conda package, manual compilation from source, etc.

Steps to reproduce

Tell us how to reproduce this issue. Ideally, you could paste the code that produces the error:

import pygimli as pg
...

Expected behavior

Tell us what should happen or what you want to achieve.
what do have the scale with you on traveltime axis

Actual behavior

Tell us what happens instead and/or provide the output of your script.

@halbmy
Copy link
Contributor

halbmy commented Nov 21, 2023

Note that I added the line data["t"] /= 1000 because I guess the traveltime in the file is in obviously ms and not s. This needs to be changed in the import routine (if the TOM file always contains ms) but until then you will have to multiply by yourself.

@makeabhishek
Copy link

makeabhishek commented Nov 21, 2023

what is data[t]/=1000 in line 5? Just saw that same comment was made by Prof @halbmy

@halbmy
Copy link
Contributor

halbmy commented Nov 21, 2023

the traveltimes are divided by 1000

@Goziephy
Copy link
Author

Thank you all for replying, The code is now running fine, but the second step apparent velocity is not showing well. Attached is the screenshot of the code and the displace. Hope to get a response
20231121_183559

@Goziephy
Copy link
Author

Note that I added the line data["t"] /= 1000 because I guess the traveltime in the file is in obviously ms and not s. This needs to be changed in the import routine (if the TOM file always contains ms) but until then you will have to multiply by yourself.

Thank you prof., The code is now running fine, but the second step apparent velocity is not showing well. Attached is the screenshot of the code and the displace. Hope to get a response
20231121_185138

@halbmy
Copy link
Contributor

halbmy commented Nov 21, 2023

As the output says, you seem to have zero traveltime leading to infinite apparent velocity. Remove those data with data.remove(data["t"] <= 0]).

@Goziephy
Copy link
Author

As the output says, you seem to have zero travel-time leading to infinite apparent velocity. Remove those data with data.remove(data["t"] <= 0]).

Thanks prof., the output from the code displaced this; as in the attached file but my apparent velocity is showing range 0.26. to 5.26. I don't know if the range is okay or needs to be multiplied. moreover there are some empty space in the model which i don't know if is okay too.

@Goziephy
Copy link
Author

As the output says, you seem to have zero traveltime leading to infinite apparent velocity. Remove those data with data.remove(data["t"] <= 0]).

Thanks prof., the output from the code displaced this; as in the attached file but my apparent velocity is showing range 0.26. to 5.26. I don't know if the range is okay or needs to be multiplied. moreover there are some empty space in the model which i don't know if is okay too.
20231121_221209

@halbmy
Copy link
Contributor

halbmy commented Nov 22, 2023

I am pretty sure you DO need to multiply your data with 0.001 as discussed before. Which wave is so slow to have a traveltime of 60 seconds on a distance of 100m?? The lowest values would then be around 300m/s (the speed in air) and the highest at 5000 m/s (typical values for hard rock). The missing values are probably the ones with zero traveltime.

And please, don't send smartphone photos. You already have a notebook and can copy the output into the issue.

@Goziephy
Copy link
Author

I am pretty sure you DO need to multiply your data with 0.001 as discussed before. Which wave is so slow to have a traveltime of 60 seconds on a distance of 100m?? The lowest values would then be around 300m/s (the speed in air) and the highest at 5000 m/s (typical values for hard rock). The missing values are probably the ones with zero travel-time.

And please, don't send smartphone photos. You already have a notebook and can copy the output into the issue.

Thank you prof., I multiplied 0.001 in the code and my velocity range is still showing 0.26 to 5.26. Attached is my output and script.
Figure_1
Figure_2
SRTD.txt

@Goziephy
Copy link
Author

I am pretty sure you DO need to multiply your data with 0.001 as discussed before. Which wave is so slow to have a traveltime of 60 seconds on a distance of 100m?? The lowest values would then be around 300m/s (the speed in air) and the highest at 5000 m/s (typical values for hard rock). The missing values are probably the ones with zero traveltime.

And please, don't send smartphone photos. You already have a notebook and can copy the output into the issue.

Prof. the code is running fine if i run it in anaconda prompt but in jupyter-notebook is displacing 0.26 to 5.27 m/s for velocity

@halbmy
Copy link
Contributor

halbmy commented Nov 23, 2023

The plots look correct. But if you run the same code on the command line and in a notebook (using the same pygimli in the same environment), the results should be the same.

@Goziephy
Copy link
Author

The plots look correct. But if you run the same code on the command line and in a notebook (using the same pygimli in the same environment), the results should be the same.

Yes prof. is the same now IF I JOIN all the code together but i run this code below for fit between measured (crosses) and modeled (lines) travel-times and i am having a empty displace cells saying ( Line2D.set() got an unexpected keyword argument 'orientation'). Attached is the code, output and error message.

mgr.invert(secNodes=3, paraMaxCellSize=5.0,
zWeight=0.2, vTop=500, vBottom=5000, verbose=1)
mgr.showFit(firstPicks=True)

SRTT.txt
Figure_3

@halbmy
Copy link
Contributor

halbmy commented Nov 23, 2023

Yes, that's definitely an error that need to be corrected. Thank you for point out.

@Goziephy
Copy link
Author

Yes, that's definitely an error that need to be corrected. Thank you for point out.

Good evening Prof.,
Prof., the code is still not working yet. still showing as before

@halbmy
Copy link
Contributor

halbmy commented Jan 10, 2024

TravelTimeManager.showFit() (firstPicks is True by default) shows the measured data as crosses along with the forward response as lines like demonstrated in the traveltime field data example
image

There was apparently some bug in one of the previous versions which was fixed with the last version v1.4.6.

@halbmy halbmy closed this as completed Jan 10, 2024
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

3 participants