salem.geogrid_simulator

salem.geogrid_simulator(fpath, do_maps=True)[source]

Emulates geogrid.exe, which is useful when defining new WRF domains.

Parameters:
fpath: str

path to a namelist.wps file

do_maps: bool

if you want the simulator to return you maps of the grids as well

Returns:
(grids, maps) with:
  • grids: a list of Grids corresponding to the domains defined in the namelist
  • maps: a list of maps corresponding to the grids (if do_maps==True)