seisio.to_segy assertion error #131
-
I am working on coblending 3 frequency segy volumes and then converting to greyscale for use in another program but am having problems writing the xarray dataset back to segy format. For this example, I have omitted my coblending script and am just attempting to read a segy file to xarray and then trying to write the xarray back to segy. The xarray works as intended, however when I try to convert back to segy I end up with an assertion error that is empty.
My only output is AssertionError: Any ideas? Thanks! ps. here is my dataset info
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Two things. Wrapping the function in a try-except block like this will hide the stack trace which is why the assertion error is not helpful. However, I will look to add more meaningful messages to the asset statements in the code. Secondly, it looks like you are trying to write CDP coordinates, but have not loaded any into your dataset. My guess is that the assertion error is because the variables |
Beta Was this translation helpful? Give feedback.
Two things.
Wrapping the function in a try-except block like this will hide the stack trace which is why the assertion error is not helpful. However, I will look to add more meaningful messages to the asset statements in the code.
Secondly, it looks like you are trying to write CDP coordinates, but have not loaded any into your dataset. My guess is that the assertion error is because the variables
cdp_x
andcdp_y
don't exist in your dataset.