pydda.initialization.make_background_from_wrf¶
-
pydda.initialization.
make_background_from_wrf
(Grid, file_path, wrf_time, radar_loc, vel_field=None)[source]¶ This function makes an initalization field based off of the u and w from a WRF run. Only u and v are used from the WRF file.
Parameters: Grid: Py-ART Grid object
This is the Py-ART Grid containing the coordinates for the analysis grid.
file_path: str
This is the path to the WRF grid
wrf_time: datetime
The timestep to derive the intialization field from.
radar_loc: tuple
The (X, Y) location of the radar in the WRF grid. The output coordinate system will be centered around this location and given the same grid specification that is specified in Grid.
vel_field: str, or None
This string contains the name of the velocity field in the Grid. None will try to automatically detect this value.
Returns: u: 3D ndarray
The initialization u field.
v: 3D ndarray
The initialization v field.
w: 3D ndarray
The initialization w field.