ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_InitLandFromMetgrid.cpp File Reference
#include "ERF.H"
#include "ERF_Constants.H"
#include "ERF_LandSurface.H"
#include <algorithm>
#include <cfenv>
#include <cmath>
#include <map>
#include <regex>
Include dependency graph for ERF_InitLandFromMetgrid.cpp:

Detailed Description

Fill the SLM land surface model's initial state from a met_em file.

SLM's real-data initialization was written against the fields real.exe puts in a wrfinput file (TSLB, SMOIS, DZS, ZS, IVGTYP, ISLTYP, TSK, VEGFRA, SHDMIN, SHDMAX, LAI); see SLM::wrfinput_map and SLM::init_wrfinput_vars. A met_em file holds the raw ingredients real.exe builds those from, so here we do the same derivation and hand SLM the result in the same form, so that it takes exactly the path it takes for a wrfinput run.