-
Notifications
You must be signed in to change notification settings - Fork 95
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
set_quantity() #208
Comments
@Dongxueyang the following should work to set the stage within the polygon to a value. polygon = anuga.read_polygon('extent.csv') There is another procedure Set_stage which actually creates an object which will set teh stage when required. stage_setter = Set_stage(domain, stage=value, polygon=polygon) then later do this stage_setter() to actually set the centroids within the polygon to the given value (which can be a function of x,y |
@stoiver Thanks a lot. Your adivece is helpful and my porblem has been solved. Best regards. |
@stoiver |
Hi all:
@stoiver
I want to use a polygon to set stage and I write like this in model file:
polygon = anuga.read_polygon('extent.csv')
domain.set_quantity('stage',polygon)
I know it was wrong. But I do not know which parameters should I prepare to input this function.
So is it possible to set const stage inside a polygon. (I see polygon in file quantity.py about the function set_quantity())
And what is the format of polygon file. which information should be included in polygon file.
Best regards
dong
The text was updated successfully, but these errors were encountered: