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. The shape will be the same shape as the fields in Grid and will correspond to the same x, y, and z locations as in Grid.
- v: 3D ndarray
The initialization v field. The shape will be the same shape as the fields in Grid and will correspond to the same x, y, and z locations as in Grid.
- w: 3D ndarray
The initialization w field. The shape will be the same shape as the fields in Grid and will correspond to the same x, y, and z locations as in Grid.