Skip to content
Snippets Groups Projects
Commit f70427b9 authored by Peters, Wouter's avatar Peters, Wouter
Browse files

working on implementing Nio for tools/io.py

parent 207f037c
No related branches found
No related tags found
No related merge requests found
...@@ -112,7 +112,7 @@ class CT_CDF(object): ...@@ -112,7 +112,7 @@ class CT_CDF(object):
def has_date(self,dd): def has_date(self,dd):
if self.file.dimensions['date'] > 0: if self.file.dimensions['date'] > 0:
if dd in self.file.variables.['date'][:].tolist(): if dd in self.file.variables['date'][:].tolist():
return True return True
else: else:
return False return False
...@@ -121,7 +121,7 @@ class CT_CDF(object): ...@@ -121,7 +121,7 @@ class CT_CDF(object):
def GetVariable(self,varname): def GetVariable(self,varname):
""" get variable from ncf file""" """ get variable from ncf file"""
return self.file.variables.[varname][:] return self.file.variables[varname][:]
def StandardVar(self,varname): def StandardVar(self,varname):
""" return properties of standard variables """ """ return properties of standard variables """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment