Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gallery example for plotting an RGB image from an xarray.DataArray (
#2641) Gallery example using pygmt.Figure.grdimage to plot an RGB image from a 3-band GeoTIFF loaded into an xarray.DataArray via rioxarray.open_rasterio. Example is over Lāhainā, Hawai'i on 9 Aug 2023. * Add abbreviation for Cloud-Optimized GeoTIFF * Set title font to Times-Roman Makes the unequal spacing before and after the ā less obvious. * Change apostrophe to Okina symbol ʻ See https://en.wikipedia.org/wiki/%CA%BBOkina. Using octal code 140 instead of 047 on the plot title for Hawaiʻi, so that it looks like a 6 instead of a 9, but unsure if this is still the correct Okina symbol. * Inline comment on map scale projection The 1:100000 scale means 1 centimetre on the map is equivalent to 1 kilometre on the ground. * Use ¯ and ` instead of \225 and \140 The non-octal code versions are much easier to see. * Force loading dataarray into memory --------- Co-authored-by: Michael Grund <[email protected]> Co-authored-by: Dongdong Tian <[email protected]> Co-authored-by: Yvonne Fröhlich <[email protected]>
- Loading branch information