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

Enable longoptions support for grdedit. #8221

Merged
merged 2 commits into from
Jan 8, 2024
Merged

Conversation

rbdavis
Copy link
Contributor

@rbdavis rbdavis commented Dec 21, 2023

Description of proposed changes

Python differences:

No Python module.

Julia differences:

Changed -C adjust_inc (Julia doc error?) to cmdhist|command_history.

Changed -D header (conflict with common longoptions) to
netcdf|netCDF|ncheader.

Changed -E header (conflict with common longoptions) to transform.

Changed -S wrap (conflict with common longoptions) to lonshift_region.

Changed -T toggle_reg to match existing grdfilter longoptions
toggle_registration|toggle.

Fixes #

Reminders

  • Make sure that your code follows our style. Use the other functions/files as a basis.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Describe changes to function behavior and arguments in a comment below the function declaration.
  • If adding new functionality, add a detailed description to the documentation and/or an example.

@rbdavis rbdavis requested a review from a team December 21, 2023 01:31
{ 0, 'G', "",
"", "",
{ 0, 'E', "transform",
"a,e,h,l,r,t,v", "hvflip,xyswap,hflip,rot90counterclock,rot90clock,transpose,vflip",
Copy link
Contributor

Choose a reason for hiding this comment

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

the rot90... becomes very long.
Can we do (at least as alternative) "rotleft" and "rotright". It should be obvious that it is by 90º.

Copy link
Member

Choose a reason for hiding this comment

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

****Maybe rot90ccw and rot90cw are more specific than just a rotation of unspecific value. I agree that rot90counterclock is too long and even not long enough since it begs for the "wise" at the end.

Copy link
Contributor

Choose a reason for hiding this comment

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

Well, it would be hard to rotate a 2D grid by anything else than increments of 90º. But, yes, I would also prefer "rot90ccw" and "rot90cw"

Copy link
Member

@PaulWessel PaulWessel left a comment

Choose a reason for hiding this comment

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

Please revise the rotations as suggested in the comment.

@rbdavis rbdavis merged commit 0d08687 into master Jan 8, 2024
6 checks passed
@rbdavis rbdavis deleted the longopts-grdedit1220 branch January 8, 2024 21:02
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.

None yet

3 participants