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
parser=argparse.ArgumentParser(description='This model simulates additive sampling strategies on a known distribution of artifacts.')
11
11
parser.add_argument('--iters', metavar='integer', type=int, nargs='?', const=3, default=3, help='The number of steps in the additive sampling routine (per iteration)')
12
-
parser.add_argument('--bounds', metavar='integer', type=int, nargs='?', const=300, default=300, help='The size of the sampling universe (a square)')
13
-
parser.add_argument('--padding', metavar='integer', type=int, nargs='?', const=100, default=100, help='The number of additional units to pad the edges of the sampling universe (to allow for grid rotation, etc)')
12
+
parser.add_argument('--bounds', metavar='integer', type=int, nargs='?', const=450, default=450, help='The size of the sampling universe (a square)')
13
+
parser.add_argument('--padding', metavar='integer', type=int, nargs='?', const=50, default=50, help='The number of additional units to pad the edges of the sampling universe (to allow for grid rotation, etc)')
14
14
parser.add_argument('--sampres', metavar='integer', type=int, nargs='?', const=3, default=3, help='The size of each sampling units (also a square)')
15
15
parser.add_argument('--sampint', metavar='integer', type=int, nargs='?', const=50, default=50, help='The interval of the initial sampling units')
16
16
parser.add_argument('--repeats', metavar='integer', type=int, nargs='?', const=100, default=100, help='The number of times to shuffle the grid and resample the distribution (number of iterations for the simulation)')
17
-
parser.add_argument('--sampdist', metavar='map name', type=str, nargs='?', const="", default="", help='The artifact distribution to be sampled (a kernel density map)')
17
+
parser.add_argument('--sampdist', metavar='map name', type=str, nargs='?', const="", default="", help='The artifact distribution to be sampled (a binary presence/absence map or a density map)')
18
+
parser.add_argument('--sites', metavar='map name', type=str, nargs='?', const="Site_areas@gridsim", default="Site_areas@gridsim", help='A binary raster map where areas within sites are coded 1, and areas without are coded 0)')
18
19
# Read in the entered values to internal variables
19
20
args=vars(parser.parse_args())
20
21
iters=args['iters']
@@ -26,6 +27,7 @@
26
27
grass.message("Resampling distance is %s squares"%resamp)
0 commit comments