def is_single_trajectory(nc, variable):
<EOL>dims = nc.variables[variable].dimensions<EOL>cmatrix = coordinate_dimension_matrix(nc)<EOL>for req in ('<STR_LIT:x>', '<STR_LIT:y>', '<STR_LIT:t>'):<EOL><INDENT>if req not in cmatrix:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>t = get_time_variable(nc)<EOL>if cmatrix['<STR_LIT:x>'] != (t,):<EOL><INDENT>return False<EOL><DEDENT>if cmatrix['<STR_LIT:x>'] != cmatrix['<STR_LIT:y>']:<EOL><INDENT>return False<EOL><DEDENT>if cmatrix['<STR_LIT:x>'] != cmatrix['<STR_LIT:t>']:<EOL><INDENT>return False<EOL><DEDENT>if '<STR_LIT:z>' in cmatrix and cmatrix['<STR_LIT:x>'] != cmatrix['<STR_LIT:z>']:<EOL><INDENT>return False<EOL><DEDENT>if dims == cmatrix['<STR_LIT:x>']:<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Returns true if the variable is a single trajectory feature

:param netCDF4.Dataset nc: An open netCDF dataset
:param str variable: name of the variable to check