You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add an example of the use of pygmt.grdgradient #1425
Cool, this is a good idea! My only suggestion would be to either 1) use a smaller region rather than the whole of Europe if you want to use a high resolution map or 2) keep things to a low resolution (e.g. 10 arc minutes). Mainly because grdgradient can be a processing intensive task that can take some time to run.
If I understand "hillshade" correctly, this script does not produce a hillshade map. Usually, we need to pass the DEM grid to the grid parameter and a gradient/intensity grid to the shading parameter.
this example can be an extension to the Earth relief tutorial or as a separate gallery example.
I agree we should extend the tutorial to show how to add shading to the earth relief map. I think the easiest way is simply adding shading=True to the grdimage call.
I can do both, extend the tutorial with an example that uses shading=True which gives nice output and does not overpopulate the tutorial. from this section of the tutorial, we could refer to a gallery example with more specific use of grdgradient(shading=True use grdgradient to produce intensity grid file)
Activity
weiji14 commentedon Aug 9, 2021
Cool, this is a good idea! My only suggestion would be to either 1) use a smaller region rather than the whole of Europe if you want to use a high resolution map or 2) keep things to a low resolution (e.g. 10 arc minutes). Mainly because
grdgradientcan be a processing intensive task that can take some time to run.seisman commentedon Aug 10, 2021
If I understand "hillshade" correctly, this script does not produce a hillshade map. Usually, we need to pass the DEM grid to the
gridparameter and a gradient/intensity grid to theshadingparameter.I agree we should extend the tutorial to show how to add shading to the earth relief map. I think the easiest way is simply adding
shading=Trueto thegrdimagecall.yohaimagen commentedon Aug 10, 2021
I can do both, extend the tutorial with an example that uses
shading=Truewhich gives nice output and does not overpopulate the tutorial. from this section of the tutorial, we could refer to a gallery example with more specific use of grdgradient(shading=Trueuse grdgradient to produce intensity grid file)