finding masking boundary indices

2013-11-23 Thread Sudheer Joseph
Hi, I have a masked array like in the attached link, I wanted to find indices of the bounds where the mask is false ie in this case of depth file where there is depth less than shore. Is there a pythonic way of finding the boundary indices? please advice? https://drive.google.com/file

Re: writing fortran equivalent binary file using python

2013-11-14 Thread Sudheer Joseph
Thank you, But it wont allow to write it in unformatted way so that the fortran code can read with open(11,file="input.bin") read(11) IWI,JWI,XFIN,YFIN,DXIN,DYIN,NREC,WDAY with best regards, sudheer On Thu, Nov 14, 2013 at 7:48 PM, Oscar Benjamin wrote: > O

writing fortran equivalent binary file using python

2013-11-13 Thread Sudheer Joseph
C,WDAY) for i in np.arange(0,NREC): f.write(U[i,:,:],V[i,:,:]) f.close() But the issue is that f.write do not allow multiple values( it allows one by one so throws an error with above code ) on same write statement like in the fortran code. experts may please advice if there a solution for this? with best regards, Sudheer -- https://mail.python.org/mailman/listinfo/python-list

Re: refresing the edited python function

2013-08-21 Thread Sudheer Joseph
Thank you,     But I wish if there was a foolproof reload with best regards, Sudheer - Original Message - > From: Jean-Michel Pichavant > To: Sudheer Joseph > Cc: python-list@python.org > Sent: Tuesday, 20 August 2013 10:07 PM > Subject: Re: refresing th

Re: refresing the edited python function

2013-08-19 Thread Sudheer Joseph
- Original Message - > From: Dave Angel > To: python-list@python.org > Cc: > Sent: Monday, 19 August 2013 4:45 PM > Subject: Re: refresing the edited python function > > Sudheer Joseph wrote: > >> Thank you Dieter, >> I never

Re: refresing the edited python function

2013-08-19 Thread Sudheer Joseph
some solution will be evolved. with best regards, Sudheer > > From: dieter >To: python-list@python.org >Sent: Monday, 19 August 2013 11:48 AM >Subject: Re: refresing the edited python function > > >Sudheer Joseph writes: > >&

refresing the edited python function

2013-08-18 Thread Sudheer Joseph
e. So what is the standard way to update the function for further tests after an edit? with best regards, Sudheer   ******* Sudheer Joseph Indian National Centre for Ocean Information Services Ministry of Earth Sciences, Govt. of India POST

Re: python netcdf

2013-06-05 Thread Sudheer Joseph
Thank you very much Jason With best regards Sudheer On Thursday, June 6, 2013, Jason Swails wrote: > > > > On Wed, Jun 5, 2013 at 9:07 PM, Sudheer Joseph > > > wrote: > >> Dear Members, >> Is there a way to get the time:origin attribute f

python netcdf

2013-06-05 Thread Sudheer Joseph
Dear Members, Is there a way to get the time:origin attribute from a netcdf file as string using the Python netcdf? with best regards, Sudheer -- http://mail.python.org/mailman/listinfo/python-list

Re: netcdF4 variables

2013-06-01 Thread Sudheer Joseph
Thank you very much it works for me. with best regards, Sudheer On Saturday, June 1, 2013 12:51:01 PM UTC+5:30, Andreas Perstinger wrote: > On 01.06.2013 05:30, Sudheer Joseph wrote: > > > some hing like a list > > > xx=nc,variables[:] > > > should get me all

netcdF4 variables

2013-05-31 Thread Sudheer Joseph
ing like a list xx=nc,variables[:] should get me all variable names with out other surrounding stuff?? with best regards. Sudheer In [4]: ncf.variables Out[4]: OrderedDict([(u'LON', ), (u'LAT', ), (u'DEPTH1_1', ), (u'TAX', ), (u'DIF_FD1', ),

formatted output

2013-05-07 Thread Sudheer Joseph
Dear members, I need to print few arrays in a tabular form for example below array IL has 25 elements, is there an easy way to print this as 5x5 comma separated table? in python IL=[] for i in np.arange(1,bno+1): IL.append(i) print(IL) %

Re: memory management

2013-02-18 Thread Sudheer Joseph
it's been a long time > > since I did correlations. But are you sure you're not just implementing > > an O(n**3) algorithm or something, and it's just extremely slow? > Correlation do not involve such computation normally, I am not sure if internally python does

memory management

2013-02-18 Thread Sudheer Joseph
HI, I have been trying to compute cross correlation between a time series at a location f(1) and the timeseries of spatial data f(XYT) and saving the resulting correlation coefficients and lags in a 3 dimensional array which is of fairly big size. Though the code I made for this purpose

Re: Need the list of XML parsers

2011-01-17 Thread Sudheer Satyanarayana
or previous forum links. Thanks Venu lxml is a good XML parser. It supports xpath and IIRC, xquery. I wrote a blog post about it a while ago - http://techchorus.net/web-scraping-lxml -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http

Re: FTP problem

2011-01-14 Thread Sudheer Satyanarayana
gaierror: [Errno 11001] getaddrinfo failed That part of the error indicates, your computer is unable to resolve the IP address for the hostname ftp.indexftp.barcap.com Make sure the hostname is valid. -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus

Re: email discovering code

2010-12-08 Thread Sudheer Satyanarayana
64 encoded = base64.b64encode('m...@email.address') print base64.b64decode(encoded) -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http://techchorus.net Web and IT services - http://binaryvibes.co.in -- http://mail.python.org/mailman/listinfo/python-list

Re: parse xml

2010-10-15 Thread Sudheer Satyanarayana
e, parse doc = parse('boolean_width.xml') my_node_list = doc.getElementsByTagName("n") my_n_node = my_node_list[0] my_child = my_n_node.firstChild my_text = my_child.data -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http://te

Re: Write Python Book - Packt Publishing.

2010-10-13 Thread Sudheer Satyanarayana
b services using Python 6. Building and consuming web services using PHP Let me know if you're interested in the topics above. -- Sudheer Satyanarayana Binary Vibes Information Technologies Pvt. Ltd. Postal Address: #506, 10th B Main Road, I Block, Jayanagar, Bangalore

Re: Write Python Book - Packt Publishing.

2010-10-13 Thread Sudheer Satyanarayana
Hello, Apologies for spamming the list. I didn't realize the publisher sent the email to the list. I thought it was a private email and replied to it instantly. -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http://techchorus.net Web a

subprocess query

2010-07-03 Thread Sudheer
din=p1.stdout,stdout=PIPE) p1.stdin.write("hello") p1.stdin.close() output = p2.stdout.read() print output -- Thanks Sudheer -- http://mail.python.org/mailman/listinfo/python-list

unsubscribe to send daily mails

2009-03-26 Thread Sudheer Rapolu
Hello Please unsubscribe to send daily mails to me. Warm Regards Sudheer -- http://mail.python.org/mailman/listinfo/python-list

Re: Using C struct in Python

2006-06-08 Thread Sudheer Gupta
Dennis Lee Bieber wrote: > On Wed, 07 Jun 2006 17:35:58 -0400, Sudheer Gupta <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > >> print cp >> print cp.next >> >> There is a typo in this. Second statement was suppose to be

Re: Using C struct in Python

2006-06-07 Thread Sudheer Gupta
Hi, Thanks a lot for your responses. It cleared up a lot for me !! Its a superglue developed and used in house and cannot be revealed .. sorry for that !! I am only extending to the existing glue. Have contacted the author regarding the problem. Sorry for confusion -Sudheer John Machin

Using C struct in Python

2006-06-07 Thread Sudheer Gupta
s looking at the struct: print cp -> (call_t*) 0xb0... print cp.next -> (struct call *) 0xb0... Is python not intelligent enough to diagnose the next pointer ?? Responses appreciated. Thanks Sudheer -- http://mail.python.org/mailman/listinfo/python-list

Using C struct in Python** corrected

2006-06-07 Thread Sudheer Gupta
looking at the struct: print cp -> (call_t*) 0xb0... print cp.next -> (struct call *) 0xb0... Is python not intelligent enough to diagnose the next pointer ?? Responses appreciated. Thanks Sudheer -- http://mail.python.org/mailman/listinfo/python-list