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

How can I introduce new variables into the metgrid program and later use them in the real program?

Status
Not open for further replies.

kwerner

Administrator
Staff member
If you are bringing in the fields with GRIB data, you'll need to start with the ungrib process by adding GRIB parameters for new fields in the Vtable so that ungrib will extract these new fields, and then write them to the intermediate file. Metgrid will process every field in the intermediate file. Otherwise you can write the field into intermediate format (skipping the ungrib process; more information here: http://www2.mmm.ucar.edu/wrf/users/docs/user_guide_v4/v4.0/users_guide_chap3.html#_Writing_Meteorological_Data). Adding a section in metgrid/METGRID.TBL for a new variable would allow you to customize interpolation options.

In order for real to recognize the new field, you need to first make changes in the Registry.EM_COMMON file. Look for an example of field declaration for UU (which is a WPS variable) in the file. You can follow this example to correctly declare your own, but you may need to modify some code as well. See main/real_em.F, and look for grid_fdda. Follow this example code. Once you are able to get real to work with your data, you can add your own code so that you can use the data in the model.
 
Status
Not open for further replies.
Top