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

Home » Public Forums » archive » Compute area between curves
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: Compute area between curves [message #62910 is a reply to message #62821] Mon, 13 October 2008 03:15 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
frankosuna <frankosuna@gmail.com> writes:

> On Oct 12, 3:17�pm, James Kuyper <jameskuy...@verizon.net> wrote:
>> frankosuna wrote:
>>> Dear IDLers,
>>
>>> How can I compute the area between two curves given two functions?
>>
>> Are the curves closed? That is, do you create the complete curve by
>> drawing a line from the final <x,y> pair to the first <x,y> pair?
>>
>> Are the x values the same for the two curves? Are they evenly spaced?
>>
>> Note: you don't need to post the same question multiple times, this is a
>> newsgroup, not a chat room. Your message will stay up indefinitely. As a
>> general rule, you might have to wait 24 hours or more before getting an
>> answer.
>
> The curves are not closed... I posted some images of the actual rings
> I am trying
> to compare. They look like parabolas. The rings might differ in shift
> and slight rotation from each other. So because the rings might be

Sorry, you are not giving enough information. I.e. your problem is
not well defined enough. The "area" under the curves assumes we know
what "under" means. One definition could be under=Y, another under=X.
And I presume the best "under" might actually be some kind of radial
coordinate. Until you know which one you mean, it's difficult to
comment.

But assuming it's the radial version, i.e. centered on the planet,
then why not transform your X-Y curves to be R-PHI curves, with R and
PHI measured from the planet center. Then you could resample to a
uniform PHI grid, and compute the whatever difference you want,
straightforwardly.

Good luck,
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: cbmarkwardt+usenet@gmail.com
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Contour Issues... Help please
Next Topic: IDL User Group Meeting Huge Success: Correction

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

Current Time: Sun Oct 12 17:06:49 PDT 2025

Total time taken to generate the page: 0.95796 seconds