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

WRF source code modification - request for resources

Pechudin

Member
Hello WRF community,

I have been using WRF for a year-two now, and now I would like to start altering the WRF code. My goal would be to add or alter a physics package, so I would like to ask for any materials you found useful in the following steps:
  • Defining and ingesting new data (e.g., defining a new static field and ingesting it into WPS)
    • Note: I have started with the helpful NCAR presentations about the Registry
  • A "map" of where the code tasked with some task is: basically, I want to know where I would look to change the code if I wanted to do a specific thing, and where I do not want to mess with anything. For example, if I add a variable into Registry, where do I add the code to initialize the fields?
  • Explanations of the different state variables in the Registry (e.g., I know about the "rconfig" variable)
  • Any examples of workshops or tutorials where people added, e.g., a new scalar field, or a new parametrization.
What I already found: the official Youtube videos from NCAR, i.e., explaining the Registry.

This is going to be a pretty long journey, so any little resource you found would be appreciated.

Petar Golem
 
Have you resolved the issue of defining a new static field and importing it into WPS? I've been grappling with this issue recently too. The geogrid.log shows that my new file was read, but the resulting geogrid file is incorrect.
 
Well, I have not defined new fields yet, but I have ingested alternative files for terrain height and landuse. To use a new field, I assume I would need to define the new field in GEOGRID.TBL (and later in Registry) and map the field onto a grid that WPS can ingest using some GIS. Is this how you did it?

You mentioned errors, what do they look like? I had errors when ingesting alternative terrain height, I had absurd values of terrain height (1e7 m), and the reason for that was imprecise dx and dy in the index file.
 
Petar,
This document gives detailed description of WRF Registry. I suppose this is the first and most important knowledge you need to learn for the work you plan to do.
Also note that WRF has entered maintenance stage and further development has been frozen. This implies that we no longer support development of WRF and related issues.
I am not sure of your research, but just FYI, MPAS is the new generation numerical model that is being actively developed in NCAR MMM. Please see MPAS. if you are working on model development, MPAS could be a good option.
 
好吧,我还没有定义新字段,但我已经摄取了地形高度和土地利用的替代文件。要使用新字段,我假设我需要在 GEOGRID 中定义新字段。TBL(以及后来在注册表中)并将字段映射到网格上,WPS 可以使用某些 GIS 摄取该网格。你是这样做的吗?

你提到了错误,它们是什么样子的?我在摄取替代地形高度时遇到错误,我的地形高度 (1e7 m) 值非常荒谬,原因是索引文件中的 dx 和 dy 不精确。
替换文件并运行geogrid.exe后,它显示一条成功消息。但是,在检查 geo_emd01.nc 时,我发现 HGT_M 的最大值和最小值均为零,并且 LANDUSE 数据也不正确。我不确定问题出在哪里。
 
Top