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

Home » Public Forums » archive » Re: PLOT question
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: PLOT question [message #22977 is a reply to message #22971] Wed, 20 December 2000 10:51 Go to previous messageGo to previous message
Paul van Delst is currently offline  Paul van Delst
Messages: 364
Registered: March 1997
Senior Member
Stuart Colley wrote:
>
> I have some data that is periodic, y=f(t) and the data is plotted as
> plot, t, y The problem is I'd like t to plot phase angle rather than
> time, the problem being the phase angle is between 0 and 1 and repeats.
> Attempting to plot the data you just get a plot between 0 and 1, what I'd
> like to be able to plot is each cycle of the data with it's phase angle.
>
> Any ideas on how to get the plot axes right?

If I understand you correctly, you want to remove the discontinuity in your phase angle - like in a
TAN plot that goes from +/- pi or +/- pi/2 ?

If so, one way is to calculate the phase angle derivatives. If there is a change in sign near a
known boundary (0 or 1), you can add or subtract (based on the sign of the derivative) the required
amount to make the phase angle curve continuous.

I did this many years ago in fortan to view the phase of radiometric signals from an interferometer.
They bounced between +/- pi and doing the above made the plot relatively (insert some hand-waving
here) continuous. If you have a noisy signal, then it can get a bit more difficult as the noise can
confuse matters when the signal is close to a boundary, i.e. you get a lot of flipping back and
forth, but then the result is a continuous curve with dropouts which, in some respects, may also be
a useful plot.

If this is not what you mean, then delete this message.

paulv.


--
Paul van Delst Ph: (301) 763-8000 x7274
CIMSS @ NOAA/NCEP Fax: (301) 763-8545
Rm.207, 5200 Auth Rd. Email: pvandelst@ncep.noaa.gov
Camp Springs MD 20746
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: temporary() pitfall
Next Topic: PV-WAVE

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

Current Time: Fri Oct 10 04:55:39 PDT 2025

Total time taken to generate the page: 1.35424 seconds