greglucas on main
examples: define 'sample_data' … Merge pull request #2044 from p… (compare)
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
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
21
---> 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
transform=data
for the plotting function calls.
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
fig, ax = plt.subplots(subplot_kw={"projection": ccrs.Robinson()})
ax.coastlines()
patch = plt.Circle((140, 20), 20, color='g',
alpha=0.5, transform=ccrs.PlateCarree().as_geodetic())
ax.add_patch(patch)
ax.set_global()
plt.show()
Hello. I just installed Cartopy on a new MacOS Pro 13", running Monterey. I just tried to copy the tutorial script "https://scitools.org.uk/cartopy/docs/latest/gallery/lines_and_polygons/always_circular_stereo.html", and I'm getting an error at the line where i'm supposed to apply cfeature.LAND,
"PermissionError: [Errno 13] Permission denied: '~/.local/share/cartopy'"
I don't have "cartopy" directory in /.local/share/, which seems like problem. I've tried reinstalling to no avail (using the conda forge), and I haven't seen any similar problems on stack overflow or anything similar. Any ideas on what could be going wrong?