EarthML
EarthML copied to clipboard
03 Alignment and Preprocessing proj error
crs = gv.util.proj_to_cartopy(landsat_8_da.crs)
generated
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-11-d99b01f392df> in <module>
----> 1 crs = gv.util.proj_to_cartopy(landsat_8_da.crs)
C:\ProgramData\Anaconda3\envs\earthml\lib\site-packages\geoviews\util.py in proj_to_cartopy(proj)
453 proj = check_crs(proj)
454
--> 455 if proj.is_latlong():
456 return ccrs.PlateCarree()
457
AttributeError: 'Proj' object has no attribute 'is_latlong'
See https://github.com/pytroll/pycoast/pull/28; I think we either need a later geoviews version that doesn't use the outdated is_latlong call, or to pin pyproj to an older version where that method still existed.