salem.geogrid_simulator¶
-
salem.
geogrid_simulator
(fpath, do_maps=True, map_kwargs=None)[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
- map_kwargs: dict
kwargs to pass to salem.Map()
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)