holoviz-topics / EarthML

Tools for working with machine learning in earth science
https://earthml.holoviz.org
BSD 3-Clause "New" or "Revised" License
94 stars 21 forks source link

03 Alignment and Preprocessing proj error #99

Open thomasastanley opened 4 years ago

thomasastanley commented 4 years ago

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'
jbednar commented 4 years ago

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.