pydda.initialization.make_wind_field_from_profile¶
-
pydda.initialization.
make_wind_field_from_profile
(Grid, profile, vel_field=None)[source]¶ This function makes a 3D wind field from a sounding.
This function is useful for using sounding data as an initialization for get_dd_wind_field.
Parameters: Grid: Py-ART Grid object
This is the Py-ART Grid containing the coordinates for the analysis grid.
profile: PyART HorizontalWindProfile
This is the HorizontalWindProfile of the sounding
wind: 3-tuple of floats
The 3-tuple specifying the (u,v,w) of the wind field.
vel_field: String
The name of the velocity field in Grid. None will automatically try to detect this field.
Returns: u: 3D float array
Returns a 3D float array containing the u component of the wind field. The shape will be the same shape as the fields in Grid.
v: 3D float array
Returns a 3D float array containing the v component of the wind field. The shape will be the same shape as the fields in Grid.
w: 3D float array
Returns a 3D float array containing the u component of the wind field. The shape will be the same shape as the fields in Grid.