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

FATAL CALLED FROM FILE: <stdin> LINE: 332

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

ramousta

New member
Hi everybody!
I installed the last versions of WPS and WRF (WPS-4.3.1 and WRF-4.3.3) using intel compiler and mpi.
Everything seems to be good for geogrid.exe, ungrib.exe, metgrid.exe and real.exe, but for wrf.exe I got this error:
######################################
Error trying to read metadata
File name that is causing troubles =
You can try 1) ensure that the input file was created with WRF v4 pre-processors, or
2) use force_use_old_data=T in the time_control record of the namelist.input file
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: <stdin> LINE: 332
---- ERROR: The input file appears to be from a pre-v4 version of WRF initialization routines
#######################################
If I use force_use_old_data=T. I got errors regrading num_land_cat parameter.
I am using the last available version of WPS.
It is almost a month that I am working on it without any hope for a solution. Could someone help me with that issue.
I attached log files when compiling WPS and WRF, namelists and rsl error file.
Thank you very much.
Rachid
 

Attachments

  • namelist.wps
    1.6 KB · Views: 22
  • namelist.input
    7 KB · Views: 27
  • rsl_error.txt
    1.4 KB · Views: 26
  • WRF.log.compile
    977.3 KB · Views: 20
  • WPS.log.compile
    102.6 KB · Views: 21
Rachid,
Did you run real.exe of WRFV4.3.3 to produce wrfinput and wrfbdy? If not, please run this version of REAL program to produce input data for WRF.
Since WRFV4, the vertical coordinate was changed and the input data also change accordingly. The old version of WRF data no longer works.

If your data is produced by newer version of WRF, you should set use force_use_old_data=F
 
Dear Ming Chen,
Thank you very much for your answer.
Yes I am using the last version (WRF-4.3.3) for real.exe and wrf.exe.
For vertical coordinate I specified the following options in my namelist.wps:
press_pa = 201300, 200100, 100000, 95000, 90000, 85000, 80000, 75000, 70000, 65000, 60000, 55000, 50000, 45000, 40000, 35000, 30000, 25000, 20000, 15000, 10000, 5000, 1000

For eta levels (42) I am using in my namelist.input the following options:
eta_levels = 1., 0.995, 0.99, 0.985, 0.98, 0.975, 0.97, 0.96, 0.95, 0.94, 0.925, 0.91, 0.89, 0.87, 0.85, 0.825, 0.8, 0.77, 0.74, 0.7, 0.65, 0.6, 0.55, 0.5, 0.45, 0.4, 0.35, 0.3, 0.26, 0.24, 0.22, 0.2, 0.18, 0.16, 0.14, 0.12, 0.1, 0.08, 0.06, 0.04, 0.02, 0.

When I use the command: "ncdump -v ZNW wrfinput_d01", I get the same result:
ZNW =
1, 0.995, 0.99, 0.985, 0.98, 0.975, 0.97, 0.96, 0.95, 0.94, 0.925, 0.91,
0.89, 0.87, 0.85, 0.825, 0.8, 0.77, 0.74, 0.7, 0.65, 0.6, 0.55, 0.5,
0.45, 0.4, 0.35, 0.3, 0.26, 0.24, 0.22, 0.2, 0.18, 0.16, 0.14, 0.12, 0.1,
0.08, 0.06, 0.04, 0.02, 0 ;
 
Hi !
While checking log errors of real.exe, I see that I am getting an error though it is successfully completed. The errors are
NetCDF error: NetCDF: Attribute not found
NetCDF error in ext_ncd_get_dom_ti.code REAL, line 83 Element P_TOP
input_wrf: wrf_get_dom_ti_real for P_TOP returns 0.0000000E+00
NetCDF error: NetCDF: Attribute not found
NetCDF error in ext_ncd_get_dom_ti.code REAL, line 83 Element GMT
input_wrf: wrf_get_dom_ti_real for GMT returns 0.0000000E+00
NetCDF error: NetCDF: Attribute not found
NetCDF error in ext_ncd_get_dom_ti.code INTEGER, line 83 Element JULYR
input_wrf: wrf_get_dom_ti_integer for JULYR returns 2022
NetCDF error: NetCDF: Attribute not found
NetCDF error in ext_ncd_get_dom_ti.code INTEGER, line 83 Element JULDAY

I attached the rsl error file for real.exe.
Do you have any idea about this problem?
Thank you so much
 

Attachments

  • rsl.error.txt
    3.7 MB · Views: 20
Pleas take a look at your rsl.out.0000. In the end of this file, if you can find message like 'SUCCESS COMPLETE REAL', it indicates that your REAL program is done successfully.
You don't need to worry for the netCDF errors. If you set debug_level =0, these error messages will be gone.
 
Hi Ming Chen !
Yeah you are right these errors appears because I increased debug_level to find what causes the problem.
The initial problem was solved and the model runs without any error.
Because I am using an old namelist for wrf and real, the format of binary files are not good. So the problem was solved by using netcdf files by setting:
io_form_history = 2
io_form_input = 2
io_form_restart = 2
io_form_boundary = 2
Thank you Ming for your guidance.
I have a question regarding geogrid.exe, when I use the file GEOGRID.TBL.ARW provided by the wrf package, I get this error:
2022-02-10 00:42:23.908 --- ERROR: Could not open ../../data/geog/modis_landuse_21class_30s/index
When I check the geog directory I could not find any modis_landuse_21class_30s data but modis_landuse_20class_30s exist.
Is that an error in the TBL file?
So I corrected my GEOGRID.TBL to use modis_landuse_20class_30s.
 
Hi,
WPS static data includes modis_landuse_20class_30s dataset. So your option is correct.
Note that WPS also provides the dataset of modis_landuse_21class_30s. The issue you have is probably because you didn't download this dataset and put it in your specified directory.
modis_landuse_21class_30s and modis_landuse_20class_30s are basically the same except that the former includes lake as a landuse type, while the latter dataset treats inland lake body as water points just like ocean points.
 
Thank you so much Ming Chen for these explanations and for the guidance you provided to resolve the problem.
 
Top