uxarray.UxDataArray.from_healpix

uxarray.UxDataArray.from_healpix#

classmethod UxDataArray.from_healpix(da, pixels_only=True, face_dim='cell', **kwargs)#

Loads a data array represented in the HEALPix format into a ux.UxDataArray, paired with a Grid containing information about the HEALPix definition.

Parameters:
  • da (xr.DataArray) – Reference to a HEALPix DataArray

  • pixels_only (bool, optional) – Whether to only compute pixels (face_lon, face_lat) or to also construct boundaries (face_node_connectivity, node_lon, node_lat)

  • face_dim (str, optional) – Data dimension corresponding to the HEALPix face mapping. Typically, is set to “cell”, but may differ.

Returns:

A ux.UxDataArray instance

Return type:

cls