pywgrib2_xr.earth2grid_points

pywgrib2_xr.earth2grid_points(grid, point)[source]

Computes grid coordinates of selected Earth coordinates.

Parameters
  • grid (Grid) – Grid geometry instance.

  • point (Point) – Point geometry instance.

Returns

Calculated coordinates: a dictionary with keys {‘crot’, ‘srot’, ‘area’, ‘xpts’, ‘ypts’} where:

  • crot, srot : Cosine and sines of clockwise vector rotation.

  • area : Area weights in m^2. Proportional to the square of the map factor in the case of conformal projections.

  • xpts, ypts : Grid point coordinates`.

Return type

dict