Skip to content

Remove the restriction in -p that Elevation must be in 0-90 range - #7349

Merged
PaulWessel merged 2 commits into
masterfrom
no-elev-restriction
Apr 7, 2023
Merged

PaulWessel merged 2 commits into
masterfrom
no-elev-restriction

Conversation

@joa-quim

@joa-quim joa-quim commented Mar 29, 2023 •

Copy link
Copy Markdown
Member

This allows for example to do mirror maps like this. Limiting to positive elevations only lets do rotations, not mirroring.

gmt pscoast -W0.3 -R-180/0/-90/90 -JV0/8c -Bg -P -K > lixo.ps
gmt pscoast -W0.3 -R-180/0/-90/90 -JV0/8c -Bg -p0/-90 -X8 -O >> lixo.ps

lixo

This allows for example to do mirror maps.
@joa-quim
joa-quim requested a review from PaulWessel March 29, 2023 01:33
@seisman

seisman commented Mar 29, 2023

Copy link
Copy Markdown
Member

Quick comment:

  1. Perhaps we should check if elevation is in the -90 to 90 range?
  2. ALso need to update the documentation because I think there are many places that we should elevation must be in 0 to 90.

@joa-quim

Copy link
Copy Markdown
Member Author

I don't think we should impose any restriction in the elevation angle. It would only make sense if we were allowing something that does not work. But that is apparently not the case.

Regarding the docs, my first thought was "sure, I forgot them* but then I can't find any reference to a place were we say that elev must be in the [0 90] interval. Do you know any?

@seisman

seisman commented Mar 30, 2023

Copy link
Copy Markdown
Member

I don't think we should impose any restriction in the elevation angle. It would only make sense if we were allowing something that does not work. But that is apparently not the case.

I'm not sure about this. It seems "elevation angle" is defined to be in the 0-90 range.

Regarding the docs, my first thought was "sure, I forgot them* but then I can't find any reference to a place were we say that elev must be in the [0 90] interval. Do you know any?

My search also finds nothing. So the [0 90] is never mentioned in the documentation.

@joa-quim

Copy link
Copy Markdown
Member Author

I'm not sure about this. It seems "elevation angle" is defined to be in the 0-90 range.

Sorry, don't get this. Now you say it should stay above horizon because of the meaning of the word "elevation"?
Why should we restrict the range of elevation when that prevents us from doing things like mirroring? In name of what?

@PaulWessel PaulWessel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems harmless

@PaulWessel
PaulWessel merged commit 8945be1 into master Apr 7, 2023
@PaulWessel
PaulWessel deleted the no-elev-restriction branch April 7, 2023 13:09
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

Successfully merging this pull request may close these issues.

3 participants