|
Re: what 's mean? [message #85025 is a reply to message #85014] |
Mon, 24 June 2013 09:43  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 6/21/13 8:35 PM, Huiqiang Liu wrote:
> if ind(0) ne -1 then begin
> n = n-1
> tt=t
> continue
> endif
>
>
> waht is mean?
>
You have to give more details to really figure this out, but I can give
you some guesses.
I'm guessing there is a FOR loop around this snippet, maybe looping over
t? And probably a WHERE statement right before this?
If so, this snippet is checking to see if the WHERE statement found any
matches (ind[0] ne -1). If it does, it decrements n, saves t in tt, and
skips to the next iteration of the FOR loop (the "continue").
In general, I would get a good intro book to IDL like David's or mine
and read up on the basic programming constructs like loops and
conditions, as well as the WHERE statement.
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
|
|
|