Sandbox
From RHESSI Wiki
(Difference between revisions)
(New page: <source lang="csharp"> // Hello World in Microsoft C# ("C-Sharp"). using System; class HelloWorld { public static int Main(String[] args) { Console.WriteLine("Hello, Worl...) |
|||
Line 12: | Line 12: | ||
} | } | ||
} | } | ||
+ | </source> | ||
+ | |||
+ | <source lang="idl"> | ||
+ | phi = (90.0-latitude)/!radeg | ||
+ | theta = longitude/!radeg | ||
+ | |||
+ | x = (1.+height) * sin(phi) * cos(theta) | ||
+ | y = (1.+height) * sin(theta) * sin(phi) | ||
+ | z = (1.+height) * cos(phi) | ||
+ | |||
+ | IF keyword_set(debug) THEN stop | ||
+ | |||
+ | return, [transpose(x), transpose(y), transpose(z)] | ||
+ | |||
+ | END | ||
</source> | </source> |
Revision as of 21:57, 6 October 2008
// Hello World in Microsoft C# ("C-Sharp"). using System; class HelloWorld { public static int Main(String[] args) { Console.WriteLine("Hello, World!"); return 0; } }
phi = (90.0-latitude)/!radeg theta = longitude/!radeg x = (1.+height) * sin(phi) * cos(theta) y = (1.+height) * sin(theta) * sin(phi) z = (1.+height) * cos(phi) IF keyword_set(debug) THEN stop return, [transpose(x), transpose(y), transpose(z)] END