octahedral

Functions

calculate_row_heights(lats)

Calculate the heights of latitude rows such that each latitude

plot_octahedral_grid(lons, lats, data, ax[, style])

Plot an octahedral reduced Gaussian grid using PolyCollection with given assumptions.

Module Contents

octahedral.calculate_row_heights(lats)

Calculate the heights of latitude rows such that each latitude value lies in the center of its row, with row boundaries equidistant between consecutive latitudes.

Parameters:

lats (array-like) – An array of latitude values.

Returns:

An array containing the heights of each row.

Return type:

numpy.ndarray

octahedral.plot_octahedral_grid(lons, lats, data, ax, style=None, **kwargs)

Plot an octahedral reduced Gaussian grid using PolyCollection with given assumptions.

Parameters:
  • lats (array) – 1D array of latitudes.

  • lons (array) – 1D array of longitudes.

  • data (1D array) – 1D data array.