Hello!
I am new to GMT and I am only aware of how to import external files for different color gradients in a map.
But, I want to import my values and display them in color gradients for a different latitude and longitude. Can you please help me to create similiar plots as in image?
Hey @Sujata, can you elaborate a little more ?
If I understood, you have an external file with your own data (in a gird format ? or XYZ triplets ?).
Depending of your answer there are different solutions.
Basically you have to turn your points into a grid (x = longitude, y = latitude and z = your data) and use grdimage or grdcontour. But deciding what to do first depends on what kind of data you have.
Note that you should have an idea beforehand about the spatial distribution of your data, as the grid spacing argument will profoundly interfere with your interpolation (in terms of quality).
You can also use psxy to at least plot this distribution. Large spaces between data will return bad grids. Ideally, you should also prepare your file to contain longitude, latitude, error (in that order) as it will be interpreted as x = longitude, y = latitude, z = your data, so you can build an efficient grid.