Closed seisman closed 4 years ago
The script reads the remote file @tut_relief.nc in to xarray and pass it to grdimage. It crashes with shading=True, but works without shading.
@tut_relief.nc
shading=True
import pygmt import xarray as xr pygmt.show_versions() fig = pygmt.Figure() fname = pygmt.which("@tut_relief.nc", download='a') dem = xr.open_dataarray(fname) fig.grdimage(dem, frame='af', projection='M6i', cmap='geo', shading=True, V='d') fig.savefig("shading.png")
Here is the screenshot showing where it crashes:
It crashes at line 627 in grdgradient.c:
Related variables:
Do you know if the variable new_grid is true?
Yes, it's true.
true
The script reads the remote file
@tut_relief.nc
in to xarray and pass it to grdimage. It crashes withshading=True
, but works without shading.Here is the screenshot showing where it crashes:
It crashes at line 627 in grdgradient.c:
Related variables: