fig.savefig('/tmp/data.png')I think blocks until the buffer is fully written to disk. To compare all of these cases you'll really need to read up a lot more about profiling all of these various libraries because all of them do different things under the hood that may be beneficial in certain ways, like blitting or re-using the same canvas. If you're writing to disk or just showing an in-memory representation.
When I plot a high resolution satellite image (tiff format) in imshow and save as jpeg with very high dpi (1000) the quality of the image is retained.
But when I plot the same image with cartopy the image is resampled (I assume onto the resolution of the lat-lon grid) and I loose alot of image quality.
Please could some one advice me how to plot a high resolution sat. image in cartopy retaining the original image quality?
Thank you very much!
regrid_shapeargument that is likely what you want to look into: https://scitools.org.uk/cartopy/docs/latest/reference/generated/cartopy.mpl.geoaxes.GeoAxes.html#cartopy.mpl.geoaxes.GeoAxes.imshow
Hi all, i want to test some modification on cartopy, so i forked the project and did
python setup.py install to install it localy.
I got a error
ModuleNotFoundError: No module named 'cartopy._version'
I saw that in v0.18 there was a file
_version.py in the cartopy project, but there isn"t anymore. Do i have to do extra step to use it locally ? Thanks
setuptools-scmto be installed.
TypeError: Dimensions of C (300, 400) are incompatible with X (401) and/or Y (301); see help(pcolormesh)
UserWarning: SRTM requires an account set up and log in to access. Use of this Downloader is likely to fail with HTTP 401 errors. warnings.warn('SRTM requires an account set up and log in to access.. I have looked at the documentation thoroughly and i can't find anything regarding this. Is there a new version of the srtm_shading example? Thanks.
urlopen, so you can set a password override using that
Hello, someone how can I solve this problem?
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.24.0 -- An enhanced Interactive Python. Type '?' for help.
ImportError Traceback (most recent call last)
<ipython-input-1-139fa5ad2567> in <module>
----> 1 import cartopy.crs as ccrs
~/.local/lib/python3.8/site-packages/cartopy/init.py in <module>
102 # Commonly used sub-modules. Imported here to provide end-user
103 # convenience.
--> 104 import cartopy.crs
105 import cartopy.feature # noqa: F401 (flake8 = unused import)
~/.local/lib/python3.8/site-packages/cartopy/crs.py in <module>
20 from shapely.prepared import prep
---> 22 from cartopy._crs import (CRS, Geodetic, Globe, PROJ4_VERSION,
23 WGS84_SEMIMAJOR_AXIS, WGS84_SEMIMINOR_AXIS)
24 from cartopy._crs import Geocentric # noqa: F401 (flake8 = unused import)
ImportError: libproj.so.19: cannot open shared object file: No such file or directory