Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.057 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'indices': 0.07; 'ugly': 0.07; 'advice?': 0.09; 'mask': 0.09; 'posted': 0.15; '24,': 0.16; 'advice:': 0.16; 'bounds': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'link,': 0.16; 'pythonic': 0.16; 'url:file': 0.16; 'email addr:python.org,': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'posts': 0.26; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'am,': 0.29; 'array': 0.29; 'list:': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'lines': 0.31; 'boundary': 0.31; 'depth': 0.31; 'piece': 0.31; 'file': 0.32; 'there.': 0.32; 'url:python': 0.33; "can't": 0.35; 'beyond': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; 'really': 0.36; 'false': 0.36; 'url:listinfo': 0.36; 'doing': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'list': 0.37; 'nov': 0.38; 'to:addr:python-list': 0.38; 'that,': 0.38; 'to:addr:python.org': 0.39; 'mailing': 0.39; 'url:mail': 0.40; 'read': 0.60; 'most': 0.60; 'first': 0.61; "you've": 0.63; 'email name:python-list': 0.65; 'here': 0.66; 'news': 0.67; 'effective.': 0.68; 'mail,': 0.68; 'groups.': 0.74; 'actually,': 0.84; 'advise,': 0.84; 'url:edit': 0.84; 'carries': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=C9TH7Up4O+eyM9QUayA4I1e+TmN+Yp0LNfQ8ksW+pGg=; b=hpTdf0utCdI811BE7AbIpbKS3EFXR1vMdI8jgWL38ZQCUc4UtnYLWqIiA2/rj4QN+3 Z8jGuPkKw8C46dCos7Zw04Mv0dMYkzL0nqiXXLo6S7Zfd36Tm3mmCcPGAB0U6imx/cGr aSjlpqxAg/acGsiZ/jPm3x55HQr24FDUBWXIx7qdguDmb17UVju+PoJbSxrmepNaOnZo Sgj8iRhMeS0dgyaWUmhTQTygQjq6lo6cx9amqhuGZIP9QIlPxuGIAMF0oRJvEoDkrfg8 G7zGyaNga0fFptxGrvpxwvY957FLM0YBBPlIA4bTPek9XcVioihZlyckRirLIeK0Z8XD CuAQ== MIME-Version: 1.0 X-Received: by 10.68.25.68 with SMTP id a4mr552439pbg.173.1385217311327; Sat, 23 Nov 2013 06:35:11 -0800 (PST) In-Reply-To: <1496ebc4-11da-4963-834d-4917a19e266c@googlegroups.com> References: <1496ebc4-11da-4963-834d-4917a19e266c@googlegroups.com> Date: Sun, 24 Nov 2013 01:35:11 +1100 Subject: Re: finding masking boundary indices From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1385217315 news.xs4all.nl 15963 [2001:888:2000:d::a6]:57946 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:60304 On Sun, Nov 24, 2013 at 1:29 AM, Sudheer Joseph wrote= : > Hi, > I have a masked array like in the attached link, I wanted to f= ind 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 findi= ng the boundary indices? please advice? > https://drive.google.com/file/d/0B3heUQNme7G5d2dYZzgxTG1NdG8/edit?usp=3Ds= haring First piece of advice: Don't post a link that requires that you share the file with us :) We can't see what you've posted there. Actually, just don't post a link at all, for preference; include your code right here in the mail, that's the most effective. Also: Please don't use Google Groups. It makes your posts ugly in the archive, as the lines are not wrapped, and it has some abysmal practices with regard to replies/follow-ups. There are better news clients around; alternatively, you can read and post on the mailing list python-list@python.org, which carries the same content. Here's the mailing list: https://mail.python.org/mailman/listinfo/python-list Beyond that, I can't really advise, as I have no idea what your code is doi= ng :) ChrisA