[Numpy-discussion] How to use a function into import function in python

2011-04-08 Thread dileep kunjaai
Dear sir, I defined a function hit_rate( ) i want to use this into import function(name of function). For example: I defined a function as * def* hit_function(a,b,c): . ,... * return* value

Re: [Numpy-discussion] How to use a function into import function in python

2011-04-08 Thread Pauli Virtanen
Fri, 08 Apr 2011 16:24:58 +0530, dileep kunjaai wrote: I defined a function hit_rate( ) i want to use this into import function(name of function). Please read the Python tutorial first: http://docs.python.org/tutorial/ http://docs.python.org/tutorial/modules.html

[Numpy-discussion] netcdf to grib format

2011-04-08 Thread dileep kunjaai
Dear sir, Is there any tool for changing the 'netcdf' file format to 'grib' format in python or cdat -- DILEEPKUMAR. R J R F, IIT DELHI ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] How to use a function into import function in python

2011-04-08 Thread Alan G Isaac
On 4/8/2011 6:54 AM, dileep kunjaai wrote: I defined a function hit_rate( ) i want to use this into import function(name of function). http://docs.python.org/tutorial/modules.html Alan Isaac ___ NumPy-Discussion mailing list

[Numpy-discussion] Unable to clone git repository

2011-04-08 Thread Dave
Disclaimer: I'm on windows (Win7 x64) Following the instructions at: http://docs.scipy.org/doc/numpy/dev/gitwash/following_latest.html I got the following (rather unhelpful) error message: C:\dev\srcgit clone git://github.com/numpy/numpy.git Cloning into numpy... github.com[0: 207.97.227.239]:

Re: [Numpy-discussion] How to use a function into import function in python

2011-04-08 Thread dileep kunjaai
Thank you sir thank you for your quick and correct answer On Fri, Apr 8, 2011 at 5:52 PM, Alan G Isaac alan.is...@gmail.com wrote: On 4/8/2011 6:54 AM, dileep kunjaai wrote: I defined a function hit_rate( ) i want to use this into import function(name of function).

Re: [Numpy-discussion] netcdf to grib format

2011-04-08 Thread Nadav Horesh
Wikipedia has this link http://www.pyngl.ucar.edu/Nio.shtml Does it do the job? Nadav From: numpy-discussion-boun...@scipy.org [numpy-discussion-boun...@scipy.org] On Behalf Of dileep kunjaai [dileepkunj...@gmail.com] Sent: 08 April 2011 15:21 To:

Re: [Numpy-discussion] netcdf to grib format

2011-04-08 Thread dileep kunjaai
Thank you sir ,thank uuuvery much.. On Fri, Apr 8, 2011 at 9:03 PM, Nadav Horesh nad...@visionsense.com wrote: Wikipedia has this link http://www.pyngl.ucar.edu/Nio.shtml Does it do the job? Nadav -- *From:*

Re: [Numpy-discussion] netcdf to grib format

2011-04-08 Thread David Brown
Hi Nadav, I'm sorry to disappoint you but PyNIO has read-only support for GRIB. It can be used to convert GRIB to NetCDF but not the other way around. -Dave Brown PyNIO developer On Apr 8, 2011, at 10:31 AM, dileep kunjaai wrote: Thank you sir ,thank uuuvery much..

Re: [Numpy-discussion] netcdf to grib format

2011-04-08 Thread dileep kunjaai
No sir . I got another method for converting this,,, we can use CDO(climate data operators) this tool is help ful On Fri, Apr 8, 2011 at 10:04 PM, David Brown dbr...@ucar.edu wrote: Hi Nadav, I'm sorry to disappoint you but PyNIO has read-only support for GRIB. It can be used to convert

[Numpy-discussion] Arrays as nested dtype

2011-04-08 Thread Robert Love
Using np.loadtxt I can easily read my file that has columns of time, mode, 3 float64 for position and 3 for velocity like this. dt = dtype([('time', '|S12'), ('mode','|S3'),('rx','f8'),('ry','f8'),('rz','f8'),('vx','f8'),('vy','f8'),('vz','f8')]) data = np.loadtxt('file', dtype=dt) I can

Re: [Numpy-discussion] Arrays as nested dtype

2011-04-08 Thread Warren Weckesser
On Fri, Apr 8, 2011 at 9:23 PM, Robert Love rblove_li...@comcast.netwrote: Using np.loadtxt I can easily read my file that has columns of time, mode, 3 float64 for position and 3 for velocity like this. dt = dtype([('time', '|S12'),