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

Home » Public Forums » archive » CV_Coord function
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
CV_Coord function [message #88103] Thu, 20 March 2014 09:19 Go to next message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
IDL> print,CV_Coord(FROM_RECT=replicate(!values.F_NAN,3),/TO_SPHE RE)
0.000000 0.000000 NaN

Should not the result rather be (NaN,NaN,NaN) ?
alx.

{ x86_64 Win32 Windows Microsoft Windows 8.3 Nov 15 2013 64 64}
Re: CV_Coord function [message #88114 is a reply to message #88103] Fri, 21 March 2014 04:49 Go to previous messageGo to next message
andeh is currently offline  andeh
Messages: 23
Registered: April 2011
Junior Member
> Should not the result rather be (NaN,NaN,NaN) ?


I guess the angles don't matter if the length is not a number.
Re: CV_Coord function [message #88117 is a reply to message #88114] Fri, 21 March 2014 06:40 Go to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le vendredi 21 mars 2014 12:49:56 UTC+1, AJAS a écrit :
>> Should not the result rather be (NaN,NaN,NaN) ?
>
>
>
>
>
> I guess the angles don't matter if the length is not a number.

Right.
Except if you want to plot those angles (for example, a map in longitude and latitude). As usually in IDL, NAN data values would be unplotted. Here you get an extra point in (0,0).
alx.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLnetURL to test for files
Next Topic: how to convert a segmented image to _polygons_ and save it in a single ROI or .evf file?

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

Current Time: Wed Oct 08 09:13:58 PDT 2025

Total time taken to generate the page: 0.00548 seconds