-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r.surf.volcano: port from grass6 addons shell script #1202
base: grass8
Are you sure you want to change the base?
Conversation
Nice! |
MN: for addons, the full URL to core modules is needed here Co-authored-by: Markus Neteler <[email protected]>
Hi Markus, What do you like that to look like? Just some dummy values to see if it completes with exit code 0 or some r.univar or 'r.stats -Ac nsteps=10' analysis to see that the output is within expected bounds? |
Yes, something simple would be great. This quite helps to be able to quickly test also other changes which might indirectly affect this addon. |
Yeah, I know, but I don't enjoy working with Python.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to see this one back.
# # FIXME: ok, it isn't really kurtosis but it's similar and I couldn't | ||
# # think of a better name. | ||
# %Option | ||
# % key: kurtosis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about slope_steepness
?
sigma = options["sigma"] | ||
kurtosis = options["kurtosis"] | ||
|
||
tmp_base = "tmp__rsv_%d" % os.getpid() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gs.append_node_pid will work on clusters.
from grass.script import core as gc | ||
from grass.script import raster as gr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from grass.script import core as gc | |
from grass.script import raster as gr | |
import grass.script as gs |
is what is usually used for simplicity.
I find this module quite useful for creating synthetic surfaces for testing a variety of other modules.