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?

Re: writing fortran equivalent binary file using python

2013-11-14 Thread Sudheer Joseph
...@gmail.comwrote: On 14 November 2013 00:53, Sudheer Joseph sjo.in...@gmail.com wrote: My trial code with Python (data is read from file here) from netCDF4 import Dataset as nc import numpy as np XFIN=0.0,YFIN=-90.0,NREC=1461,DXIN=0.5;DYIN=0.5 TITLE=NCMRWF 6HOURLY FORCING MKS nf=nc

writing fortran equivalent binary file using python

2013-11-13 Thread Sudheer Joseph
Hi, I need to write a binary file exactly as written by fortran code below to be read by another code which is part of a model which is not advisable to edit.I would like to use python for this purpose as python has mode flexibility and easy coding methods. character(40) ::

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 jeanmic...@sequans.com To: Sudheer Joseph sudheer.jos...@yahoo.com Cc: python-list@python.org Sent: Tuesday, 20 August 2013 10:07 PM

Re: refresing the edited python function

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

Re: refresing the edited python function

2013-08-19 Thread Sudheer Joseph
- Original Message - From: Dave Angel da...@davea.name 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 thought it will be so difficult

refresing the edited python function

2013-08-18 Thread Sudheer Joseph
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 BOX NO: 21

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: 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 sjo.in...@gmail.comjavascript:_e({}, 'cvml', 'sjo.in...@gmail.com'); wrote: Dear Members, Is there a way to get

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 variable names with out other surrounding

netcdF4 variables

2013-05-31 Thread Sudheer Joseph
Dear members, I have been using python NetcdF for some time. I understand that we can get variables from a netcdf one by one by using temp=ncf.variable['temp'][:] but is there a way to get a list of variables with out the rest of the stuff as seen below? some hing like a

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)

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: memory management

2013-02-18 Thread Sudheer Joseph
Python version and OS please. And is the Python 32bit or 64bit? How much RAM does the computer have, and how big are the swapfiles ? Python 2.7.3 ubuntu 12.04 64 bit 4GB RAM Fairly big is fairly vague. To some people, a list with 100k members is huge, but not to a modern computer.