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

Real.exe is successfully running with wrf_chem_input but producing a wrfinput without values for the chemical species.

saadatshahidi12

New member
I am a relatively new user of WRF-Chem. I am using the version 3.9.1.1. When running real.exe with wrf_chem_input for a day the program runs, but the wrfinput file produced have zero values for the chemical species. The wrf_chem_input file I am using is actually the last wrfout from the previous days simulation. So, I am expecting that the wrfinput produced by real.exe should retain the chemical species values from the wrf_chem_input file. How can I fix this issue?

I asked a colleague to use my namelist.input, met_em files and wrf_chem_input files and run real.exe. When they did so, they got a wrfinput that has some nonzero values for the chemical species. It made me further confused about what might be the problem for my setup. I am attaching my namelist with this post.
 

Attachments

  • namelist.input
    8 KB · Views: 5
Your compilation may be missing the required environment variables:
export WRF_KPP=1
export WRF_DA_CORE=0
export WRF_NMM_CORE=0
export WRF_CHEM=1
export WRF_EM_CORE=1
export WRFIO_NCD_LARGE_FILE_SUPPORT=1

Without these settings, real.exe will fail to generate the expected output.
 
Your compilation may be missing the required environment variables:
export WRF_KPP=1
export WRF_DA_CORE=0
export WRF_NMM_CORE=0
export WRF_CHEM=1
export WRF_EM_CORE=1
export WRFIO_NCD_LARGE_FILE_SUPPORT=1

Without these settings, real.exe will fail to generate the expected output.
Thank you for your reply. I have doubled checked that my environment variables were correct. I have recompiled the model to check if it was a issue with the previous compilation. But I got the same result with the new compilation also.
To provide some more background, the model is running normally when restart = true. When I set restart = false to reinitialize the meteorology, then I am facing this issue. Real.exe produces an wrfinput with only zero values for the chemical species. When I use the wrfinput for running wrf.exe, the model is stuck in the first timestep.
 
We used the following script, it extracts and appends specific atmospheric variables from a WRF model output file to another NetCDF file, but only if the source file exists.

export fecha=`date -d "-1 days " +%Y'-'%m'-'%d'_00:00:00'`
file_path="/shared/pronostico/salidas/wrfout_d01_${fecha}"
# Check if the file exists
if [ -e "$file_path" ]; then
echo "The file exists: wrfout_d01_${fecha}"
/shared/mamba/bin/ncks -O -d Time,24,24 -v o3,no2,no,so2,co,hcho,PM2_5_DRY,PM10,T $file_path temp.nc
/shared/mamba/bin/ncks -A temp.nc wrfinput_d01
rm temp.nc
else
echo "The file does NOT exist: wrfout_d01_${fecha}"
fi
 
Thank you for sharing the script. I was wondering on how real.exe actually works. Do you know if it reads in the wrf_chem_input? If so, how does it utilize it?
 
Your compilation may be missing the required environment variables:
export WRF_KPP=1
export WRF_DA_CORE=0
export WRF_NMM_CORE=0
export WRF_CHEM=1
export WRF_EM_CORE=1
export WRFIO_NCD_LARGE_FILE_SUPPORT=1

Without these settings, real.exe will fail to generate the expected output.
I have the same issue but slightly different. I am also a new user. I have also compiled the wrf chem good. I am running wrf-chem for two days as a trial. When I run real.exe with chem_opt=0, then it is fine for two days.
But when I enable chem_opt then the only one day (initial day) is read and wrfout also has only that one day's output. I have used prep-chem-src to produce multiple days emissions files. But I do not know how to move forward with the whole process. I can only do one day simulation with chemistry but not for multiple days. Please help me with this.

P.S. I have WRF v4.5, and Prep-chem-src 1.5. I have generated met_em files. I have used Prep-Chem-Src for making emissions files. I know how to link those emission files with the wrf directory but I am stuck when it comes for multiple days in real.exe and wrf.exe runs. What is the standard procedure for doing this? Please help me in this regard.
 
Top