grdinterpolate -T documentation
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- cli, documentation
Research direction
Start with the grdinterpolate manual page, especially the current -T description and its first example. Confirm the documented behavior for a single level, level lists, and level files, then update the wording so z-level selection is unambiguous and consistent with the option syntax.
Written by the indexing model from the issue text.
Description
Sorry, not exactly sure how to label this. I have been using grdinterpolate to get 2-d depth slices from 3-d netCDF cubes of seismic tomography models (i.e., with longitude, latitude, depth co-ordinates).
The way to do this, as far as I can tell, is to use grdinterpolate -T[level]. To be fair, there are some clues on the manual page for grdinterpolate that this is the way to do it (e.g., the first example is reasonably clear, and there are some hints in the description of -G), but I don't think it's easy to see from the description of -T that this is the way. It starts to talk about "time-steps" and "times", but then in the second half refers to "layers" — at first reading, I did not understand that this would be the way to choose a z-coordinate (or "level" as this manual page refers to z-coordinates). There is also no mention of choosing a single z-value.
I would like to suggest that the -T description could be improved, but please let me know if I have misunderstood something.
Current text:
**-T**\ [*min/max*\ /]\ *inc*\ [**+i**\|\ **n**] \|\ |-T|\ *file*\|\ *list*
Make evenly spaced time-steps from *min* to *max* by *inc* [Default uses input times].
For details on array creation, see `Generate 1-D Array`_. **Note**: If |-Z| is set
and no output times are set with |-T| we simply rewrite the grid-produced cube as
a 3-D data cube file and exit. Also, for |-E| and |-S| you may also just give
a range via |-T|\ *min/max* to limit the layers considered, with no interpolation
between the selected layers. If |-T| is not given and neither |-E| nor |-S| are
set, then we simply extract all layers within the bounds set by |-R|.
My idea for possible replacement text:
**-T**\ [*min/max*\ /]\ *inc*\ [**+i**\|\ **n**] \|\ |-T|\ *file*\|\ *list*
Create evenly-spaced levels from *min* to *max* by *inc* [Default uses input levels].
Alternatively, provide a comma-separated *list* of levels or a *file* containing levels
to output. A single value specified will result in a single layer being output.
For details on array creation, see `Generate 1-D Array`_. **Note**: If |-Z| is set
and no output levels are set with |-T| we simply rewrite the grid-produced cube as
a 3-D data cube file and exit. Also, for |-E| and |-S| you may also just give
a range via |-T|\ *min/max* to limit the layers considered, with no interpolation
between the selected layers. If |-T| is not given and neither |-E| nor |-S| are
set, then we simply extract all layers within the bounds set by |-R|.
I am not certain about some things:
-
I am inferring from the presence of the options "file|list" that you could specify either a comma-separated list of levels or a file containing levels but I have not checked this.
-
I think the current formatting implies you could select
-T<inc>, whereas instead of an increment it will understand that as a level. -
I assume all the mentions about times/time-steps are legacy from what the option was previously intended for, presumably it is not needed?
Let me know what you think.
Thanks,
Tom
- Dominant language
- C
- Stars
- 997
- Forks
- 420
- Avg merge
- 13h 27m
- Merged PRs (30d)
- 47
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GenericMappingTools/gmt
-
Add support for SCM 9.0.0 to GMTPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
GenericMappingTools/gmt#9316 · 10 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
GenericMappingTools/gmt#5767 · 15 comments ·
Maintainers usually reply within 1 day
-
discussion
Difficulty 5/5 Over a week Newbie friendliness 35/100
GenericMappingTools/gmt#9343 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
GenericMappingTools/gmt#9331 · 1 reaction ·
Maintainers usually reply within 1 day
-
histogram: the min/max setting in -T is ignored when -R is setPossibly taken @seisman claimed this 1 day ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
GenericMappingTools/gmt#9330 · 1 reaction ·
Maintainers usually reply within 1 day
All issues in GenericMappingTools/gmt
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Broken links in reference manualPossibly taken @farisbasha claimed this 14 days ago. Opencore:meson
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mpv-player/mpv#18934 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
libsndfile/libsndfile#1239 ·