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

Home » Public Forums » archive » how to write a for loop that skips over things
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
how to write a for loop that skips over things [message #91922] Tue, 15 September 2015 16:42 Go to next message
wdolan is currently offline  wdolan
Messages: 29
Registered: June 2015
Junior Member
So I'm looping through about 300 different scans from a satellite. each scan has about 401 points in it. The array looks like btstruc.btresid [401,300]
I also have information that corresponds like the date ex. btstruc.date [300], or btstruc.latitude [300](which should say the latitude where the scan was taken)

but out of the three hundred scans, about 50 of them have no corresponding information, and the array just has zeroes or nulls depending on the array.

So as I loop through the scans if I come across one of the ones that has nulls or zeroes, I want to skip it, and continue looping through the next scans. What sort of for loop should I set up so that if I come across one of these scans, I don't just end the loop altogether, I just skip the scan.

Thanks! And let me know if you need clarification, I don't know if I explained it very well.
Re: how to write a for loop that skips over things [message #91927 is a reply to message #91922] Wed, 16 September 2015 04:33 Go to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 09/16/2015 01:42 AM, Wayana Dolan wrote:
> I want to skip it, and continue looping through the next scans

Maybe you are looking for "continue":

http://www.exelisvis.de/docs/CONTINUE.html

Cheers,

Fabien
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: NetCDF: Converting time variable using start time from "units"
Next Topic: Defining a callback that respects timers?

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

Current Time: Wed Oct 08 11:33:13 PDT 2025

Total time taken to generate the page: 0.00479 seconds