-
Notifications
You must be signed in to change notification settings - Fork 342
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
Specifying nearneighbor -S, unit not understood? #8350
Comments
Well, I think explains the different behavior. |
Ok, but shouldn't this be set with both |
The first one is for geographic input data (long and lat). The second for Cartesian (X and Y). |
Alright. Thanks Esteban. |
Maybe the -S docs should say -Ssearch_radius[unit] to indicate that the unit is optional (relevant if your input is geographic coordinates). I get confused since it looks like the unit is mandatory. Since my input data is in meters, I use the unit e. But since its already projected, this is wrong. |
@joaquim, thoughts?
…On 6 February 2024 at 23:35:41, anbj ***@***.***) wrote:
Maybe the -S docs should say *-Ssearch_radius[unit]* to indicate that the
*unit* is optional (relevant if you’re input is geographic coordinates).
—
Reply to this email directly, view it on GitHub
<https://urldefense.com/v3/__https://github.com/GenericMappingTools/gmt/issues/8350*issuecomment-1930885052__;Iw!!PvDODwlR4mBZyAb0!VjhAft7Itgfcrz5OqU80cg68sDtF2m4jJqQVUiuL_OcF1m9L2JsIW2btU_ZfaYB2CH-a1rc_1UNUWYpDrVc_NAYsaQ$>,
or unsubscribe
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AGJ7IXYG5JGY4VPVBTAAQNLYSKV33AVCNFSM6AAAAABC3YWQJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZQHA4DKMBVGI__;!!PvDODwlR4mBZyAb0!VjhAft7Itgfcrz5OqU80cg68sDtF2m4jJqQVUiuL_OcF1m9L2JsIW2btU_ZfaYB2CH-a1rc_1UNUWYpDrVcUjxSvtw$>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
The issue here is that saying -Se is the default is false. That message comes from a generic text that is imported into all modules that use units. The default -S for nearneighbor is the data units, and probably converted to meters when it knows input is geogs but likely not if it doesn't know that. So, yes, a confusing situation. |
Appreciate you saying that. |
I can do the changes if you agree. |
#8374 deals with the docs. I’m not able to make any changes for the cli, since this involves messing with the souce code. |
I've committed the C changes directly to master. |
Thanks! |
Using nearbeighbor, -S must have a unit. Meter, -Se is default unless stated otherwise.
-S200e
gives an empty grid, while-S200
gives a good grid (which is -S200e under the hood?).Good:
Bad:
The text was updated successfully, but these errors were encountered: