You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lucas: You are setting an netcdf dataset attribute when you do
self.somelist=somelist. The list of strings is being cast to a string, and a string
dataset attribute is added to the file.
From merckelb...@yahoo.com on February 18, 2010 11:15:16
Hi,
I'm trying to generate a subclass of netCDF3.Dataset, basically by doing
import netCDF3
class Mynetcdf(netCDF3.Dataset):
def init(self,somelist):
netCDF3.Dataset.ini(self,'tmp.nc','w')
self.somelist=somelist
alist=['a','b','c']
mncdf=Mynetcdf(alist)
Now, mncdf.somelist is in fact a string!
I'm using python 2.6 on ubuntu 9.04 and version netCDF 0.9
Any idea what goes wrong here?
Thanks a lot!
Lucas Merckelbach
Original issue: http://code.google.com/p/netcdf4-python/issues/detail?id=38
The text was updated successfully, but these errors were encountered: