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

Home » Public Forums » archive » Re: How to handle gaps in plot?
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: How to handle gaps in plot? [message #45123 is a reply to message #45120] Thu, 11 August 2005 08:14 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
caitouer wrote:
> Hi, everyone,
> I have a question about gaps in data array. Normally when there are
> gaps in data array, people would fill the gap with extraordinary large
> or small number. Then when you use plot, IDL will detect gap
> automatically and will not connect two intervals when data is
> available. However, sometimes the data format is not so friendly. For
> example, the data file is not filled with extraordinary large or small
> number. You do not know when you have gap and how large the gap is.
> Even worse, the time is irregular. Is there a easy way to plot the
> valid data only?

Well, it's easy to find the valid data, e.g. for given MIN_VALUE and MAX_VALUE parameters for your
dependent data,

Idx = WHERE( YData GT MIN_VALUE AND YData LT MAX_VALUE, Count )
IF ( Count GT 0 ) THEN $
PLOT, XData[Idx], YData[Idx] $
ELSE $
MESSAGE, 'No valid data!'

Is this the sort of thing you mean?

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Speeding Up Oracle DataBase Access with IDL DataMiner
Next Topic: Re: Check if a point is inside a polygon mesh

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

Current Time: Sat Oct 11 10:53:22 PDT 2025

Total time taken to generate the page: 0.32150 seconds