Closed davidfee5 closed 4 years ago
I think this can be fixed by replacing ccrs.Geodetic()
withccrs.PlateCarree()
in the offending line. See: https://stackoverflow.com/questions/13657748/contouring-with-cartopy-valueerror-invalid-transform-spherical-contouring-is
Yep, that was easy! I'll create a pull request.
I'm now getting an error on an unsupported transform in produce_dem. Looks like cartopy is unhappy.
"Generating DEM hillshade plot... Traceback (most recent call last):
File "", line 4, in
search_dem = produce_dem(search_grid, external_file=EXTERNAL_FILE, plot_output=True)
File "/Users/dfee/repos/rtm/rtm/grid.py", line 365, in produce_dem ax.scatter(*dem.grid_center, s=50, color='limegreen',
File "/Users/dfee/anaconda/envs/rtm/lib/python3.8/site-packages/cartopy/mpl/geoaxes.py", line 305, in wrapper raise ValueError('Invalid transform: Spherical {} '
ValueError: Invalid transform: Spherical scatter is not supported - consider using PlateCarree/RotatedPole."