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 — Let grdcut -E extract a vertical slice from a 3-D cube by PaulWessel · Pull Request #7961 · GenericMappingTools/gmt

Conversation

@PaulWessel

@PaulWessel PaulWessel commented Oct 20, 2023

Copy link
Copy Markdown
Contributor

grdcut -Ex|ycoord lets users extract a vertical slice grid that is either parallel to the x or y direction and goes through the specified coordinate. For example, gmt grdcut my cube.nc -Gslice.nc -Ey33 will cut along the row corresponding to y = 33. For grdcut we require the cube be equidistant in the 3rd dimension, and that coord is a node coordinate so there is no resampling here, just picking the nodes along that slice. Once tested I will add this to grdinterpolate where, if -T is set and coord does not necessarily fall on a node,. we will resample by providing the coordinates for the output grid.

Sorry, something went wrong.

Uh oh!

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

All reactions
PaulWessel added 7 commits October 20, 2023 19:58
@PaulWessel
WIP vertical grid slice along x or y from a cube
203bb62
If you have a 3D cube it is nice to get a vertical slice grid out for some given x or y value. grdinterpolate -R does this by point and via grdtrack so it is slow.  If n_layers are equidistantly spaced then it is simple to extract a grid.
@PaulWessel
experiment with vertical cuts
f3ae863
@PaulWessel
Update gmt_grdio.c
23d0f36
@PaulWessel
Draft ready
d464ab3
@PaulWessel
add -E to docs
6b9eccb
@PaulWessel
Update module_core_purpose.rst_
4059aab
@PaulWessel
watch tabs
6fc2deb
@PaulWessel PaulWessel added the new core module feature PR that implements a new core module feature label Oct 20, 2023
@PaulWessel PaulWessel added this to the 6.5.0 milestone Oct 20, 2023
@PaulWessel
PaulWessel requested a review from joa-quim October 20, 2023 20:25
@PaulWessel PaulWessel self-assigned this Oct 20, 2023
@PaulWessel PaulWessel changed the title WIP Let crd cut -E extract a vertical slice from a 3-D cube WIP Let grdcut -E extract a vertical slice from a 3-D cube Oct 20, 2023
joa-quim
joa-quim approved these changes Oct 20, 2023
View reviewed changes
PaulWessel added 6 commits October 21, 2023 11:02
@PaulWessel
Add example
c9ad6d3
@PaulWessel
More checks
5770df0
@PaulWessel
Wrap up
756f867
@PaulWessel
Update grdcut.rst
c0e4d80
@PaulWessel
Flip in y and add test
de07200
@PaulWessel
Update grdcut.dvc
ed0cb84
@github-actions

github-actions Bot commented Oct 22, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Summary of changed images

This is an auto-generated report of images that have changed on the DVC remote

Status Path
added test/baseline/grdcut/vert_cube_cuts.ps
modified test/baseline/grdcut/

Image diff(s)

Details

Added images

  • test/baseline/grdcut/vert_cube_cuts.png

Modified images

Path Old New

Report last updated at commit 22de03c

All reactions

Sorry, something went wrong.

Uh oh!

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

PaulWessel added 2 commits October 22, 2023 12:43
@PaulWessel
Change name of script
e1d7268
@PaulWessel
Update grdcut.dvc
32af6dd
@PaulWessel PaulWessel changed the title WIP Let grdcut -E extract a vertical slice from a 3-D cube Let grdcut -E extract a vertical slice from a 3-D cube Oct 22, 2023
@PaulWessel

PaulWessel commented Oct 22, 2023

Copy link
Copy Markdown
Contributor Author

Added working test and polished docs.

All reactions

Sorry, something went wrong.

Uh oh!

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

@PaulWessel
Merge branch 'master' into vertical-slices
22de03c
@PaulWessel
PaulWessel merged commit f6a77e6 into master Oct 22, 2023
@PaulWessel
PaulWessel deleted the vertical-slices branch October 22, 2023 12:09
@maxrjones maxrjones added the add-changelog Add PR to the changelog label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@joa-quim joa-quim joa-quim approved these changes

Uh oh!

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

Assignees

@PaulWessel PaulWessel

Labels

add-changelog Add PR to the changelog new core module feature PR that implements a new core module feature

Projects

None yet

Milestone

6.5.0

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 @joa-quim @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.