-
Notifications
You must be signed in to change notification settings - Fork 348
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
nearneighbor search radius unit ignored #105
Comments
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. We appreciate that you took the time to contribute! |
If your data are Cartesian, why are you giving a unit? The e, k, M, and other units are only needed if you are providing geographic data in lon,lat format. For Cartesian data the increment is used as is. |
I'm confused. So e.g. |
It is the Default unit for geographic data. For Cartesian data there cannot possibly be a default units since how would we know if it is time, distance, weight, chemical concentrations, etc etc. |
Alright. Dont know why I got so confused about this. |
If not given, the default
nearneighbor
search radius unit is in meter (http://gmt.soest.hawaii.edu/doc/latest/nearneighbor.html). Specifying the unit (e) makes nearneighbor think its dealing with geographic data. Both cases should be in cartesian data.nearneighbor -I.2 dat -S20e -R0/100/0/100 -Vd -Gwith_e_debug.nc
outputs
The diff between the two commands
nearneighbor -I.2 dat -S20e -R0/100/0/100 -Vd -Gwith_e_debug.nc
andnearneighbor -I.2 dat -S20e -R0/100/0/100 -Vd -Gwith_e_debug.nc
(one with the UNIT specified and the other not) givesScript to produce the diff with included dummy_data.txt:
The text was updated successfully, but these errors were encountered: