Class MocReader


  • public class MocReader
    extends java.lang.Object
    Read a MOC and support tests to see if pixels/tiles are available.
    • Constructor Summary

      Constructors 
      Constructor Description
      MocReader​(java.lang.String file)
      Create a MocReader for a given file
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      java.util.List<skyview.survey.MocReader.OrderDesc> parse()
      Analyze the MOC to find out where the data for each order is found.
      void show()
      Describe basic characteristics of the MOC
      boolean test​(int order, long pixel)
      See if there is any overlap between the requested pixel and the data as indicated in the MOC.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MocReader

        public MocReader​(java.lang.String file)
                  throws java.lang.Exception
        Create a MocReader for a given file
        Throws:
        java.lang.Exception
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • show

        public void show()
        Describe basic characteristics of the MOC
      • parse

        public final java.util.List<skyview.survey.MocReader.OrderDesc> parse()
        Analyze the MOC to find out where the data for each order is found. This populates the data List.
      • test

        public boolean test​(int order,
                            long pixel)
        See if there is any overlap between the requested pixel and the data as indicated in the MOC.
        Parameters:
        order - The order of the requested pixel.
        pixel - The NESTED index of the requested pixel.
        Returns:
        whether there is any coverage in the region of the requested pixel.