Hello!
I am trying to add a new input variable from ERA5 to my run. I managed to make WPS to process it, but now I want WRF to recognize it. I read the following post:
forum.mmm.ucar.edu
It says "you may need to modify some code as well. See main/real_em.F, and look for grid_fdda. Follow this example code".
Can anyone please give me more hints about the modifications that the file real_em.F needs?
I am trying to add a new input variable from ERA5 to my run. I managed to make WPS to process it, but now I want WRF to recognize it. I read the following post:

How can I introduce new variables into the metgrid program and later use them in the real program?
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...

Can anyone please give me more hints about the modifications that the file real_em.F needs?