| bio | website | |
|---|---|---|
| location | Halifax, Canada | |
| age | ||
| visits | member for | 1 year, 11 months |
| seen | Mar 15 '12 at 11:08 | |
| stats | profile views | 24 |
|
Nov 27 |
awarded | Popular Question |
|
Aug 30 |
awarded | Notable Question |
|
Jan 10 |
comment |
How do I assign attributes from hydrologic sinks to upstream features? There are in some cases multiple barriers associated with one sink (a large river network with numerous road crossings). The watershed boundaries in some cases do have multiple sinks as this is a coastal area and there may be many small streams emptying into the ocean in one delineated watershed. I could divide the watersheds up so that there's only one sink (pour point) per watershed and then associate the barriers with watersheds, as you suggested. I probably should have split the watersheds earlier. |
|
Jan 10 |
comment |
How do I assign attributes from hydrologic sinks to upstream features? Sorry that wasn't clear @whuber. The Sinks (green points) are the outflow points for streams and rivers. Barriers (red triangles) are points of obstruction (culverts, etc.). The gold boundaries are just watershed boundaries. |
|
Jan 10 |
asked | How do I assign attributes from hydrologic sinks to upstream features? |
|
Jul 21 |
awarded | Popular Question |
|
Jul 18 |
comment |
ArcMap Field Calculator syntax (again) @mike-toews I used your note about line breaks and using parentheses to keep the lines to ~79 chars. But I couldn't get it to work on the def line. def label(landuse, subuse, cov1, per1, cov2, per2, height, history, covertype, hectares, draintype): I tried using them before the word "label" and before the other opening parthesis but neither worked. Thoughts? |
|
Jul 18 |
comment |
ArcMap Field Calculator syntax (again) Thanks all (@gotchula, @mike-toews). After much playing with indentation and such I got my 16 or 17 elif statements to evaluate, based on the model of gotchula's code above. |
|
Jun 24 |
comment |
ArcMap Field Calculator syntax (again) Sorry gotchula for the poorly parsed reply but I haven't worked out formatting in the comment field. The Python statement I grabbed from the Results window. |
|
Jun 24 |
comment |
ArcMap Field Calculator syntax (again) Hmm, got a Python syntax error. When you say "put this in your expression" I assume that means it goes in the bottom part of the window (e.g. where it says "Newfield ="). Python statement was arcpy.CalculateField_management("Landcover","NewField","conditionalupdate(!COVER1!, !COVER2!, !DRAINTYPE!, !NewField! )","PYTHON_9.3","def conditionalupdate(cov1, cov2, draintype, testkey): if cov1 in ['WWW', 'OWW', 'SFW', 'WAT']: return 'Wetland'/n elif (cov2 in ['WS', 'BF', 'CE', 'LA']) and (draintype in ['IMPERFECT','POOR']) and (testkey != 'Wetland'): return 'Forest1' else: return '??' |
|
Jun 23 |
comment |
ArcMap Field Calculator syntax (again) @artwork21, yup, the main statement was in the Pre-Logic Script code section (ArcMap 10) and I have now got that first part to execute properly. Now I just need to try stringing a series of these together. P. Greyson |
|
Jun 22 |
awarded | Student |
|
Jun 22 |
asked | ArcMap Field Calculator syntax (again) |
|
Nov 4 |
asked | Field Calculator syntax |