On Mon, Feb 25, 2008 at 8:32 PM, Trond Kristiansen <[EMAIL PROTECTED]> wrote:
> Hi again.
>
> I have attached the function that the FOR loop is part of as a python file.
> What I am trying to do is to create a set of functions that will read the
> output files (NetCDF) from running the ROMS mode
On Mon, Feb 25, 2008 at 7:08 PM, Trond Kristiansen <[EMAIL PROTECTED]> wrote:
>
>
> Hi all.
> This is my first email to the discussion group. I have spent two days
> trying
> to get a particular loop to speed up, and the best result I got was this:
>
> tmp1=zeros((eta,xi),float)
>
> tmp2=zeros((et
Hi again.
I have attached the function that the FOR loop is part of as a python file.
What I am trying to do is to create a set of functions that will read the
output files (NetCDF) from running the ROMS model (ocean model). The output
file is organized in xi (x-direction), eta (y-direction), and
I would definitely suggest using scipy's weave.inline for this. It
seems like this particular function can be translated into C code
really easily, which would give you a HUGE speed up. Look at some of
the examples in scipy/weave/examples to see how to do this. The numpy
book also has a section
On Mon, Feb 25, 2008 at 8:08 PM, Trond Kristiansen <[EMAIL PROTECTED]> wrote:
>
>
> Hi all.
> This is my first email to the discussion group. I have spent two days trying
> to get a particular loop to speed up, and the best result I got was this:
Can you try to repost this in such a way that th
Hi all.
This is my first email to the discussion group. I have spent two days trying
to get a particular loop to speed up, and the best result I got was this:
tmp1=zeros((eta,xi),float)
tmp2=zeros((eta,xi),float)
tmp1=tmp1+1
tmp2=tmp2+1
for i in range(xi):
for j in range(eta):
Hi all!
I have just subscribed to this mailing list and would like to
say hello to everybody and a big thank you to all the people
involved in the development of numpy and scipy.
My first question is about packaging numpy scripts into executables.
I have googled around and read mailing-list post
On Mon, Feb 25, 2008 at 2:58 PM, Christopher Kerr <[EMAIL PROTECTED]> wrote:
> I don't know if this is the right place to report bugs, but I couldn't find
> anywhere else on the website...
>
> random.randint(min,max) from python core returns an integer between min and
> max inclusive. The docume
I don't know if this is the right place to report bugs, but I couldn't find
anywhere else on the website...
random.randint(min,max) from python core returns an integer between min and
max inclusive. The documentation on the website says that
numpy.random.randint(min,max [,size]) does this too, but
[EMAIL PROTECTED] wrote:
> I would like to change the Endianess of a large of data written on PC so I
> can process it on a Solaris box. I see that the dtype.str attribute is
> read-only.
>
> TIA
>
> David Lees
>
>
You can use the byteswap method to change the byte order of your array.
>>
On Mon, Feb 25, 2008 at 12:44 PM, <[EMAIL PROTECTED]> wrote:
> I would like to change the Endianess of a large of data written on PC so I
> can process it on a Solaris box. I see that the dtype.str attribute is
> read-only.
Read it in with the appropriately-endian dtype in the first place.
i
I would like to change the Endianess of a large of data written on PC so I can
process it on a Solaris box. I see that the dtype.str attribute is read-only.
TIA
David Lees
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.
> #551: numpy.ndarray messed up after unpickling
I have added a comment to this one. I don't think it should be
closed. I think there is a problem with initialization of the
ndarray. The normal constructor works fine, loading from pickle does
not.
_
Good morning,
I've just done a fresh checkout from SVN and attempted to build numpy on
a Solaris 10 system. The build actually completes normally. However,
when attempting to import numpy I get the following error:
Python 2.5.1 (r251:54863, Jan 21 2008, 11:03:00) [C] on sunos5
Type "help", "c
14 matches
Mail list logo