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

Hotfix/issue/38 bug correction in sfgetcregather #41

Merged
merged 3 commits into from
Jun 1, 2020

Conversation

Dirack
Copy link
Owner

@Dirack Dirack commented Jun 1, 2020

📤 Pull Request

Description

Correct bug in sfgetcregather putting zeroed samples when CMP coordinate of the traces gets out of model bounds.

Resolve #38

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Add images bellow and aditional context if needed

CRE trajectories are parabolas in CMP x Offset domain. And CRE gathers are seismic traces above those trajectories. Therefore, CMP increases faster than Offset. So, for a small amount of increasing in Offset coordinate it has a greater increase in CMP coordinate (See the image above. Horizontal axis is CMP, vertical axis is Offset).

interpolacao0

Because of that, a CMP coordinate of a trace can be out of the limits of the model in the CMP x Offset plane, despite it has a valid Offset coordinate. This trace will generate an invalid output of a CRE Gather from sfgetcregather, and the bug referenced in this issue will occur.

The solution is when a trace with an invalid CMP coordinate is request to form the CRE Gather, put a zeroed one (zero amplitude trace). The amount of traces in a gather will be the same and zero amplitudes won't affect following processes.

Dirack added 3 commits June 1, 2020 16:21
To correct this bug use a maximum aperture in CMP coordinates os CRE gather
such as put zero traces if CMP coordinate of the CRE gather trace is outside
of the model.
Using aperture=49 in the the program sfgetcregather with i=101 and
j=73 runs without bug. Meanwhile, running with aperture=50 ends with
the bug referenced in this issue.

This probably occurs because trace number 50 has a CMP coordinate out
of the model, m[50]=5.026 (I've checked in 'creMhcoordinate' file).

Please reference this commit to hotfix/issue/38 discussion.
Stores the maximum CMP coordinate of the model in a variable mMax in
the program 'MgetcreGather.c' and check if the CMP coordinate is out
of the bounds of the model. Put zero values in the sample of this
trace.
@Dirack Dirack added the bug Something isn't working label Jun 1, 2020
@Dirack Dirack self-assigned this Jun 1, 2020
@Dirack Dirack merged commit e410469 into feature/issue/37 Jun 1, 2020
@Dirack Dirack deleted the hotfix/issue/38 branch June 1, 2020 21:42
@Dirack Dirack linked an issue Jun 1, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] No such file or directory error from sfgetcregather
1 participant