Cartopy instability issues #2225
josivan-lima
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I spent years using a code that used cartopy to generate images, but now it is presenting problems with Geoaxes. Sometimes it works and other times it presents the following error:
NameError Traceback (most recent call last)
in <cell line: 0>()
33
34
---> 35 ax = cartoee.get_map(img_sub, proj=ccrs.PlateCarree(), region=region, vis_params=vis_sub)
36 cartoee.add_layer(ax, img, proj=ccrs.PlateCarree(), region=region, vis_params=vis_param)
37 logo = mpimg.imread('/content/drive/MyDrive/logo_lg/lgsonic-dark.png')
1 frames
/usr/local/lib/python3.11/dist-packages/geemap/cartoee.py in add_layer(ax, ee_object, dims, region, cmap, vis_params, **kwargs)
235 raise ValueError("provided dims not of type list, tuple, or int")
236
--> 237 if type(ax) not in [GeoAxes, GeoAxesSubplot]:
238 raise ValueError(
239 "provided axes not of type cartopy.mpl.geoaxes.GeoAxes "
NameError: name 'GeoAxes' is not defined
Beta Was this translation helpful? Give feedback.
All reactions