-
Notifications
You must be signed in to change notification settings - Fork 340
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
grdcontour -C & externals is wrong #3701
Comments
Think the -N predates one-liners... |
Works in both classic and modern mode but not for one-liner. Problematic with one-liner syntax here since it ends up being two module calls. |
|
grdcontour clobbers the grid, subtracting out values etc. etc. |
So So, even if grdview alone is screwing because it's changing the external array without asking if it can. Not a big deal for me (for the time being) in Julia because I had to make a copy due to the transposition story. |
yes, there needs to be a check on the alloc_mode for those grids and if it detects external then make a copy. Sorry, deep in other shits and meetings. |
But it's already making a copy. |
OK, but I think I need to try this in matlab or something to learn what it is doing and if we can be smarter. |
One clever thing to do is not call grdcontour a second time. It is silly to do |
Well, if you think it is good use of your time to figure out how grdview module can somehow pass contours back to grdcontour in a form that grdcontour can understand (it traces and does lots of things differently than grdview, not to mention annotations) then knock yourself out and make a branch. I am willing to fix the current problem that fails in Julia and presumably Matlab, but seriously? Rewriting lots of code for what? Saving someone 2 Mb of memory? |
If we did not care about contour annotations then there would be no need for the whole -N business in the first place. |
First example in Matlab's contourf had no annotations |
That will be our end of times discussion. Never contested the ratio amount-of-work/memory-saved ratio (specially when it's not my work) but when 2 GB count to make the difference, "Hoops it doesn't work in GMT", I'll still think memory savings are important. |
I understand, but it would truly require someone to sit in Julia and waning to make a colored contour-map of earth_relief_30s or something. That only makes since if you are making a poster map at large scale. Is that the typical use? |
I'll manage to work around with separate |
See, efficiency counts for some people |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
Reading grid from file it's (nearly) OK. Nearly because the aliasing is clearly visible
![p_good](https://user-images.githubusercontent.com/537321/88121141-be95cd00-cbbc-11ea-8d3a-4ad584b6abe3.png)
Now do the same but using data in memory.
Finally, another bug is when trying to do the same as a modern one liner
Here it creates two separate figures. One with the colors and another with the contours.
The grid is here but not zipped. Just remove the
.zip
(needed to cheat github)peaks.grd.zip
The text was updated successfully, but these errors were encountered: