#NEWLINE# def _get_data_array( self , param , subset ) : #NEWLINE# #INDENT# data = { k : self . data [ param ] [ k ] for k in self . data [ subset ] } #NEWLINE# dim_name = subset [ 1 : ] #NEWLINE# arr = xr . Dataset ( data ) . rename ( { #NEWLINE# #INDENT# 'dim_0' : 't' , #NEWLINE# 'dim_1' : 'x' , #NEWLINE# #UNINDENT# } ) . to_array ( dim = dim_name ) #NEWLINE# arr . coords [ 't' ] . values = self . data . _dt #NEWLINE# return arr