def get_lat_variable(nc):
if '<STR_LIT>' in nc.variables:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>latitudes = nc.get_variables_by_attributes(standard_name="<STR_LIT>")<EOL>if latitudes:<EOL><INDENT>return latitudes[<NUM_LIT:0>].name<EOL><DEDENT>return None<EOL>
Returns the variable for latitude

:param netcdf4.dataset nc: an open netcdf dataset object