Commit 29ecd4ec authored by Peters, Wouter's avatar Peters, Wouter
Browse files

updated to netcdf4 interface, extra methods added to make complete again

parent fa59b3f5
......@@ -202,7 +202,7 @@ class CT_CDF(netCDF4.Dataset):
return ('date',)
def add_date_dimformat(self):
def add_date_dim_format(self):
if 'yyyymmddhhmmss' in self.dimensions.keys():
pass
......@@ -225,7 +225,7 @@ class CT_CDF(netCDF4.Dataset):
if not self.variables.has_key('date'):
return False
if self.dimensions['date'].isunlimited:
if dd in self.GetVariable('date').tolist():
if dd in self.get_variable('date').tolist():
return True
else:
return False
......@@ -455,7 +455,7 @@ if __name__ == '__main__':
dimparams=ncf.add_params_dim(200)
dimdate=ncf.add_date_dim()
dimidate=ncf.add_date_dimformat()
dimidate=ncf.add_date_dim_format()
dimlon,dimlat=ncf.add_latlon_dim()
savedict=std_savedict.copy()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment