I would like to create a contour plot. I have a .txt file with 3 columns (1st with Latitude, 2nd with longtitude and 3rd with several values from 1-20). I would like to create a contour plot (XYZ) for the 3rd column.
GMT 5? Please update to GMT 6.4 as we would not be able to fix any problems in an ancient GMT version. Although that is probably not the source of the problem. If it ends up being a problem in 6.4 (which I very much doubt) then we will of course address it.
While your GMT version might be ancient, your command syntax looks even older (GMT3?). Again, should not matter but be aware that you are a decade behind.
From gsview64 I am guessing this is Windows.
Things going wrong 1: When you ran xyz2grd on data.txt, did you use -i1,0,2 or -: to fix the backwards lat, lon order?
Things going wrong 2: If z goes 1-20, how about makecpt -Crainbow -T1/20 > data.cpt ?
Yes I am using GMT5 in windows. I found these commands, but I do not know how to syntax them . That’s why I am asking for help…
What did you mean by “ix the backwards lat, lon order?”
Sorry, but I am confused. Could you please tell me what should I do in order to plot the contours in GMT?
I am difficult to syntax the above mentioned commands…
Looks good to me. Perhaps your data and CPT do not match. Other that that we have no information to guess what is going wrong. Please show the result of
So -Jl requires 5 arguments and you are giving it 3 and you want me to tell you that 3 is not 5? Just read the error message and fix your projection setting.
But you are not even giving xyz2grd a grid increment but just a blank -I and you are getting a specific error message back! I cannot do your work for you, but we can offer help. But if the error message is staring you in the face and you do not act on it, what am I supposed to do? I do not know your data, I do not know what is a sensible grid interval, but you should. Try -I1 for starters (1x1 degree grid). The rest of the errors are due to the first error.