def is_geophysical(ds, variable):
ncvar = ds.variables[variable]<EOL>standard_name = getattr(ncvar, '<STR_LIT>', '<STR_LIT>')<EOL>if not standard_name:<EOL><INDENT>return False<EOL><DEDENT>if standard_name and standard_name not in get_unitless_standard_names():<EOL><INDENT>units = getattr(ncvar, '<STR_LIT>', '<STR_LIT>')<EOL>if units == '<STR_LIT>':<EOL><INDENT>return False<EOL><DEDENT><DEDENT>if not hasattr(ncvar, '<STR_LIT>') or not hasattr(ncvar, '<STR_LIT>'):<EOL><INDENT>return False<EOL><DEDENT>if getattr(ncvar, '<STR_LIT>') in ('<STR_LIT:time>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>return False<EOL><DEDENT>if len(ncvar.shape) == <NUM_LIT:0>:<EOL><INDENT>return False<EOL><DEDENT>if '<STR_LIT>' in ncvar.standard_name:<EOL><INDENT>return False<EOL><DEDENT>if getattr(ncvar, '<STR_LIT>', None):<EOL><INDENT>return False<EOL><DEDENT>if getattr(ncvar, '<STR_LIT>', None):<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Returns true if the dataset's variable is likely a geophysical variable