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

Help Needed: WPS Metgrid.exe Error (Endian Problem)

kwyang

New member
Hi everyone,
I am pretty new to WRF model's and I've been consistently getting the following error when I am trying to run ./metgrid.exe.
I was able to go through the WRF tutorial by skipping the metgrid.exe part and manually uploading met_em.nc files to properly run the WRF model.

(base) [kwyang0331@ln003 WPS]$ ./metgrid.exe
Processing domain 1 of 1
Processing 2016-10-06_00
FILE
ERROR: Didn't recognize format version of data in FILE:2016-10-06_00.\nFound version 83886080 but expected either 3, 4, or 5. This could be an endian problem.
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 49138976.NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
 
(base) [kwyang0331@ln003 WPS]$ more metgrid.log
2024-02-23 10:14:40.938 --- *** Starting program metgrid.exe ***
2024-02-23 10:14:40.942 --- Using the following namelist variables:
2024-02-23 10:14:40.942 --- &SHARE
2024-02-23 10:14:40.942 --- WRF_CORE = ARW
2024-02-23 10:14:40.942 --- MAX_DOM = 1
2024-02-23 10:14:40.942 --- START_YEAR = 0
2024-02-23 10:14:40.942 --- START_MONTH = 0
2024-02-23 10:14:40.942 --- START_DAY = 0
2024-02-23 10:14:40.942 --- START_HOUR = 0
2024-02-23 10:14:40.942 --- START_MINUTE = 0
2024-02-23 10:14:40.942 --- START_SECOND = 0
2024-02-23 10:14:40.942 --- END_YEAR = 0
2024-02-23 10:14:40.942 --- END_MONTH = 0
2024-02-23 10:14:40.942 --- END_DAY = 0
2024-02-23 10:14:40.942 --- END_HOUR = 0
2024-02-23 10:14:40.942 --- END_MINUTE = 0
2024-02-23 10:14:40.942 --- END_SECOND = 0
2024-02-23 10:14:40.942 --- START_DATE = 2016-10-06_00:00:00
2024-02-23 10:14:40.942 --- END_DATE = 2016-10-08_00:00:00
2024-02-23 10:14:40.942 --- INTERVAL_SECONDS = 21600
2024-02-23 10:14:40.942 --- IO_FORM_GEOGRID = 2
2024-02-23 10:14:40.942 --- OPT_OUTPUT_FROM_GEOGRID_PATH = ./
2024-02-23 10:14:40.942 --- SUBGRID_RATIO_X = 1
2024-02-23 10:14:40.942 --- SUBGRID_RATIO_Y = 1
2024-02-23 10:14:40.943 --- DEBUG_LEVEL = 0
2024-02-23 10:14:40.943 --- ACTIVE_GRID = .TRUE.
2024-02-23 10:14:40.943 --- NOCOLONS = .FALSE.
2024-02-23 10:14:40.943 --- /
2024-02-23 10:14:40.943 --- &METGRID
2024-02-23 10:14:40.943 --- FG_NAME = FILE
2024-02-23 10:14:40.943 --- CONSTANTS_NAME =
2024-02-23 10:14:40.943 --- IO_FORM_METGRID = 2
2024-02-23 10:14:40.943 --- PROCESS_ONLY_BDY = 0
2024-02-23 10:14:40.943 --- OPT_OUTPUT_FROM_METGRID_PATH = ./
2024-02-23 10:14:40.943 --- OPT_METGRID_TBL_PATH = metgrid/
2024-02-23 10:14:40.943 --- /
2024-02-23 10:14:40.948 --- Processing domain 1 of 1
2024-02-23 10:14:40.948 --- Initializing storage module
2024-02-23 10:14:40.948 --- Opening static input file.
2024-02-23 10:14:40.967 --- Reading static global attributes.
2024-02-23 10:14:40.968 --- Read in static field XLAT_M.
2024-02-23 10:14:40.968 --- Read in static field XLONG_M.
2024-02-23 10:14:40.969 --- Read in static field XLAT_V.
2024-02-23 10:14:40.969 --- Read in static field XLONG_V.
2024-02-23 10:14:40.970 --- Read in static field XLAT_U.
2024-02-23 10:14:40.970 --- Read in static field XLONG_U.
2024-02-23 10:14:40.971 --- Read in static field CLAT.
2024-02-23 10:14:40.971 --- Read in static field CLONG.
2024-02-23 10:14:40.971 --- Read in static field MAPFAC_M.
2024-02-23 10:14:40.972 --- Read in static field MAPFAC_V.
2024-02-23 10:14:40.972 --- Read in static field MAPFAC_U.
2024-02-23 10:14:40.973 --- Read in static field MAPFAC_MX.
2024-02-23 10:14:40.973 --- Read in static field MAPFAC_VX.
2024-02-23 10:14:40.973 --- Read in static field MAPFAC_UX.
2024-02-23 10:14:40.974 --- Read in static field MAPFAC_MY.
2024-02-23 10:14:40.974 --- Read in static field MAPFAC_VY.
2024-02-23 10:14:40.975 --- Read in static field MAPFAC_UY.
2024-02-23 10:14:40.975 --- Read in static field E.
2024-02-23 10:14:40.975 --- Read in static field F.
2024-02-23 10:14:40.976 --- Read in static field SINALPHA.
2024-02-23 10:14:40.976 --- Read in static field COSALPHA.
2024-02-23 10:14:40.976 --- Read in static field LANDMASK.
2024-02-23 10:14:40.977 --- Read in static field XLAT_C.
2024-02-23 10:14:40.977 --- Read in static field XLONG_C.
2024-02-23 10:14:40.978 --- Read in static field SINALPHA_U.
2024-02-23 10:14:40.978 --- Read in static field COSALPHA_U.
2024-02-23 10:14:40.978 --- Read in static field SINALPHA_V.
2024-02-23 10:14:40.979 --- Read in static field COSALPHA_V.
2024-02-23 10:14:40.983 --- Read in static field LANDUSEF.
2024-02-23 10:14:40.985 --- Read in static field LU_INDEX.
2024-02-23 10:14:40.985 --- Read in static field HGT_M.
2024-02-23 10:14:40.986 --- Read in static field SOILTEMP.
2024-02-23 10:14:40.989 --- Read in static field SOILCTOP.
2024-02-23 10:14:40.990 --- Read in static field SCT_DOM.
2024-02-23 10:14:40.993 --- Read in static field SOILCBOT.
2024-02-23 10:14:40.994 --- Read in static field SCB_DOM.
2024-02-23 10:14:40.997 --- Read in static field ALBEDO12M.
2024-02-23 10:14:41.000 --- Read in static field GREENFRAC.
2024-02-23 10:14:41.004 --- Read in static field LAI12M.
2024-02-23 10:14:41.005 --- Read in static field SNOALB.
2024-02-23 10:14:41.005 --- Read in static field CON.
2024-02-23 10:14:41.006 --- Read in static field VAR.
2024-02-23 10:14:41.006 --- Read in static field OA1.
2024-02-23 10:14:41.007 --- Read in static field OA2.
2024-02-23 10:14:41.007 --- Read in static field OA3.
2024-02-23 10:14:41.008 --- Read in static field OA4.
2024-02-23 10:14:41.008 --- Read in static field OL1.
2024-02-23 10:14:41.009 --- Read in static field OL2.
2024-02-23 10:14:41.009 --- Read in static field OL3.
2024-02-23 10:14:41.009 --- Read in static field OL4.
2024-02-23 10:14:41.010 --- Read in static field VAR_SSO.
2024-02-23 10:14:41.011 --- Preparing to process output time 2016-10-06_00
2024-02-23 10:14:41.012 --- Getting input fields from FILE
2024-02-23 10:14:41.012 --- ERROR: Didn't recognize format version of data in FILE:2016-10-06_00.\nF
ound version 83886080 but expected either 3, 4, or 5. This could be an endian problem.

