GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Address items 3, 4, 7 in vector proposal by PaulWessel · Pull Request #6194 · GenericMappingTools/gmt

Conversation

@PaulWessel

@PaulWessel PaulWessel commented Jan 5, 2022

Copy link
Copy Markdown
Contributor

This PR addresses these three items in #6190:

(3) Allow +z in plot and plot3 to accept components for a geovector and have them scaled to map distances. Properly compute what azimuth and length this corresponds to and plot the geovector accordingly.
(4) Disable (or give error) +z in grdvector since here we control polar vs component via -A.
(7) Accept a default scale of 1 if +z has no argument (currently this would give junk).

No tests are affected.

Some examples of geovector components calls:

echo 0 60 100 100 | gmt plot -R-2/3/59/62 -JM10c -B -S=12p+e+z -W1p -Gred -pdf map
echo 0 60 100k 100M | gmt plot -R-2/3/59/62 -JM10c -B -S=12p+e+z -W1p -Gred -pdf map
echo 0 60 1 2 | gmt plot -R-2/3/59/62 -JM10c -B -S=12p+e+z100k -W1p -Gred -pdf map

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
PaulWessel added 2 commits January 4, 2022 17:12
@PaulWessel
Address items 3, 4, 7 in vector proposal
04308ee
This PR addresses those items in #6190.  No tests are affected.
@PaulWessel
set types for both components
aebe8e6
@PaulWessel PaulWessel added the enhancement Improving an existing feature label Jan 5, 2022
@PaulWessel PaulWessel added this to the 6.4.0 milestone Jan 5, 2022
@PaulWessel
PaulWessel requested review from Esteban82, joa-quim and maxrjones January 5, 2022 03:26
@PaulWessel PaulWessel self-assigned this Jan 5, 2022
@Esteban82

Esteban82 commented Jan 5, 2022

Copy link
Copy Markdown
Member

Are these ok?

map1
map2
map3

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Esteban82
Esteban82 approved these changes Jan 5, 2022
View reviewed changes

@Esteban82 Esteban82 left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I approve because my tests looks fine.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@PaulWessel

PaulWessel commented Jan 5, 2022

Copy link
Copy Markdown
Contributor Author

I think so: 100 km is a bit shorter than 2 degrees longitude at 60 N

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@PaulWessel
PaulWessel merged commit e776117 into master Jan 5, 2022
@PaulWessel
PaulWessel deleted the vector_improv1 branch January 5, 2022 03:49
@maxrjones maxrjones added the add-changelog Add PR to the changelog label Jan 25, 2022

This branch was previously deployed

1 inactive deployment
Preview — aebe8e67 Deployed Jan 5, 2022 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Esteban82 Esteban82 Esteban82 approved these changes
@joa-quim joa-quim Awaiting requested review from joa-quim
@maxrjones maxrjones Awaiting requested review from maxrjones

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@PaulWessel PaulWessel

Labels

add-changelog Add PR to the changelog enhancement Improving an existing feature

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@PaulWessel @Esteban82 @maxrjones
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.