CV_Coord function [message #88103] |
Thu, 20 March 2014 09:19  |
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 #88117 is a reply to message #88114] |
Fri, 21 March 2014 06:40  |
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.
|
|
|