POST
|
I am trying to select a value of 2 from a raster (tif) using model builder, and then adding these rasters together, I cant seem to find how to select out the value = 2 to start with, any help please ?
... View more
01-18-2024
07:03 PM
|
0
|
1
|
198
|
POST
|
I need to concatenate 8 or 9 fields, using "/" between the text, and no spaces if it is blank, the following code had worked, but has since failed. def update(a, b, c, d, e, f, g, h): strArray = [] if a != ' ': strArray.append(a + "/") if b != ' ': strArray.append(b + "/") if c != ' ': strArray.append(c + "/") if d != ' ': strArray.append(d + "/") if e != ' ': strArray.append(e + "/") if f != ' ': strArray.append(f + "/") if g != ' ': strArray.append(g + "/") if h != ' ': strArray.append(h + "/") str = "".join(strArray) str = str.strip() str = str.lstrip("/") str = str.rstrip("/") return str BFS_concat = update(!GDE_01B!, !GDE_02B!, !GDE_03B!, !GDE_04C!, !GDE_05B!, !GDE_07B!, !GDE_08B!, !GDE_09B!) Any ideas please ? Cheers Brad
... View more
05-08-2023
09:37 PM
|
0
|
1
|
244
|
POST
|
I am attempting to concatenate fields in a feature class. The item to be calculated is T_GDE_con and has 18 possible single entries, plus the concatenated entries, from 18 fields. Any insight please ? update([GDE_01C], [GDE_01D], [GDE_02C], [GDE_02D], [GDE_03C], [GDE_03D], [GDE_04D], [GDE_04E], [GDE_04F], [GDE_04G], [GDE_05C], [GDE_05D], [GDE_07C], [GDE_07D], [GDE_08C], [GDE_08D], [GDE_09C], [GDE_09D]) PRE LOGIC script code def update(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r): strArray = [ ] if a != ' ': strArray.append(a + "/") if b != ' ': strArray.append(b + "/") if c != ' ': strArray.append(c + "/") if d != ' ': strArray.append(d + "/") if e != ' ': strArray.append(e + "/") if f != ' ': strArray.append(f + "/") if g != ' ': strArray.append(g + "/") if h != ' ': strArray.append(h + "/") if i != ' ': strArray.append(i + "/") if j != ' ': strArray.append(j + "/") if k != ' ': strArray.append(k + "/") if l != ' ': strArray.append(l + "/") if m != ' ': strArray.append(m + "/") if n != ' ': strArray.append(n + "/") if o != ' ': strArray.append(o + "/") if p != ' ': strArray.append(p + "/") if q != ' ': strArray.append(q + "/") if r != ' ': strArray.append(r + "/") str = "".join(strArray) str = str.strip() str = str.lstrip("/") str = str.rstrip("/") return str
... View more
04-07-2020
10:05 PM
|
0
|
2
|
337
|
POST
|
I cannot do a simple UNION function using the shapefiles, into either a new shapefile or into a personal geodatabase
... View more
03-18-2020
09:43 PM
|
0
|
1
|
537
|
Title | Kudos | Posted |
---|---|---|
1 | 07-12-2023 04:51 PM |
Online Status |
Offline
|
Date Last Visited |
01-19-2024
03:32 AM
|