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

metgrid error

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.

I would like to do a simulation in wrf by removing topography.
So I change the height (from 1500m to zero)

I modify geogrid file using NCO
ncap2 -s 'where(HGT_M=1500)HGT_M=0.0'

Then I got following error while running metgrid

Processing domain 1 of 1
ERROR: In read_next_field(), got error code -19.

How to sort this problem? Kindly help



  • namelist.wps
    1.3 KB · Views: 33
  • metgrid.log
    2.2 KB · Views: 36

After you modified the geo_em.d* files, did you verify that height is, indeed, set to 0 everywhere? Are you able to view the file with something like "ncview?"
There should be a HGT_M variable in your geo_em* files. You must have somehow removed the variable completely. Your goal is to have it there, but set to 0 everywhere.