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

Home » Public Forums » archive » TRIANGULATE's bug?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
TRIANGULATE's bug? [message #92310] Sun, 15 November 2015 21:44 Go to previous message
Pachacoti is currently offline  Pachacoti
Messages: 2
Registered: November 2015
Junior Member
Hi,

I'm really confused by TRIANGULATE. I got an error message with the following commands:

IDL> theta=dindgen(360L)
IDL> rad=dindgen(500L)
IDL> xpol=rad#cos(theta/1.8d2*!dpi)
IDL> ypol=rad#sin(theta/1.8d2*!dpi)
IDL> triangulate,xpol,ypol,tri
% TRIANGULATE: Points are co-linear, no solution.
% Execution halted at: $MAIN$

However, the following works:
IDL> xpol=rad#cos(float(theta/1.8d2*!dpi))
IDL> ypol=rad#sin(float(theta/1.8d2*!dpi))
IDL> triangulate,xpol,ypol,tri
IDL> help,tri
TRI LONG = Array[3, 358920]

My intention is to convert a polar coordinated image to a Cartesian projected one. I'm faced with this when trying to convert float to double. Could anybody shed some light on this? How should I correct? Thx in advance.

Cheers, Pachacoti
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: MPFIT .TIED
Next Topic: Averaging timesteps on large geospatial dataset?

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

Current Time: Wed Oct 08 11:43:53 PDT 2025

Total time taken to generate the page: 0.00554 seconds