EarthML icon indicating copy to clipboard operation
EarthML copied to clipboard

03 Alignment and Preprocessing proj error

Open thomasastanley opened this issue 5 years ago • 1 comments

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'

thomasastanley avatar Jan 22 '20 18:01 thomasastanley

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.

jbednar avatar Jan 22 '20 19:01 jbednar