Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📤 Pull Request
Description
Now the program sfdiffsim receives velocity input as a command-line parameter. Because the program considers that all the received (t0,m0) pairs in the t0s and m0s files pertain to the same reflector in the stacked section. This is done in order to allow the program to run in a loop, it generates a set of diffraction hyperbolas for a given reflector in each iteration of the loop.
Divide velocity by 2 because it uses the exploding reflector model to simulate diffractions in the stacked section.
Add an if condition to check if the calculated time sample is inside the section to avoid segmentation fault errors (it is the calculated time sample index, it can't be major than the number of the time samples in the section, nt0. i is the calculated CMP sample index, it can't be negative and major than the number of CMP samples in the section).
Resolve #17
Type of change
Please delete options that are not relevant.
Add images bellow and additional context if needed
Usage example of the new version of the program in a loop (use sfipick to do an iterative picking for each reflector and simulate diffractions hyperbolas in the stacked section with sfdiffsim).
Image of the picking and diffraction simulation step (Available in creVelocityInversion package):