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ine, but diag_moldyn.py isn't working, I guess its because of the format of data.
I tried so long to convert this format using struct module in python
but didn't have luck,

anybody please??
I should make it work.

Soo

Re: Broken _DEN _WFK __HIST

Posted: Thu Nov 17, 2011 7:09 am
by jh502125
By the way, when i execute diag_moldyn.py it say that

AttributeError: 'netcdf_variable' object has no attribute 'data'


Help me.. :oops:

Re: Broken _DEN _WFK __HIST

Posted: Thu Nov 17, 2011 8:20 am
by jh502125
Oh. I just solved the problem.
My scipy version was too old. But I couldn't installed new version. (it cannot be done with sudo or yum. As ubuntu software has old version.)
Only was is download the package of new scipy and install it witch is kind of complex.

So, I just downloaded latest version of netcdf.py module in website.
http://www.java2s.com/Open-Source/Pytho ... cdf.py.htm

And, I just replaced the old netcdf.py with new one. like this.

Code: Select all

sudo cp ./netcdf.py  /usr/lib/python2.6/dist-packages/scipy/io/netcdf.py 


It turned out that __DEF, __HIST etc.. are all originally unformatted file, and netcdf.py is the module to encode ASCII code to txt.

Man.. I spent whole day for this... Sigh.
Just leaving notes for the gal pal who are struggling with the same issue as i.

Soo