pywgrib2_xr.grid2earth_grid

pywgrib2_xr.grid2earth_grid(grid)[source]

computes Earth coordinates of all the grid points.

Parameters

grid (Grid) – Grid definition instance.

Returns

Calculated coordinates: a dictionary with keys {‘crot’, ‘srot’, ‘area’, ‘lat’, ‘lon’, ‘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.

  • lat, lon : Latitudes and longitudes.

  • xpts, ypts : Grid point coordinates.

Return type

dict