#NEWLINE# def is_coordinate_variable( self , variable_name ) : #NEWLINE# #INDENT# assert ( variable_name in self . dataset . variables ) , variable_name #NEWLINE# variable = self . dataset . variables [ variable_name ] #NEWLINE# return ( ( len ( variable . dimensions ) == 1 ) and ( ( variable . dimensions [ 0 ] == variable_name ) or hasattr ( variable , '_CoordinateAliasForDimension' ) ) )