jhu.htmExamples
Class lookup

java.lang.Object
  |
  +--jhu.htmExamples.lookup

public class lookup
extends java.lang.Object

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

java jhu.htmExamples.lookup level x y z
or
java jhu.htmExamples.lookup level ra dec
where
level     : the level depth to build the index (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 jhu.htmExamples.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 jhu.htmExamples.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
(package private) 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

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