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 #88730 is a reply to message #88729] Tue, 10 June 2014 12:05 Go to previous messageGo to previous message
kcwhite91 is currently offline  kcwhite91
Messages: 4
Registered: June 2014
Junior Member
On Tuesday, June 10, 2014 12:23:51 PM UTC-5, Matthew Argall wrote:
> 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)


Sorry, had to reform zall into zall1 because of the first where statement.
zall1=reform(zall, 10201, 4992, 19)
[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 00:04:56 PDT 2025

Total time taken to generate the page: 0.87854 seconds