NDVar.get_data(dims=None, mask=None)

Retrieve the NDVar’s data with a specific axes order.

  • dims (str | Sequence[str]) – Sequence of dimension names (or single dimension name). The array that is returned will have axes in this order. To insert a new axis with size 1 use numpy.newaxis/None. The default is the order of dimensions in the NDVar.

  • mask (float) – If data is a masked array, set masked values to mask.


A reference to, view on or copy of the data (conservative memory usage).

Return type: