edu.jhu.htm.app
Class lookup

java.lang.Object
  |
  +--edu.jhu.htm.app.lookup

public class lookup
extends java.lang.Object

This example code demonstrates the lookup functionality of the HTMindexImp. It can be invoked by

   java edu.jhu.htm.app.lookup level x y z
   
or
   java edu.jhu.htm.app.lookup level ra dec
 
   
where
          level	 : the level depth to go to (2 - 14)
          x,y,z	 : define a point on the unit sphere (can be non-unit vector)
          ra,dec	: "
 
 

it echoes the vector and returns its ID/Name for the given level.

Example 1: level 5, ra,dec = 10,25

 
 %java edu.jhu.htm.app.lookup 5 10 25
 
         (x,y,z) = 0.892539 0.157379 0.422618
         (ra,dec) = 10,25
         ID/Name = 16020 N322110
 

Example 2: level 14, x,y,z = -1,2,-23 (output is normed version)

 %java edu.jhu.htm.app.lookup 14 -1 2 -23
 
         (x,y,z) = -0.0432742 0.0865485 -0.995307
         (ra,dec) = 116.565,-84.4471
         ID/Name = 2486622255 S110031231200233
 
 


Constructor Summary
lookup()
           
 
Method Summary
static void main(java.lang.String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

lookup

public lookup()
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
java.lang.Exception