WPS metgrid: Error while reading domain time-independent attribute

lixi202404

New member
I succesfully geogrided which has files geo_em.d01.nc, geo_em.d02.nc, then ungribbed grib2 files whihc has files File:YYYY-MM-DD_00. However, when I tried to run metgrid the following error appeared:
Processing domain 1 of 2
Error: Error while reading domain time-indepedent attribute.

The following words are in the metgrid.log
Open static input file
Reading static global attributes
Error: Error while reading domain time-independent attribute.

My WRF version is 4.5.2, and WPS version is 4.5. My namelist.wps is as following
&share
wrf_core = 'ARW',
max_dom = 2,
start_date = '2017-08-22_00:00:00','2017-08-22_00:00:00',
end_date = '2017-08-23_12:00:00','2017-08-23_12:00:00',
interval_seconds = 21600
io_form_geogrid = 2,
/
&geogrid
parent_id = 1, 1,
parent_grid_ratio = 1, 3,
i_parent_start = 1, 31,
j_parent_start = 1, 17,
e_we = 129, 127,
e_sn = 65, 64,
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!
! The default datasets used to produce the MAXSNOALB and ALBEDO12M
! fields have changed in WPS v4.0. These fields are now interpolated
! from MODIS-based datasets.
!
! To match the output given by the default namelist.wps in WPS v3.9.1,
! the following setting for geog_data_res may be used:
! geog_data_res = 'maxsnowalb_ncep+albedo_ncep+default', 'maxsnowalb_ncep+albedo_ncep+default',!
!!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
geog_data_res = 'default','default',
map_proj = 'lat-lon',
stand_lon = 0.
pole_lat = 90.0
pole_lon = 0.0
geog_data_path = '/home/lixi/Program452/WPS_GEOG_LOW_RES'
/
ref_lat = 45.0
ref_lon = -98
dx = 1.0
dy = 1.0
&ungrib
out_format = 'WPS',
prefix = 'FILE',
/
&metgrid
fg_name = 'FILE'
io_form_metgrid = 2,
/
&mod_levs
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
 
Hi,
All fixed. Thanks again for the help. The issue might have to do with multiple libraries installed on my system. Using the correct libraries resolved the problem.
Thanks again for your time!

Xiong
 
I am running into this problem, but not sure where to start. I recompiled and double checked that my metgrid.exe is compiled against the NetCDF libraries I manually compiled and not the ones on the cluster. Also made sure my path, library path and ld path all had my WRF libraries in first place.

Any help or thoughts would be appreciated.
 

Attachments

I am running into this problem, but not sure where to start. I recompiled and double checked that my metgrid.exe is compiled against the NetCDF libraries I manually compiled and not the ones on the cluster. Also made sure my path, library path and ld path all had my WRF libraries in first place.

Any help or thoughts would be appreciated.
Hi,
Many apologies for the long delay in response. Members of the support team have been out of the office a lot over the past month. Can you let me know if you're still experiencing this issue? Thanks!
 
Hi,
Many apologies for the long delay in response. Members of the support team have been out of the office a lot over the past month. Can you let me know if you're still experiencing this issue? Thanks!
I fixed this by recompiling and making sure I had the not-shared flag set - otherwise, if the NetCDF libs compiled as shared, they wouldn't work.
 
Hi,
When I compile WPS, I cannot generate the three files "geogrid.exe, metgrid.exe and ungrid.exe"
The output is as follows,

Configuration successful. To build the WPS, type: compile
------------------------------------------------------------------------

Testing for NetCDF, C and Fortran compiler

This installation NetCDF is 64-bit
C compiler is 64-bit
Fortran compiler is 64-bit


Your versions of Fortran and C are not consistent.



How can I solve this problem?
Thank you!
 
When I compile WPS, I cannot generate the three files "geogrid.exe, metgrid.exe and ungrid.exe"
The output is as follows,

Configuration successful. To build the WPS, type: compile
------------------------------------------------------------------------
Testing for NetCDF, C and Fortran compiler

This installation NetCDF is 64-bit
C compiler is 64-bit
Fortran compiler is 64-bit

Your versions of Fortran and C are not consistent.



How can I solve this problem?
That is the output for running 'configure.' What happened when you ran 'compile' after that? Do you have a compile log you can attach?
 
Can you issue
Code:
./compile >& compile.txt
and attach that compile.txt file, along with the configure.wps file? Thanks.
 
Thanks. The compile log showed the output from the compile. When you compile WPS, are you pointing to a recently-compiled version of WRF for the WRF_DIR? If it's been a while since you compiled WRF, it's possible some of the library/compiler versions/paths have changed, which could be causing the compile problem. You may need to compile WRF again, and then WPS, since WPS uses the I/O from WRF.

That being said, it's not guaranteed that the solution posted by ryaneagan is the one that will work for you, so you may be going down a long, convoluted path for nothing. The original thread was discussing an issue with metgrid, but we are veering away from that and discussing compiling issues. To make things clear, can you start a new thread with your current problem? If you still have a compiled version of WPS, then post about your metgrid problem and attach the appropriate files. If not, then try my suggestion above and then post about your compiling issue. If that's the case, then make sure to attach the compile log and configure.wps file, as well as the WRF compile log and configure.wrf. Thanks!
 
I fixed this by recompiling and making sure I had the not-shared flag set - otherwise, if the NetCDF libs compiled as shared, they wouldn't work.我通过重新编译并确保设置了非共享标志来解决这个问题——否则,如果NetCDF库被编译为共享,它们将无法工作。
Hello! I encountered the same problem as yours. Could you please clarify what exactly you meant by "compiling netcdf in a not-shared mode" as mentioned in your previous response? Does it mean that it is compiled into a static library during the compilation process? For example, execute the following command: `./configure --prefix=/your/installation/path --disable-shared --enable-static`? I would be extremely grateful if you could reply to me!
 
Back
Top