Here is my metgrid.log. Thank you in advance.
 
I tried reinstalling WRF and WPS to try to solve the issue and now I have been getting the following error when compiling WRF. I was wondering if anyone has insight towards fixing this issue as well. Thank you!

make[3]: [module_internal_header_util.o] Error 127 (ignored)
time mpif90 -real-size 32 -i4 -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big
_endian -o module_io_int_idx.o -c module_io_int_idx.f
/global/software/sl-7.x86_64/modules/langs/python/3.10/bin/mpif90: line 392: x86_64-conda-linux-gnu-
gfortran: command not found
0.01user 0.02system 0:00.03elapsed 96%CPU (0avgtext+0avgdata 1556maxresident)k
0inputs+8outputs (0major+7545minor)pagefaults 0swaps
This is the first error from my compile.log file.
 
I tried reinstalling WRF and WPS to try to solve the issue and now I have been getting the following error when compiling WRF. I was wondering if anyone has insight towards fixing this issue as well. Thank you!
Since this is a different question the the original inquiry posted here, please open a new thread to ask this. We like to keep each thread distinct to a single topic so that it is easier to search and read the threads, when needed, later. When you do post this, please include the full compile log and configure.wrf and configure.wrf file.


Hi, I have downloaded the file from this link. Intermediate files
They are directly from one of the WRF tutorial (ARW Online Tutorial)
Regarding this issue, I'm not sure what went wrong when you ran metgrid. I was able to use the FILE* files you shared and run metgrid.exe without any issues. Perhaps recompiling will correct the issue, if you can get the code compiled correctly.
 
Top