pydda.constraints.add_hrrr_constraint_to_grid#

pydda.constraints.add_hrrr_constraint_to_grid(Grid, file_path, method='nearest')[source]#

This function will read an HRRR GRIB2 file and create the constraining u, v, and w fields for the model constraint

Parameters:
  • Grid (Py-ART Grid) – The Py-ART Grid to use as the grid specification. The HRRR values

  • will be interpolated to the Grid’s specficiation and added as a field.

  • file_path (string) – The path to the GRIB2 file to load.

  • method (str) – Interpolation method: ‘nearest’ for nearest neighbor, ‘linear’ for linear.

Returns:

Grid (Py-ART Grid) – This returns the Py-ART grid with the HRRR u, and v fields added.