forked from Craig-Robson/OpenUDM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
110 lines (63 loc) · 2.88 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---Raster header.
first 6 rows from .asc format raster - (rasterHeader.hdr)
ncols val
nrows val
xllcorner val
yllcorner val
cellsize val
NODATA_value -1
all input rasters must be definied by this shared header information.
---Multi Criteria Evaluation Raster Inputs.
in_mce_ras_dbl.csv
'double' type rasters - proximities etc.
table format: asc / csv / weight / convert
if convert is 'y' then named rasters are converted from asc to csv, set to 'n' to speed up when conversion is not required.
in_mce_ras_int.csv
'integer' type rasters - constraints etc.
table format: asc / csv / weight / convert
if convert is 'y' then named rasters are converted from asc to csv, set to 'n' to speed up when conversion is not required.
N.B. weight of -1 must be assigned to the constraint mask, all other weights should sum to 1 across both files.
---UDM Raster Inputs.
in_udm_ras.csv
'integer' type rasters.
table format: asc / csv / convert
if convert is 'y' then named rasters are converted from asc to csv, set to 'n' to speed up when conversion is not required.
N.B. Must contain the following rasters in this order:
1 - constraint mask
2 - zone identity (starting at 0 - corresponding to in_zone_order.csv)
3 - current development
---Zonal Inputs.
in_zone_order.csv
table format: label
zones ordered by label corresponding to zone identity raster.
in_zonal_density.csv
table format: density (people per square metre)
zones ordered by ons_label corresponding to zone identity raster.
in_zonal_pop.csv
table format: initial_pop / final_pop
poplation for each zone - zones ordered by ons_label corresponding to zone identity raster.
---Parameters.
The following can be modified by editing in_params.csv
num_zones = () number of zones
density_provided = () set to 1 when providing zonal density values - otherwise values are calculated from current development raster
min_dev_area = () minimum number of cells to group into development areas within zones
cell_size = () from raster header
num_cols = () from raster header
num_rows = () from raster header
other parameters can be modified by editing udm_solo.py...
moore = () set neighbourhood type when grouping cells into development areas (0 = vonNeumann,1 = Moore).
label_total = () number of columns for in_zone_order.csv.
label_col = () read column for in_zone_order.csv.
pop_total = () number of columns for in_zonal_pop.csv.
cur_pop_col = () current population read column for in_zonal_pop.csv.
fut_pop_col = () future population read column for in_zonal_pop.csv.
bin_ras = (0) leave as 0
unlog_ras = (0) leave as 0
is_driven = (0) leave as 0
reverse = (0) leave as 0
---Outputs.
out_cell_dev.asc - raster output (0 = no dev, 1 = current dev, 2 = future dev)
out_cell_overflow.csv - zones ordered by ons_label corresponding to zone identity raster.
out_cell_metadata.csv - record of all inputs, outputs and parameters.
---Usage
run udm_solo.py script