Error while running 'Add Lake Parameters'.

77 views
Skip to first unread message

dhanraj

unread,
Oct 3, 2019, 4:24:48 PM10/3/19
to wrf-hydro_users
Dear all,
I am trying to run Add Lake Parameters in WRF-Hydro GIS preprocessing tool and I got the following error message and tool got failed.

I have attached error messages in the text file.

Please help me with this matter.
Thank You.

Regards,
Dhanraj Mane


error_messages.txt

Kevin Sampson

unread,
Oct 3, 2019, 5:54:56 PM10/3/19
to wrf-hyd...@ucar.edu
Dhanraj,

This tool requires Spatial Analyst Extension to be enabled. Please enable the Spatial Analyst before running this tool.

Thanks,

Kevin
Kevin Sampson, GISP
Associate Scientist
National Center for Atmospheric Research
P.O. Box 3000 Boulder, CO  80307-3000
Tel: 303.497.8121


--
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/749f96fc-5185-4512-9b0d-d0d48966deeb%40ucar.edu.

dhanraj

unread,
Oct 4, 2019, 1:37:09 AM10/4/19
to wrf-hydro_users
Sir,
Thanks for your reply.

Spatial Analyst Extension was enabled while running the tool.

regards.
Dhanraj Mnae

Ankur

unread,
Oct 4, 2019, 2:17:30 AM10/4/19
to wrf-hydro_users

You should use the licensed ArcGIS and the appropriate version. For some reason, the cracked one wont help it.



On Friday, October 4, 2019 at 1:54:48 AM UTC+5:30, dhanraj wrote:

Kevin Sampson

unread,
Oct 4, 2019, 8:19:30 AM10/4/19
to wrf-hyd...@ucar.edu
Dhanraj,

The important thing is to make sure Spatial Analyst is available through the python API. You can test this using this code:

if arcpy.CheckExtension("Spatial") == "Available":
    print("Spatial Analyst Extension is available to python.")
    arcpy.CheckOutExtension("Spatial")                                         
    from arcpy.sa import *
else:
    print("Spatial Analyst Extension is not available to python.")

Kevin Sampson, GISP
Associate Scientist
National Center for Atmospheric Research
P.O. Box 3000 Boulder, CO  80307-3000
Tel: 303.497.8121

--
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.

dhanraj

unread,
Oct 5, 2019, 5:27:31 AM10/5/19
to wrf-hydro_users
Sir, 
Thanks for your reply.

I have checked the availability of Spatial Analyst through the python API and I got "Spatial Analyst is available through the python API" from python API.

Still, I am not able to run that tool.

Any suggestions from you would be helpful

On Friday, October 4, 2019 at 1:54:48 AM UTC+5:30, dhanraj wrote:

Kevin Sampson

unread,
Oct 5, 2019, 5:18:03 PM10/5/19
to wrf-hyd...@ucar.edu
Dhanraj,

Try running the “Feature to Point” geoprocessing tool in both the ArcGIS Desktop environment and in the Python”arcpy” environment, using your input lake polygons. I suspect a license incompatibility with that tool in your ArcGIS installation, in which case you would need to contact Esri for support.

Thank you,

Kevin

--
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.
--

dhanraj

unread,
Nov 12, 2019, 9:36:01 PM11/12/19
to wrf-hydro_users
Sir, 
Thank you for your reply.

As you are saying there is a license incompatibility with the tool. I will not able to run Add Lake Parameters from my institute. is there any other way to add lakes in the domain?

Regards,
Dhanraj

Kevin Sampson

unread,
Nov 15, 2019, 10:46:18 AM11/15/19
to wrf-hyd...@ucar.edu
Dhanraj,

Yes, you can absolutely build your input files outside of the ArcGIS environment. You will have to follow the documentation for the WRF-Hydro GIS Pre-processing tools as well as the WRF-Hydro Technical Description to add the necessary lake input grids and files to your existing routing files. You will need to derive lake parameters from your DEM and build a LAKEPARM file and appropriate lake inputs for the Fulldom_hires.nc file. Essentially, you just need to populate the LAKEGRID variable in the Fulldom_hires.nc file and build a LAKEPARM.nc parameter to describe the lakes. If you can replicate those files using the examples we provide, then the model should be able to simulate your lakes.

It sounds like you have already run the WRF-Hydro ArcGIS Pre-processing tools to build a routing stack zip file. If you were able to run that, then I would think you would also have permission to run the "Add Lake Parameters" tool. Have you tried to start fresh by building a routing stack that includes your lakes from the beginning? If this does not work for you, I can take a look at your files and try to run the "Add Lake Parameters" tool to your existing routing stack. You will need to provide the files via download link through our user request form: https://ral.ucar.edu/projects/wrf_hydro/contact.

Thanks,

Kevin

Kevin Sampson, GISP
Associate Scientist
National Center for Atmospheric Research
P.O. Box 3000 Boulder, CO  80307-3000
Tel: 303.497.8121

--
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.
Reply all
Reply to author
Forward
0 new messages