[PS error ]WRF-Hydro pre-processing error using ARCGIS Pro

112 views
Skip to first unread message

Heechul_Kim

unread,
Nov 17, 2023, 1:33:32 AM11/17/23
to wrf-hydro_users
Hello! I'm a WRF-Hydro user and have recently started using it. I've been using ARCGIS Pro for the pre-processing, and I encountered the following error message. Is there a solution for this issue?

"Traceback (most recent call last):
File "<string>", line 405, in execute File "C:\Users\hecl\Desktop\wrf_hydro_arcgis_preprocessor-5.2.0\wrf_hydro_functions.py", line 1450, in create_high_res_topogaphy mosprj2 = ExtractByMask(mosprj, Con(IsNull('hgt_m_Layer') == 1, 0, 0)) # New method 10/29/2018: Use Con to eliminate NoData cells if there are any. File "C:\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 7119, in ExtractByMask return Wrapper( File "C:\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Utils.py", line 55, in swapper result = wrapper(*args, **kwargs) File "C:\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 7112, in Wrapper result = arcpy.gp.ExtractByMask_sa( File "C:\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 520, in <lambda> return lambda *args: val(*gp_fixargs(args, True)) arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.  
Failed to execute (ExtractByMask)."

Kevin Sampson

unread,
Nov 17, 2023, 10:29:21 AM11/17/23
to wrf-hyd...@ucar.edu
Heechul,

This is an ERROR 999999 from Esri, which is a very generic error that indicates that there was an issue but it is unspecified. This occasionally happens when you run out of memory. How large is your routing grid?

The WRF-Hydro GIS Pre-processing tool writes messages that can be helpful in determining why an issue occurred. Can you also post the messages from the tool (all messages that happen up until the error)? That would be helpful.

Kevin

Kevin
Kevin Sampson, GISP
Associate Scientist
National Center for Atmospheric Research
Boulder, Colorado


--
You received this message because you are subscribed to the Google Groups "wrf-hydro_users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wrf-hydro_use...@ucar.edu.
To view this discussion on the web visit https://groups.google.com/a/ucar.edu/d/msgid/wrf-hydro_users/01b00db1-a8c3-4cf5-a2ee-8cda1a5a66f0n%40ucar.edu.

김희철(일반대학원 건설환경공학과)

unread,
Nov 19, 2023, 9:13:18 PM11/19/23
to wrf-hyd...@ucar.edu
Thank you for your reply.

I was used 3.2 version of  arcgis pro, input GEOGRID file is "geo_em.d01.nc" and input elevation layer file is "hyd_as_dem_15s.tif" 

This is full message of error when running arcgis pro

"Begining processing on Mon Nov 20 11:08:50 2023
64-bit: True
Input parameters:
    Parameter: Input GEOGRID File: C:\Users\hecl\Desktop\WPS\geo_em.d01.nc
    Parameter: Forecast Points (CSV): None
    Parameter: Mask CHANNELGRID variable to forecast basins?: false
    Parameter: Create reach-based routing (RouteLink) files?: false
    Parameter: Create lake parameter (LAKEPARM) file?: false
    Parameter: Reservoirs Shapefile or Feature Class: None
    Parameter: Input Elevation Raster: C:\Users\hecl\Desktop\WPS\hyd_as_dem_15s.tif
    Parameter: Regridding (nest) Factor: 10
    Parameter: Number of routing grid cells to define stream: 200
    Parameter: OVROUGHRTFAC Value: 1
    Parameter: RETDEPRTFAC Value: 1
    Parameter: Channel Initiation Points Feature Class: None
    Parameter: Channel Mask Raster: None
    Parameter: Output ZIP File: C:\Temp\test1.zip
None
Step 1: NetCDF Conversion initiated...
    Map Projection: Lambert Conformal Conic
    Using MOAD_CEN_LAT for latitude of origin.
    Using Standard Parallel 2 in Lambert Conformal Conic map projection.
    Georeferencing step completed without error.
    The GEOGRID File resolution is 15000.0sm
    Proj4: +proj=lcc +units=m +a=6370000.0 +b=6370000.0 +lat_1=30.0 +lat_2=60.0 +lat_0=33.000015 +lon_0=-79.0 +x_0=0 +y_0=0 +k_0=1.0 +nadgrids=@null +wktext  +no_defs 
    GeoTransform: -1117500.1038362936 15000.0 0 967499.9441653444 0 -15000.0
    Created projection definition from input NetCDF GEOGRID file.
