GewellLlorin
New member
Hello! I would like to ask about an error I encounter when running metgrid.exe using pywinter-derived boundary condition files:
For some context, I am trying to run WRF with "composite atmosphere" boundary conditions: I average the usual ERA5 pressure level and surface input data for specific days of interest into one day with 6-hourly timesteps. I then loop this over several days with a dummy dates and would like to use this as boundary condition files. Because of this, I decided to directly convert the processed netcdf data into the intermediate file format used in WPS through the python pywinter library (its usage is documented here.)
While the files are created with no issue, metgrid.exe errors as seen above. Previous posts with the same problem seem to generally have input data that didn't cover their specified domains, hence the missing values at the edge points. However, I have rechecked my input data multiple times, even the final intermediate format files with int2nc.exe. There are no NaN values. The input data I downloaded covers [115 - 135E, 5 - 25N] while my outermost domain is only over ~[118.4 - 126.2E, 12.0 - 19.7N]. Why can it not find the data? Also, why is it only these fields when all variables follow the same extent?
I have tried the alternative route of creating GRIB files from my composite atmosphere netcdf files using CDO and running them through ungrib.exe. The metgrid.exe utility still gives the same result. As a last resort, I have also tried outright reducing my domains to half their original sizes to see if it really was an issue with the input data. I encounter the same error.
I have compiled all the files that may help diagnose this issue here. These include the namelist.wps file I use, the scripts I used to create the intermediate files using pywinter (pywinterBCs.py) and the grib files (cdoBCs.sh). I also included some basis composite atmosphere files (composites folder), sample outputs from pywinter (pywinterFiles folder), and sample grib outputs from using cdo (GRIBfiles folder). Lastly, a sample result of the int2nc.exe utility I used to check the fields is added in the pywinterFiles folder (P2p_SRF:2025-03-01_00.nc).
Any guidance would be appreciated. Thank you so much!
WARNING: Field PRES has missing values at level 200100 at (i,j)=(1,1)
WARNING: Field DEWPT has missing values at level 200100 at (i,j)=(1,1)
WARNING: Field PMSL has missing values at level 201300 at (i,j)=(1,1)
WARNING: Field PSFC has missing values at level 200100 at (i,j)=(1,1)
ERROR: Missing values encountered in interpolated fields. Stopping.
For some context, I am trying to run WRF with "composite atmosphere" boundary conditions: I average the usual ERA5 pressure level and surface input data for specific days of interest into one day with 6-hourly timesteps. I then loop this over several days with a dummy dates and would like to use this as boundary condition files. Because of this, I decided to directly convert the processed netcdf data into the intermediate file format used in WPS through the python pywinter library (its usage is documented here.)
While the files are created with no issue, metgrid.exe errors as seen above. Previous posts with the same problem seem to generally have input data that didn't cover their specified domains, hence the missing values at the edge points. However, I have rechecked my input data multiple times, even the final intermediate format files with int2nc.exe. There are no NaN values. The input data I downloaded covers [115 - 135E, 5 - 25N] while my outermost domain is only over ~[118.4 - 126.2E, 12.0 - 19.7N]. Why can it not find the data? Also, why is it only these fields when all variables follow the same extent?
I have tried the alternative route of creating GRIB files from my composite atmosphere netcdf files using CDO and running them through ungrib.exe. The metgrid.exe utility still gives the same result. As a last resort, I have also tried outright reducing my domains to half their original sizes to see if it really was an issue with the input data. I encounter the same error.
I have compiled all the files that may help diagnose this issue here. These include the namelist.wps file I use, the scripts I used to create the intermediate files using pywinter (pywinterBCs.py) and the grib files (cdoBCs.sh). I also included some basis composite atmosphere files (composites folder), sample outputs from pywinter (pywinterFiles folder), and sample grib outputs from using cdo (GRIBfiles folder). Lastly, a sample result of the int2nc.exe utility I used to check the fields is added in the pywinterFiles folder (P2p_SRF:2025-03-01_00.nc).
Any guidance would be appreciated. Thank you so much!
Attachments
Last edited: