comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Avoiding redefinition of variable within loop.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Avoiding redefinition of variable within loop. [message #88729 is a reply to message #88725] Tue, 10 June 2014 10:23 Go to previous messageGo to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
Why not use the COMPLEMENT keyword in the Where() function? If zall and zall1 are the same size, then this would work:

keep_indices = where((zall[*,*,1,j] ne -32768.0) and (zall1[*,*,1,j] gt 10), COMPLEMENT=lost_indices)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Implied print and namespace
Next Topic: How to use SPAWN for creating multiple output files?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 09:29:46 PDT 2025

Total time taken to generate the page: 0.40381 seconds