pydda.constraints.make_constraint_from_wrf#

pydda.constraints.make_constraint_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 in netCDF format. Only u and v are used from the WRF netCDF 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:

Grid (Py-ART Grid object) – This Py-ART Grid will contain the model u, v, and w.