Please use https://forum.generic-mapping-tools.org to ask questions, this gitter channel will not be monitored anymore.
projection="W8i"
. For people who are only interested in running pygmt in a notebook, the size of the image isn't too important: just as you don't specify an image size when using things like imshow, it would probably be best to set this to some default value. Perhaps a better way to specify the options would be to use something like projection="W", size="8i"
.
pygmt.clib
module. I'm not very happy with it and I think you both probably have noticed that it has some design flaws. A priority for me for the following months is to see what could be done about it. Since that's the core of our package, it would be great to have that be pretty stable for our 0.1 release after GMT 6 is finally out. What do you think?
da.squeeze()
da
:da
has three dimensions: band
, x
, and y
. You should be able to use da.squeeze()
to remove the length-1 dimension band
. Then your grdimage
command should work since you'll have a legitimately 2D array. xarray
docs are not great on this, so here's the docs for the equivalent numpy
command documentation. Let me know if that helps!
xarray
may be able to handle some of the cases you use xyz2grd for, I'd recommend checking it out.
legend
module has just been implemented today (thanks @liamtoney!) and colorbar
is just awaiting review (see GenericMappingTools/pygmt#332) before it gets merged in so hopefully soon. As for xyz2grd
, if you'd like to open an feature request on Github here we can start working on it (though I must warn you it might take a while...). Depending on your use case though, @liamtoney is right that xarray
might have a way to do it.
mark-wieczorek
You can also check out the numerous examples on https://www.generic-mapping-tools.org/ if you are ok with using the command line.
mark-wieczorek
I see that the xarray dataaccessor has been merged to master, but what else needs to be done?
mark-wieczorek
And is there a rough ETA as to when pygmt 0.2.0 will be released?
i am facing issue in using pygmt in windows os
Error:-
GMTCLibNotFoundError: Error loading the GMT shared library 'gmt.dll, gmt_w64.dll, gmt_w32.dll':
Actually i want to make my .tiff or .png image generated from matplotlib to geotiff file format with projection ,
can i be able to do the above requirement through pygmt ?
For more detail you can visit below link:-
https://stackoverflow.com/questions/64733639/rgb-tif-to-geotif-and-removing-the-background-color
Thank you.