fix a bug in coupe ( -A+wwidth is useless when using -N ) #8804
+1
−1
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.


gmt/src/seis/pscoupe.c
Lines 1331 to 1333 in 58850df
if
-Nis used,!Ctrl->N.activeis always 0, so the whole condition is always 0 too.However, if user wants to use -A+wwidth to choose data points only in the range of the
, although the data points outside the range let
pscoupe_dans_coupereturns 0 and!pscoupe_dans_coupeequal to 1:gmt/src/seis/pscoupe.c
Lines 353 to 371 in 58850df
these data points will not be skipped because
!Ctrl->N.activeis always 0.Actually, in docs: https://docs.generic-mapping-tools.org/6.6/supplements/seis/coupe.html#n , -N means
it is well done in lines:
gmt/src/seis/pscoupe.c
Line 1259 in 58850df
gmt/src/seis/pscoupe.c
Line 1265 in 58850df
gmt/src/seis/pscoupe.c
Lines 1338 to 1341 in 58850df
gmt/src/seis/pscoupe.c
Line 1684 in 58850df
It makes no sense to use
!Ctrl->N.activein