Creating CF-netCDF File.
    Esri PE String: PROJCS["Sphere_Lambert_Conformal_Conic",GEOGCS["GCS_Sphere",DATUM["D_Sphere",SPHEROID["Sphere",6370000.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["false_easting",0.0],PARAMETER["false_northing",0.0],PARAMETER["central_meridian",-79.0],PARAMETER["standard_parallel_1",30.0],PARAMETER["standard_parallel_2",60.0],PARAMETER["latitude_of_origin",33.000015],UNIT["Meter",1.0]];-35691800 -28314000 10000;-100000 10000;-100000 10000;0.001;0.001;0.001;IsHighPrecision
    Map Projection of input raster : lambert_conformal_conic
    Dimensions created after  0.00 seconds.
    Coordinate variables and variable attributes set after  0.00 seconds.
    netCDF global attributes set after  0.00 seconds.
Step 2 initiated...
    The GEOGRID File resolution is 15000.0sm
    The High-resolution dataset will be 1500.0m
    WKT for CRS 1:
      PROJCS["Sphere_Lambert_Conformal_Conic",GEOGCS["GCS_Sphere",DATUM["D_Sphere",SPHEROID["Sphere",6370000.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["false_easting",0.0],PARAMETER["false_northing",0.0],PARAMETER["central_meridian",-79.0],PARAMETER["standard_parallel_1",30.0],PARAMETER["standard_parallel_2",60.0],PARAMETER["latitude_of_origin",33.000015],UNIT["Meter",1.0]];-35691800 -28314000 10000;-100000 10000;-100000 10000;0.001;0.001;0.001;IsHighPrecision
    WKT for CRS 2:
      GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]];-400 -400 11258999068426.2;-100000 10000;-100000 10000;8.98315284119521E-09;0.001;0.001;IsHighPrecision
    CRS differs between datasets.
    Custom geotransformation will be necessary.
    Transformation: GeoTransform_Null_WRFHydro
    MakeRasterLayer process completed without error.
    The coarse grid has 129 rows and 149 columns.
    The input elevation grid (before reprojection) has 13680 rows and 22800 columns.
    Projecting input elevation data to WRF coordinate system.
    ArcGIS version 3.2 found. Using Custom Geotransformation (GeoTransform_Null_WRFHydro)
    Finished projecting input elevation data to WRF coordinate system.
    The fine grid (before ExtractByMask) has 4646 rows and 15168 columns.
Traceback (most recent call last):
  File "<string>", line 423, in execute
  File "C:\Users\hecl\Desktop\WPS\wrf_hydro_arcgis_preprocessor-master\wrf_hydro_functions.py", line 1486, in create_high_res_topogaphy
    mosprj2 = ExtractByMask(mosprj, Con(IsNull('hgt_m_Layer') == 1, 0, 0))          # New method 10/29/2018: Use Con to eliminate NoData cells if there are any.
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 7119, in ExtractByMask
    return Wrapper(
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Utils.py", line 55, in swapper
    result = wrapper(*args, **kwargs)
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sa\Functions.py", line 7112, in Wrapper
    result = arcpy.gp.ExtractByMask_sa(
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 520, in <lambda>
    return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.

Failed to execute (ExtractByMask).

Failed to execute (ProcessGeogridFile).
Failed at 2023 11. 20 MON  11:08:59 am (Elapsed Time: 9.49 seconds)"
 
Thank you.

2023년 11월 18일 (토) 오전 12:29, Kevin Sampson <ksam...@ucar.edu>님이 작성:

김희철(일반대학원 건설환경공학과)

unread,
Nov 20, 2023, 4:05:07 AM11/20/23
to wrf-hyd...@ucar.edu
And, this is my input files for arcgis pro(v.3.2.0).

geo_em.d01.nc file from wrf wps.
hyd_as_dem_15s


2023년 11월 20일 (월) 오전 11:13, 김희철(일반대학원 건설환경공학과) <chul...@yonsei.ac.kr>님이 작성:

Kevin Sampson

unread,
Nov 22, 2023, 12:11:08 PM11/22/23
to wrf-hyd...@ucar.edu
This error (999999) is a generic error that Esri produces when no other error message is appropriate. Based on where in the script this error occurred, I suspect a couple of possible issues. My first thought is that your computer ran out of memory. This is possible if you are using a 32bit version of ArcGIS (ArcMap, ArcCatalog), or if your computer has insufficient memory for the task. I see that your routing grid is about 15,000x4600 cells. This is large but usually not too large to process. 

The second thought is that this might be a licensing issue. Do you have the Spatial Analyst extension licensed and activated in your session? 

I will not be able to test your files until next week due to the Thanksgiving holiday this week.

Thanks,

Kevin

Reply all
Reply to author
Forward
0 new messages