|
Re: Create smooth lines in IDL [message #68847 is a reply to message #68722] |
Tue, 24 November 2009 11:32  |
chenbo09@gmail.com
Messages: 15 Registered: May 2009
|
Junior Member |
|
|
On Nov 23, 9:23 am, kBob <krd...@gmail.com> wrote:
> On Nov 22, 12:39 pm, "chenb...@gmail.com" <chenb...@gmail.com> wrote:
>
>> Hello everyone,
>
>> Does anyone have a routine in IDL to create smooth line using given
>> vertexes?
>
>> Have a nice weekend!
>
>> Bo
>
> Search the ITTVIS Code Contribution Library for POLY_SIMPLIFY by Brad
> Gom. This function simplifies the vertices of an n-dimensional
> polyline.
>
> Kelly Dean
> Fort Collins, CO
Thank you guys, I found the routine. Have a nice holiday!
|
|
|
Re: Create smooth lines in IDL [message #68859 is a reply to message #68722] |
Mon, 23 November 2009 07:23  |
KRDean
Messages: 69 Registered: July 2006
|
Member |
|
|
On Nov 22, 12:39 pm, "chenb...@gmail.com" <chenb...@gmail.com> wrote:
> Hello everyone,
>
> Does anyone have a routine in IDL to create smooth line using given
> vertexes?
>
> Have a nice weekend!
>
> Bo
Search the ITTVIS Code Contribution Library for POLY_SIMPLIFY by Brad
Gom. This function simplifies the vertices of an n-dimensional
polyline.
Kelly Dean
Fort Collins, CO
|
|
|
Re: Create smooth lines in IDL [message #68867 is a reply to message #68722] |
Sun, 22 November 2009 17:36  |
ben.bighair
Messages: 221 Registered: April 2007
|
Senior Member |
|
|
On Nov 22, 2:39 pm, "chenb...@gmail.com" <chenb...@gmail.com> wrote:
> Hello everyone,
>
> Does anyone have a routine in IDL to create smooth line using given
> vertexes?
>
> Have a nice weekend!
>
> Bo
Hi,
Take a peek at the built-in SPLINE function.
You can see an example (copied below) in the docs, but adding plot
seals the deal.
X = [2.,3.,4.]
Y = (X-3)^2
T = FINDGEN(20)/10.+2
Z = SPLINE(X,Y,T)
PLOT, X,Y
PLOTS, T,Z, PSYM = -6
Cheers,
Ben
|
|
|