|
POST
|
Hi Alexander Before the error message, has any of your longest flow paths been generated or does it fail on the first flow path. You might want to check using your flow direction grid and the flow path trace tool on the Arc Hydro toolbar that the terrain is not flat and Arc Hydro is battling in determining a flow path. Regards
... View more
03-24-2015
09:32 PM
|
0
|
1
|
6190
|
|
POST
|
Hi Alexander Just a thought, is your DEM floating point or integer. If its a floating point try to convert it to integer and rerun your model. Regards
... View more
03-24-2015
10:31 AM
|
0
|
4
|
6190
|
|
POST
|
Hi Alexander I can confirm that I too had problems with batch subwatersheds. Christine suggested that I use 10.2.0.96 as the bug was resolved. I've tested it and batch subwatersheds behave as expected. You've most likely have run into a bug due to changes that have been made to Arc Hydro. Give it a try as I'm sure it will resolve the problem that you are having until Christine and the team can identify what's causing problem. Regards
... View more
03-24-2015
10:29 AM
|
0
|
0
|
6190
|
|
POST
|
Hi Alexander I had similar issues with longest flow path which was resolved by installing the latest version of Arc Hydro. I'm not sure what version you are running, but I can confirm that 10.2.0.96 is stable and that I'm daily using the Longest Flow Path tool from Arc Hydro for my analysis. You can download the following from ESRI ftp server: Updated Arc Hydro ftp password - February, 27 2015 Regards Peter Wilson
... View more
03-24-2015
08:46 AM
|
0
|
7
|
6190
|
|
POST
|
Hi Joshua Thanks for the following, its truly appreciated, I had not idea it would be that easy to create the Structured NumPy Array. I'm going to be using the following a lot in the future. Regards Peter Wilson
... View more
03-13-2015
12:30 AM
|
0
|
3
|
5580
|
|
POST
|
Background: I've used the Near Analysis tool which has added the following fields: NEAR_X (X Coordinate) NEAR_Y (Y Coordinate) I'd like to use the following fields from the output of using the Near Analysis tool to generate a Structured NumPy Array: HydroID (Unique ID: Long Integer) NEAR_X (X Coordinate) NEAR_Y (Y Coordinate) I've read through the ESRI online help documentation on: Working with NumPy in ArcGIS TableToNumPyArray , and I'm unable to figure out how to generate a Structured NumPy Array that I can use as input to NumPyArrayToFeatureClass. The Structured NumPy Array format that is required as input to NumPyArrayToFeatureClass is: array = numpy.array([(1, (471316.3835861763, 5000448.782036674)),
(2, (470402.49348005146, 5000049.216449278))],
numpy.dtype([('idfield',numpy.int32),('XY', '<f8', 2)])) From what I gathered the coordinates are stored as tuples within the Structured NumPy Array. I'm still learning to code so any assistance in how to covert my data into a Structured NumPy Array that I may use as input into NumPyArrayToFeatureClass will be appreciated. Regards PeterW
... View more
03-12-2015
10:18 AM
|
0
|
5
|
14650
|
|
POST
|
To anyone that might be interested in using the following. Tony Desilva answered my question on the Stack Overflow website. The problem was that my ID's were to long, they started at 10000 and were being inserted into the Overlaps field to indicate the Watersheds that were being overlapped. I reduced my ID's to thousands and the script ran successfully. Regards Peter Wilson
... View more
03-12-2015
02:47 AM
|
0
|
0
|
1020
|
|
POST
|
@I'm trying to assign my Watersheds polygon into regions of non overlapping polygons. I'm currently using the ESRI Spatial Analyst Supplemental Tools New Spatial Analyst Supplemental tools, v1.3 | ArcGIS Blog The Zonal Statistics Tool 2 implements the grouping of the overlapping polygons to generate non overlapping polygons to run the Zonal Statistics, but I'm unable to following the logic that that's being used as I'm still new to Python. I've also found the following link on the Stack Overflow website and download the sample code: arcgis desktop - Exploding overlapping to new non-overlapping polygons? - Geographic Information Systems Stack Exchange I've made amendments to the source code from the Stack Overflow website: import os
import arcpy
from arcpy import GetParameterAsText
fc = GetParameterAsText(0)
idName = GetParameterAsText(1)
dirname = os.path.dirname(arcpy.Describe(fc).catalogPath)
desc = arcpy.Describe(dirname)
if hasattr(desc, "datasetType") and desc.datasetType=='FeatureClass':
dirname = os.path.dirname(dirname)
arcpy.env.workspace = dirname
def countOverlaps(fc,idName):
intersect = arcpy.Intersect_analysis(fc,'intersect')
findID = arcpy.FindIdentical_management(intersect,"explFindID","Shape")
arcpy.MakeFeatureLayer_management(intersect,"intlyr")
arcpy.AddJoin_management("intlyr",arcpy.Describe("intlyr").OIDfieldName,findID,"IN_FID","KEEP_ALL")
segIDs = {}
featseqName = "explFindID.FEAT_SEQ"
idNewName = "intersect."+idName
for row in arcpy.SearchCursor("intlyr"):
idVal = row.getValue(idNewName)
featseqVal = row.getValue(featseqName)
segIDs[featseqVal] = []
for row in arcpy.SearchCursor("intlyr"):
idVal = row.getValue(idNewName)
featseqVal = row.getValue(featseqName)
segIDs[featseqVal].append(idVal)
segIDs2 = {}
for row in arcpy.SearchCursor("intlyr"):
idVal = row.getValue(idNewName)
segIDs2[idVal] = []
for x,y in segIDs.iteritems():
for segID in y:
segIDs2[segID].extend([k for k in y if k != segID])
for x,y in segIDs2.iteritems():
segIDs2 = list(set(y))
arcpy.RemoveJoin_management("intlyr",arcpy.Describe(findID).name)
if 'overlaps' not in [k.name for k in arcpy.ListFields(fc)]:
arcpy.AddField_management(fc,'overlaps',"TEXT")
if 'ovlpCount' not in [k.name for k in arcpy.ListFields(fc)]:
arcpy.AddField_management(fc,'ovlpCount',"SHORT")
urows = arcpy.UpdateCursor(fc)
for urow in urows:
idVal = urow.getValue(idName)
if segIDs2.get(idVal):
urow.overlaps = str(segIDs2[idVal]).strip('[]')
urow.ovlpCount = len(segIDs2[idVal])
urows.updateRow(urow)
countOverlaps(fc,idName)
def explodeOverlaps(fc,idName):
countOverlaps(fc,idName)
arcpy.AddField_management(fc,'expl',"SHORT")
urows = arcpy.UpdateCursor(fc,'"overlaps" IS NULL')
for urow in urows:
urow.expl = 1
urows.updateRow(urow)
i=1
lyr = arcpy.MakeFeatureLayer_management(fc)
while int(arcpy.GetCount_management(arcpy.SelectLayerByAttribute_management(lyr,"NEW_SELECTION",'"expl" IS NULL')).getOutput(0)) > 0:
ovList=[]
urows = arcpy.UpdateCursor(fc,'"expl" IS NULL','','','ovlpCount D')
for urow in urows:
ovVal = urow.overlaps
idVal = urow.getValue(idName)
intList = ovVal.replace(' ','').split(',')
for x in intList:
intList[intList.index(x)] = int(x)
if idVal not in ovList:
urow.expl = i
urows.updateRow(urow)
ovList.extend(intList)
i+=1
explodeOverlaps(fc,idName) but I'm receiving the following error message and I'm unable to resolve it. I'd really appreciate assistance in resolving the following as I'm still new to python. Regards Peter Wilson
... View more
03-11-2015
05:55 AM
|
0
|
1
|
4422
|
|
POST
|
Hi Mal I can confirm the following. If you downloaded the latest version for ArcGIS 10.2.2 version 10.2.0.96 from the ESRI FTP it has been resolved. https://community.esri.com/thread/89906 Regards Peter Wilson
... View more
01-28-2015
02:52 AM
|
1
|
0
|
958
|
|
POST
|
Hi Christine Thanks so much for the following update Regards Peter Wilson
... View more
01-22-2015
01:33 AM
|
0
|
0
|
3406
|
|
POST
|
Hi Alexander I've not been able to resolve the following as of yet. I emailed ESRI, but they have not been able to replicate the error from their side. I've reverted to a previous version of Arc Hydro 10.2.0.40, which has resolved the Subwatershed bug. Hope the following helps you Regards Peter Wilson
... View more
01-17-2015
07:09 AM
|
0
|
1
|
3406
|
|
POST
|
I've recently upgraded my Arc Hydro installation from 10.2.0.40 to 10.2.0.85 and my model stopped working where "Batch Subwatershed Delineation" was inserted. The output parameter for SubwatershedPoint seems to be affected with the following error message: "Error 000735 Configuration for out_subwatershedpoint_features cannot be found in the configuration. : Value is required. The parameter is usually automatically populated with the string variable "SubwatershedPoint" and the output is saved to the output File Geodatabase Feature Dataset. I've tried installing previous versions as far back as 10.2.0.55 and the error message still persists. As soon as I re-install 10.2.0.40 the error message dissappears. Unnfortunately I need to be able to use the newer version due to changes that have been made. If anyone can assist in resoloving the following, it will truly be appreicated. I've attached a jpeg of the Batch Subwatershed Delineation with the error message for BatchSubwatershedPoint. Regards Peter Wilson
... View more
01-06-2015
02:09 PM
|
0
|
5
|
8962
|
|
POST
|
Hi Ivan Just a note, the red line seems to be from the path trace tool, which is a graphic representation of the flow path trace. Regards
... View more
01-06-2015
07:15 AM
|
2
|
0
|
1795
|
|
POST
|
Hi Ivan It seem that ArcGIS is complaining that you have an invalid sql statement. Check to make sure your syntax is correct (i.e. shapefiles\feature classes and vbscript\python) Regards
... View more
01-06-2015
07:10 AM
|
2
|
0
|
1795
|
|
POST
|
I'm currently busy modelling Lake Chilwa (Malawi) which is a Non-Dendritic Basin. I've generated a hydrological DEM by lowering the level within the lake to ensure the that the lake is recognised as a natural sink. I've also had to recodition the DEM to ensure the drainage paths were correct at certain locations. I've then used fill with sinks ; flow direction with sinks ; Flow Accumulation ; Stream Definition ; Stream Segmentation (Using the Sink Link GRID) ; Combine Stream Link and Sink Link GRID ; Catchment GRID Delineation ; Catchment Polygon Processing ; Drainage Line Processing (Using the Combined Link GRID instead of the Stream Link GRID) ; Adjoint Catchment Processing. The first that I have is that the DRAINID field is not being added to the DrainageLine Featue Class which is required for Adjoint Catchment Processing. Even if I add the field manually and populate it with the HYDROID from the Catchment Polygon the results from Batch Subwatershed or Watershed are incomplete. I've attached a printscreen of my model as well as the output of my Batch Watershed Delineation results. Any advice to remedy the following errors will be appreciated
... View more
11-24-2014
05:54 AM
|
0
|
0
|
3483
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 01-16-2012 02:34 AM | |
| 1 | 05-07-2016 03:04 AM | |
| 1 | 04-10-2016 01:09 AM | |
| 1 | 03-13-2017 12:27 PM | |
| 1 | 02-17-2016 02:34 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-04-2021
12:50 PM
|