[Numpy-discussion] Fill a particular value in the place of number satisfying certain condition by another number in an array.

2011-08-01 Thread dileep kunjaai
Dear sir, How can we fill a particular value in the place of number satisfying certain condition by another number in an array. Example: A=[[[ 9.42233087e-42 - 4.71116544e-42 0.e+00 ..., 1.48303127e+01 1.31524124e+01 1.14745111e+01] [ 3.91788793e+00 1.95894396e+00

[Numpy-discussion] Array of size 'n' with common difference 1

2011-04-29 Thread dileep kunjaai
Dear sir, I am trying to make an array of varies from -60 to 90 with difference 0.25. I tried the following command ... import numpy as N lat=N.array(xrange(-6000, 9000, 25), dtype=float) print lat/100 I know that there is another easy method.. Please give me a replay

Re: [Numpy-discussion] Array of size 'n' with common difference 1

2011-04-29 Thread dileep kunjaai
Thank you sir: thank youvery much for ur time and consideration.. On Fri, Apr 29, 2011 at 9:11 PM, Christopher Barker chris.bar...@noaa.govwrote: On 4/29/11 12:31 AM, pratik wrote: On Friday 29 April 2011 12:56 PM, dileep kunjaai wrote: Dear sir, I am trying to make

[Numpy-discussion] Array as Variable using from cdms2 import MV2 as MV

2011-04-25 Thread dileep kunjaai
Dear sir, I am have 2 mxn numpy array say obs fcst. I have to calculate* sum of squre of (obs[i, j]-fcst[i, j])* using from cdms2 import MV2 as MV in CDAT without using for loop. For example: obs= [0.61.10.020.2 0.2 0.80.0.0.4 0.8 0.55.51.5

Re: [Numpy-discussion] Array as Variable using from cdms2 import MV2 as MV

2011-04-25 Thread dileep kunjaai
Thank you sir ...thanks a lot Keep in touch On Mon, Apr 25, 2011 at 12:47 PM, josef.p...@gmail.com wrote: On Mon, Apr 25, 2011 at 2:50 AM, dileep kunjaai dileepkunj...@gmail.com wrote: Dear sir, I am have 2 mxn numpy

[Numpy-discussion] cdms2.tvariable.TransientVariable to float variable

2011-04-25 Thread dileep kunjaai
Dear sir, How to change cdms2.tvariable.TransientVariable to float. Actually this cdms2.tvariable.TransientVariable obtained from using from cdms2 import MV2 Thanking you -- DILEEPKUMAR. R J R F, IIT DELHI ___ NumPy-Discussion mailing list

Re: [Numpy-discussion] cdms2.tvariable.TransientVariable to float variable

2011-04-25 Thread dileep kunjaai
SORRRY FRIENDS THAT I WRONGLY SENT On Mon, Apr 25, 2011 at 3:20 PM, dileep kunjaai dileepkunj...@gmail.comwrote: Dear sir, How to change cdms2.tvariable.TransientVariable to float. Actually this cdms2.tvariable.TransientVariable obtained from using from cdms2

[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

[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 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). http

Re: [Numpy-discussion] netcdf to grib format

2011-04-08 Thread dileep kunjaai
...@scipy.org [ numpy-discussion-boun...@scipy.org] On Behalf Of dileep kunjaai [ dileepkunj...@gmail.com] *Sent:* 08 April 2011 15:21 *To:* Discussion of Numerical Python *Subject:* [Numpy-discussion] netcdf to grib format Dear sir, Is there any tool for changing the 'netcdf' file format

Re: [Numpy-discussion] netcdf to grib format

2011-04-08 Thread dileep kunjaai
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.. On Fri, Apr 8, 2011 at 9:03 PM, Nadav Horesh nad...@visionsense.comwrote: Wikipedia has this link

Re: [Numpy-discussion] Rounding the decimal part of a real number

2011-04-07 Thread dileep kunjaai
Thank you sir... thank you very much. On Wed, Apr 6, 2011 at 9:36 PM, Christopher Barker chris.bar...@noaa.govwrote: On 4/6/11 6:24 AM, Alan G Isaac wrote: http://docs.scipy.org/doc/numpy/reference/generated/numpy.round_.html simple enough, of course, but just to be

[Numpy-discussion] Rounding the decimal part of a real number

2011-04-06 Thread dileep kunjaai
Dear sir, Is there any function for rounding the real number, for n (say) decimal places: Example: Let X= 6.9867349234888211237767867863478728314... but i need only 4 decimal position. That is the answer should be.. answer=6.9867 -- DILEEPKUMAR. R J R F, IIT DELHI

[Numpy-discussion] Please help me

2011-03-27 Thread dileep kunjaai
Dear sir, Can we take a numpy array excluding particular columns Example: A=[[ 20. 71. 57.5] [ 21. 71. 56. ] [ 22. 71. 74.3] [ 23. 71. 66. ] [ 24. 71. 96.5] [ 25. 71. 61.7] [ 20. 72. 72.9] (Here i am give up the last column) The answer should be [[ 20. 71. ]

Re: [Numpy-discussion] Please help me

2011-03-27 Thread dileep kunjaai
...@gmail.com wrote: I think A[:,0:2] should give you what you want. On 27/03/2011, at 6:24 PM, dileep kunjaai wrote: Dear sir, Can we take a numpy array excluding particular columns Example: A=[[ 20. 71. 57.5] [ 21. 71. 56. ] [ 22. 71. 74.3] [ 23. 71. 66. ] [ 24

[Numpy-discussion] help me

2011-03-25 Thread dileep kunjaai
Dear sir, I have a numpy array,,. in which i have to choose only different values only, For example Let A= [ 20. 21. 22. 23. 24. 25. 20. 21. 22. 23. 24. 25. 20. 21. 22. 23. 24. 25. 20. 21. 22. 23. 24. 25. 20. 21. 22. 23. 24. 25.] then the answer is [20, 21. 22.

Re: [Numpy-discussion] help me

2011-03-25 Thread dileep kunjaai
Thank you sir,,, Thank you very much. On Fri, Mar 25, 2011 at 5:32 PM, Miguel de Val-Borro miguel.de...@gmail.com wrote: On Fri, Mar 25, 2011 at 05:28:50PM +0530, dileep kunjaai wrote: Dear sir, I have a numpy array,,. in which i have to choose only different values only

Re: [Numpy-discussion] how to delete a particular column or row from numpy array based on some rule or value

2011-03-24 Thread dileep kunjaai
On Thu, Mar 24, 2011 at 1:12 PM, Sachin Kumar Sharma ssharm...@slb.comwrote: BB, In a numpy array of m x n size, I would like to delete few rows when a given element in that row is ‘nan’ or say any other value. For e.g. as in example given below, if I wish to delete a row when the 3

[Numpy-discussion] avoid a line...

2011-03-17 Thread dileep kunjaai
Dear sir, I am try to read a file of the following format, I want to avoid the first line and read the remaining as 'float' . Please help me... RainWindTempPrSal 0.11.10.020.2 0.2 0.50. 0. 0.4 0.8 0.55.51.50.5 1.5 3.50.51.5

Re: [Numpy-discussion] avoid a line...

2011-03-17 Thread dileep kunjaai
Thanks sir,, thanks a lot .. On Thu, Mar 17, 2011 at 1:16 PM, eat e.antero.ta...@gmail.com wrote: Hi, On Thu, Mar 17, 2011 at 9:36 AM, dileep kunjaai dileepkunj...@gmail.comwrote: Dear sir, I am try to read a file of the following format, I want to avoid the first line and read

[Numpy-discussion] Multiple Linear Regression

2011-03-16 Thread dileep kunjaai
Dear sir, Can we do multiple linear regression(MLR) in python is there any inbuilt function for MLR -- DILEEPKUMAR. R J R F, IIT DELHI ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] Multiple Linear Regression

2011-03-16 Thread dileep kunjaai
Thank you for your time and consideration. On Wed, Mar 16, 2011 at 5:17 PM, Angus McMorland amcm...@gmail.com wrote: On 16 March 2011 02:53, dileep kunjaai dileepkunj...@gmail.com wrote: Dear sir, Can we do multiple linear regression(MLR) in python is there any