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

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

dims : str | sequence of 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.

mask : scalar

If data is a masked array, set masked values to mask.


A shallow copy of the data is returned. To retrieve the data with the stored axes order use the .x attribute.