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

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

  • geo_em.txt
    81.4 KB · Views: 2
  • geogrid.log
    21.6 KB · Views: 2
  • metgrid.log
    2.2 KB · Views: 3
  • ungrib.log
    87.4 KB · Views: 2
  • namelist.wps
    1.3 KB · Views: 2
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,
I have the same problem as Member "ryaneagan". The attached file is my metgrid.log file. How can I solve it?
Thanks
 

Attachments

  • metgrid.log
    2.2 KB · Views: 3
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.
 
Here are the three files you mentioned.
PS. I used "**************" instead of the personal private path
Look forward to your help
 

Attachments

  • configure.wps
    3.4 KB · Views: 1
  • compile.txt
    16.6 KB · Views: 2
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!
 
Top