Hello everyone,
I hope this message finds you well. I am currently working on preparing the input files for nudging and have encountered a few questions that I would greatly appreciate your insights on.
Firstly, regarding the generation of the spatialweights.nc file using the WRF_Hydro_Regridding_Spatial_Weights.py script: a watershed Shapefile (SHP) is required for this process. I have three stations based on which the watershed needs to be delineated, but I am uncertain which SHP file would be most appropriate to use. For instance, should I follow the approach similar to Figure 1 or Figure 2, or would neither be suitable? I would be truly grateful for any advice or suggestions regarding this matter.
Secondly, while attempting to run the nudging process on my own watershed, I encountered the following error:
The job is stopped due to the fatal error. Failed read GBUCKETPARM - nf90_inq_dimid: BasinDim.
Upon investigation, I noticed that the dimension in my GWBUCKPARM.nc file is feature_id (this file was generated using the official wrf_hydro_arcgis_preprocessor in ArcGIS), whereas in the official NWM example case, the corresponding dimension is BasinDim. I suspect this discrepancy may be the cause of the error, and I would appreciate any guidance on how to resolve this issue.
Thank you all in advance for your time and assistance. Your expertise and support are immensely valuable to me.
Best regards,
Zed Li
--
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 visit https://groups.google.com/a/ucar.edu/d/msgid/wrf-hydro_users/0258a908-509f-4a87-829a-c6aed853914an%40ucar.edu.
Hi Kevin,
Thank you once for your clear and helpful explanation. I am especially grateful that you emphasized the importance of ensuring consistency between the basin IDs in the spatial weights file and the reach IDs in the RouteLink.nc file.
In my case, both my RouteLink.nc and GWBUCKPARM.nc files were generated using the official wrf_hydro_arcgis_preprocessor tool in ArcGIS, so I believe these two files should be consistent with each other. However, I suspect that the issue may lie with the watershed Shapefile I used, as it not correctly match the reach IDs in the RouteLink.nc file.
Additionally, while comparing my RouteLink.nc file with the one provided in the NWM example case, I noticed significant differences in the variables. For instance, the official example includes additional variables such as:
My file, generated by the wrf_hydro_arcgis_preprocessor, lacks many of these variables. This makes me wonder whether the RouteLink.nc file produced by this tool is actually suitable for nudging applications.
I would greatly appreciate any further insights or suggestions you may have regarding this matter.
Thank you once again for your valuable time and assistance.
Best regards,
Zed Li
Hi everyone,
I have identified significant variable differences between the Route_Link.nc file generated using the wrf_hydro_arcgis_preprocessor tool and the official test case Route_Link.nc file:
Variables Exclusive to the wrf_hydro_arcgis_preprocessor Generated File:
x(feature_id) - X-coordinate values
y(feature_id) - Y-coordinate values
crs - Coordinate reference system information
Variables Exclusive to the Official Test Case File:
TopWdth(feature_id) - Top width parameter
TopWdthCC(feature_id) - Composite channel top width parameter
nCC(feature_id) - Composite channel Manning's coefficient
ascendingIndex(feature_id) - Ascending index
The two files exhibit substantial differences in their variable composition. I would greatly appreciate your guidance on whether the Route_Link.nc file generated by wrf_hydro_arcgis_preprocessor can be properly used for nudging applications.
If this file is not suitable for nudging, could you please advise on the recommended approach? I have encountered several challenges when generating input files for nudging and would be grateful for your technical support to resolve these issues.
Thank you for your assistance.
Best regards,
Zed Li
To view this discussion visit https://groups.google.com/a/ucar.edu/d/msgid/wrf-hydro_users/e2c21625-676e-4c21-8b58-defee79ab105n%40ucar.edu.
Dear Arezoo,
Thank you for your detailed response. Through your and Kevin’s explanations, I believe I have gained a deeper understanding of the nudging input files. Specifically, I now recognize that the reach IDs in RouteLink.nc, the sub-basin IDs in GWBUCKPARM.nc, and the sub-basin IDs in spatialweight.nc must align.
I realized that the shapefile I previously used to create the spatialweight.nc file was based on the Station-based watershed (i.e., the basn_msk variable generated by the WRf-Hydro GIS Preprocessor), which was incorrect. After further investigation, I discovered that the basin variable generated by the WRf-Hydro GIS Preprocessor (using the "FullDom LINKID local basins" method) corresponds to the groundwater basins in GWBUCKPARM.nc.
However, I encountered a new issue: the basin data is in raster format. As shown in Fig. 1 (the original data), I converted it into a shapefile to generate the spatialweight.nc file. When I overlaid this with the river network generated from the linkid variable, the result appeared somewhat unreasonable, as shown in Fig. 2.
I am curious to understand why this inconsistency occurred and would appreciate your insights on how to resolve it. Thank you once again for your guidance and support.
Best regards,
Zed Li
Hi Arezoo,
I hope this message finds you well.
Thank you once again for your previous assistance. I am writing to follow up on the issue regarding the conversion of the basin raster data to a polygon-based shapefile. As I mentioned, during the conversion process, a few grid cells with the same value became separated from their main groups, resulting in some polygons—some containing only a single grid cell—being assigned the same gridcode but treated as distinct features.
My primary concern is whether the shapefile generated under these conditions is suitable for use in the nudging workflow. Specifically, I would like to confirm if such discrepancies (e.g., isolated grid cells or fragmented polygons) could potentially impact the alignment of sub-basin IDs across RouteLink.nc, GWBUCKPARM.nc, and spatialweight.nc, and whether this might introduce errors in the nudging process.
Your guidance on this matter would be greatly appreciated. Thank you very much for your time and support.
Best regards,
Zed Li
Dear Arezoo, Kevin, and Aubrey,
I hope this message finds you well. I wanted to take a moment to sincerely thank you for the invaluable assistance you provided in my recent research work. With your guidance, I successfully created the nudging input files and ran a trial simulation period for my study area.
Upon reviewing the simulation results, I found that the simulated discharge outputs at the three stations align almost perfectly with the observed discharge data. Additionally, the CHRTOUT file and the nudgingLastObs file show three non-zero values for the nudge variable, corresponding to the three stations. These results lead me to believe that the nudging workflow is functioning correctly. However, to ensure thoroughness, I’d like to ask: are there other methods to further verify whether nudging is working as intended? If you have any suggestions or insights, I would greatly appreciate your advice.
Once again, thank you so much for your generous help and unwavering support. Your guidance has been crucial to the progress of my research.
Thanks,
Zed Li