Discussion:
problems between netcdf and scientific python
vale_cn\@libero\.it
2008-04-11 11:50:17 UTC
Permalink
Hello,
we are trying to install netcdf library and scientific python on a AMD64 with Fedora7. To check if they interact we have run the python script:

from Scientific.IO.NetCDF import NetCDF

but we obtain the following error:

[***@papa001169 ScientificPython-2.7.8]# python prova.py
Traceback (most recent call last):
File "prova.py", line 3, in <module>
from Scientific.IO.NetCDF import NetCDF
File "/home/Valeria/Desktop/ScientificPython-2.7.8/Scientific/IO/NetCDF.py", line 165, in <module>
from Scientific_netcdf import *
ImportError: No module named Scientific_netcdf

Does anyone have suggestions?
Thanks in advance
Valeria
Rob Hetland
2008-04-11 21:37:55 UTC
Permalink
It appears that this package hasn't been installed. You would do this
by typing

python setup.py build
sudo python setup.py install

at the top level of the package. However, you should know that
scientific has been deprecated, as it uses the older Numeric package.
The standard numerical python package is now numpy. See

http://www.scipy.org

To read in netcdf using numpy, I would use the netcdf4-python package:

netcdf4-python.googlecode.com/

This package also has netcdf3 support, if you don't want to install
netcdf4, and uses the same API as the Scientific netcdf package.

-Rob
---------- Forwarded message ----------
Date: Fri, Apr 11, 2008 at 7:50 AM
Subject: [netcdfgroup] problems between netcdf and scientific python
Hello,
we are trying to install netcdf library and scientific python on a
AMD64 with Fedora7. To check if they interact we have run the python
from Scientific.IO.NetCDF import NetCDF
File "prova.py", line 3, in <module>
from Scientific.IO.NetCDF import NetCDF
File "/home/Valeria/Desktop/ScientificPython-2.7.8/Scientific/IO/
NetCDF.py",
line 165, in <module>
from Scientific_netcdf import *
ImportError: No module named Scientific_netcdf
Does anyone have suggestions?
Thanks in advance
Valeria
_______________________________________________
netcdfgroup mailing list
http://www.unidata.ucar.edu/mailing_lists/
--
Dr. Richard P. Signell (508) 457-2229
USGS, 384 Woods Hole Rd.
Woods Hole, MA 02543-1598
----
Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
http://pong.tamu.edu/~rob
phone: 979-458-0096, fax: 979-845-6331
Blankenship, Clay B. (MSFC-NCC8259)[USRA]
2008-04-11 22:05:51 UTC
Permalink
Has anybody gotten NetCDF to work on an Intel Mac with the Absoft
compiler?

Thanks,
Clay Blankenship
USRA/National Space Science and Technology Center
Huntsville, AL
Roy Mendelssohn
2008-04-11 22:14:01 UTC
Permalink
Try setting up your computer thusly:

FC=/Applications/Absoft10/bin/f90
CPPFLAGS=-DpgiFortran
F77=/Applications/Absoft10/bin/f90
FFLAGS=-YEXT_NAMES=LCS -s -YEXT_SFX=_
FCFLAGS=-YEXT_NAMES=LCS -s -YEXT_SFX=_
FCFLAGS_F90=-YEXT_NAMES=LCS -s -YEXT_SFX=_


-Roy M.


On Apr 11, 2008, at 3:05 PM, Blankenship, Clay B. (MSFC-NCC8259)
Post by Blankenship, Clay B. (MSFC-NCC8259)[USRA]
Has anybody gotten NetCDF to work on an Intel Mac with the Absoft
compiler?
Thanks,
Clay Blankenship
USRA/National Space Science and Technology Center
Huntsville, AL
_______________________________________________
netcdfgroup mailing list
For list information or to unsubscribe, visit: http://
www.unidata.ucar.edu/mailing_lists/
**********************
"The contents of this message do not reflect any position of the U.S.
Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: ***@noaa.gov (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."

Loading...