Comments (12)
nearneighbor [INFORMATION]: Your distance unit (e) implies geographic data; -fg has been set.
Well, I think explains the different behavior.
from gmt.
Ok, but shouldn't this be set with both -S200e
and -S200
?
from gmt.
The first one is for geographic input data (long and lat). The second for Cartesian (X and Y).
from gmt.
Alright. Thanks Esteban.
from gmt.
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.
from gmt.
from gmt.
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.
from gmt.
So, yes, a confusing situation.
Appreciate you saying that.
from gmt.
-
So for nearneighbor's -S, maybe we could:
- Change -Ssearch_radius to -Ssearch_radius[unit]. Since the unit is not mandatory, after all. Might even be an error to use a unit, if the data is (already) projected.
- Change "Append the distance unit (see [Units])." --> "Append the distance unit if input is geographical (see [Units]).", or something like that.
Both of these to help the user understand that if the data is already projected, no unit is to be appended.
-
It puzzles me that the generic Unit text says meter is [Default unless stated otherwise]. As @joa-quim stated above (and I experienced), -S200 is not at all the same as -S200e. Maybe this is special for nearneighbor.
I can do the changes if you agree.
from gmt.
#8374 deals with the docs. Iβm not able to make any changes for the cli, since this involves messing with the souce code.
from gmt.
I've committed the C changes directly to master.
from gmt.
Thanks!
from gmt.
Related Issues (20)
- Link Checker Report on 2024-02-25 HOT 1
- grdcontour hanging HOT 5
- Link Checker Report on 2024-03-03
- Release of GMT 6.5.1 needed?
- Movie. ffmpeg "Thread message queue blocking" HOT 1
- Bug in Movie -MPNG (with transparency layer)
- How to add legend and scale to the map. HOT 2
- Let Movie only assemble animation (or make a dry run).
- Link Checker Report on 2024-03-10
- Basemap fails with Mollweide projection across prime meridian or negative longitude defining both central meridian and range HOT 5
- Link Checker Report on 2024-03-17
- grdimage [ERROR]: Option -Q: Cannot specify a transparent color for grids when intensities are also used HOT 2
- gmtinfo - extended regions are not correctly output with -C HOT 2
- Setting scale bar's font color HOT 4
- Link Checker Report on 2024-03-24
- Rotations with grdview clips images depending on projection and -Q variant
- Oblique projection (Ob): Partly wrong annotations
- Link Checker Report on 2024-03-31 HOT 2
- Link Checker Report on 2024-04-07
- Move all long2short (l2s) tests into a separate test directory? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmt.