469,327 Members | 1,277 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

SciPy and NetCDF

I am going to be doing a lot of work with large data sets stored in
various netCDF files, and after checking out the alternatives, I would
really like to go with SciPy. The problem is that SciPy offers no
native netCDF support. I have checked out pycdf at
http://pysclint.sourceforge.net/pycdf/, but it requires Numerical
Python. Is there any way to get this working with SciPy without
installing more modules? The less my sysadmin has to install the
better. We are using Python 2.2.1 (and I don't know if upgrading is an
option).

Thanks in advance,
Scott

Jul 26 '05 #1
9 2589
sk*****@gmail.com wrote:
I am going to be doing a lot of work with large data sets stored in
various netCDF files, and after checking out the alternatives, I would
really like to go with SciPy. The problem is that SciPy offers no
native netCDF support.


You may be having an issue because there is a difference between SciPy
[http://www.scipy.org/] and ScientificPython
[http://starship.python.net/~hinsen/ScientificPython/] - despite the
name similarity, they are not the same thing.
Jul 26 '05 #2
Also, I am aware that ScientificPython offers netCDF support, but its
lack of robust documentation is a big downer. Plus we haven't been able
to successfully install it yet.

Scott

Jul 26 '05 #3
sk*****@gmail.com wrote:
I am going to be doing a lot of work with large data sets stored in
various netCDF files, and after checking out the alternatives, I would
really like to go with SciPy. The problem is that SciPy offers no
native netCDF support. I have checked out pycdf at
http://pysclint.sourceforge.net/pycdf/, but it requires Numerical
Python. Is there any way to get this working with SciPy without
installing more modules? The less my sysadmin has to install the
better. We are using Python 2.2.1 (and I don't know if upgrading is an
option).


Scipy requires Numeric, too.

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Jul 26 '05 #4
So wherever pycdf does a:

from Numeric import *

what is the equivalent for SciPy? i.e. where is the full Numeric module
in SciPy?

Jul 27 '05 #5
Scott Kilpatrick wrote:
So wherever pycdf does a:

from Numeric import *

what is the equivalent for SciPy? i.e. where is the full Numeric module
in SciPy?


Scipy also does a

from Numeric import *

Numeric isn't contained within Scipy; Scipy uses Numeric like pycdf does.

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Jul 27 '05 #6
Oh ok, so if my sysadmin installs SciPy, then to get the netCDF support
we need he just needs to then install pycdf?

I really appreciate the help.
Scott

Jul 27 '05 #7
Scott Kilpatrick wrote:
Oh ok, so if my sysadmin installs SciPy, then to get the netCDF support
we need he just needs to then install pycdf?


1. Install Numeric.
2. Install Scipy.
3. Install pycdf.

Numeric is not, yet, bundled into Scipy.

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Jul 27 '05 #8
Scott Kilpatrick wrote:
So wherever pycdf does a:

from Numeric import *

what is the equivalent for SciPy? i.e. where is the full Numeric module
in SciPy?


Python packages are in a pretty flat hierarchy. There really isn't a
"SciPy Numeric" and a "pycdf Numeric" - Numeric, as an independant
module, installs to pretty much the same location regardless of what
module has it as a dependancy. So "from Numeric import *" isn't
importing Numeric as a subpackage of pycdf, it is importing it from the
top level global package namespace.

That was a long way of saying that "from Numeric import *" in pycdf is
exactly the same as "from Numeric import *" in SciPy.

Note that the local/global import issue is subject to a
clarification/alteration in the near future - but for now we have to
live with a little ambiguity.
Jul 27 '05 #9
Thanks for your help guys! That cleared some stuff up for me. Now I
just have to wait for the sysadmin to get back from his vacation, bah.

Scott

Aug 4 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by hawkesed | last post: by
1 post views Thread by elziko | last post: by
1 post views Thread by tkpmep | last post: by
reply views Thread by Julien Fiore | last post: by
5 posts views Thread by lars.uffmann | last post: by
2 posts views Thread by robert | last post: by
reply views Thread by vorticitywolfe | last post: by
2 posts views Thread by Frank Moyles | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.