Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Having trouble getting wrf.exe to run with modified wrfinput_d0* files

stormsteiner23

New member
I've been trying to run an experiment with WRF using four domains. After I complete the real.exe run and wrfinput_d0* files are generated, I take those files and use xarray in Python to modify the soil moisture fields in each domain. I then save those files and run wrf.exe. The problem is that I get the error attached (in the rsl.error.0000 file) and the run shuts down before it produces anything.

I am not entirely sure what is going on, as I can use ncdump with the wrfinput files and it works just fine. Wrf.exe just can't seem to do anything with the files.

A related question is this: if I want to modify soil moisture initial conditions (i.e. create artificial fields where soil moisture values are set to field capacity or wilting point based on soil type), is the best way to do this to modify the wrfinput files produced by real.exe or is there another, better method?

Attached are my error file and my namelist.
Thanks for the help!

Edit: for reference, here is the error that I keep getting:

FATAL CALLED FROM FILE: <stdin> LINE: 70
program wrf: error opening wrfinput_d01 for reading ierr= -1021
 

Attachments

  • namelist.input.txt
    4.4 KB · Views: 4
  • rsl.error.0000.txt
    867 bytes · Views: 4
Last edited:
This indicates that the file you changed somehow is wrong. Please compare the original wrfinput with the one you modified, and pay special attention to those variables you modified. The error message din't provide many information, but I suppose the comparison may tell us more ...
 
This indicates that the file you changed somehow is wrong. Please compare the original wrfinput with the one you modified, and pay special attention to those variables you modified. The error message din't provide many information, but I suppose the comparison may tell us more ...
I did end up doing the comparison and found that when i was editing the soil moisture variable with xarray that it was not using any coordinate or dimensional information and so I was wondering if that was causing the error. I tried fixing that and was successful but I still get the same error that I was before.
 
If we compare the two files, we can find obvious differences. For example,

"float XLAT(Time, south_north, west_east)" versus "float XLAT(south_north, west_east)"

Also, no missing value is a allowed in all data files related to WRF.

There are many other differences between the two files. Please follow the exact format of the original wrfinout when you create the new datafile.
 
Hi I am having similar troubles. When I am decreasing the soil moisture by 15 percent I am getting negative values. So when I am trying to modifying it usinf xarray in python. Unfortunately, the wrf.exe is not working. Is there any other way to remove the negative values using NCL
 
Hi,
Thanks for replying. I am using NARR 3 hr reanalysis data for boundary condition. However, as I am trying to do a sensitivity analysis with soil moisture I was trying to modify the soil moisture value in the wrf_input files. When I was trying to decrease my soil mositure by 15 percent I started getting negatie values. Therefore, I intend to change the negative values to 0 to get a correct result. For replacing the negative values with 0 in NCL i used the following expression
SM( :,:,i,j) = where(SM( :,:,i,j).lt.0,SM( :,:,i,j)*0,SM ( :,:,i,j)). After the modification wrf.exe is not working. I am also attaching my NCL scripts for your reference.
 
I don't think it is physically reasonable to specify zero soil moisture. WRF fails due to unreasonable input data.
 
How do I know the difference between the input data?
Is 0 soil moisture is the problem? How should I get rid of the negative values?
 
Top