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

Home » Public Forums » archive » Define a region between curves
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
Define a region between curves [message #94485] Thu, 08 June 2017 08:27 Go to next message
Rafael Cirolini is currently offline  Rafael Cirolini
Messages: 3
Registered: May 2017
Junior Member
Hello,

I'm needing help getting regions to map each of the regions between these equations below. These equations describes the BPT diagram btw.

Curve plot
x=findgen(135)*0.01-1.49
y= 0.61/(x-0.05)+1.3

Curve plot
xke=findgen(175)*0.01-1.49
yke= 0.61/(xke-0.47)+1.19

Line plot
xc=findgen(94)*0.1-0.2
yc= 1.01 * xc + 0.48

These equations plot two curves and a line, where they form four different regions. A region is below the first equation, the second is between the second and the first (which are the two curves), a third and fourth regions that are above and below the line equation also above the second curve equation.

I tried to apply the equations in the range they are defined in the diagram and I made this relation to go through a certain number of values:

for c= -12,9 do begin
number = make_array(1, 1, /float, value=c)
number = number/10
endfor

My problem is that I can not find a way to define each region. I tried to set a fixed value of x and vary y (x) but it did not work out. How can I define these regions without being polygons? Because my goal is to mount the tvscale and later the imcontour. I think i made myself clear of what i'm having trouble with. But summarizing my problem is to define a region between these equations to make a tvscale.
I accept any ideas or suggestions. Thanks.
Re: Define a region between curves [message #94486 is a reply to message #94485] Thu, 08 June 2017 08:32 Go to previous messageGo to next message
Rafael Cirolini is currently offline  Rafael Cirolini
Messages: 3
Registered: May 2017
Junior Member
I'm trying to do something like this https://drive.google.com/open?id=0BzUp8cEJ5O_EVy05VmpYbEdGQ2 c
Re: Define a region between curves [message #94487 is a reply to message #94486] Thu, 08 June 2017 09:05 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Thursday, June 8, 2017 at 5:32:29 PM UTC+2, Rafael Cirolini wrote:
> I'm trying to do something like this https://drive.google.com/open?id=0BzUp8cEJ5O_EVy05VmpYbEdGQ2 c

Hi,
I haven't tested this specific problem, but I would attempt to use the polygon function. Have a look at the graph on this help page:
http://www.harrisgeospatial.com/docs/POLYGON.html

Cheers,
Helder
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: NARR Lambert Conformal Conic projection to lat lon projection conversion
Next Topic: extracting pixel coordinates

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

Current Time: Wed Oct 08 08:49:46 PDT 2025

Total time taken to generate the page: 0.00486 seconds