Package cds.moc

Class HealpixMoc

All Implemented Interfaces:
Cloneable, Comparable<Moc>, Iterable<MocCell>

public class HealpixMoc extends SMoc
HEALPix Multi Order Coverage Map (MOC) => DEPRECATED CLASS => use SMoc instead THIS CLASS IS ONLY PROVIDED FOR COMPATIBILITY => TAKE THE TIME TO REWRITE YOUR CODE BY USING SMoc This object provides read, write and process methods to manipulate an HEALPix Multi Order Coverage Map (MOC) A MOC is used to define a sky region by using HEALPix sky tesselation
  • Constructor Details

    • HealpixMoc

      public HealpixMoc(SMoc moc)
      Wrapper => just for helping the portability
    • HealpixMoc

      public HealpixMoc()
      Deprecated.
      HEALPix Multi Order Coverage Map (MOC) creation
    • HealpixMoc

      public HealpixMoc(int maxLimitOrder) throws Exception
      Deprecated.
      Moc Creation with a specified max limitOrder
      Throws:
      Exception
    • HealpixMoc

      public HealpixMoc(int minLimitOrder, int maxLimitOrder) throws Exception
      Deprecated.
      Moc Creation with a specified min and max limitOrder (by default 0..29)
      Throws:
      Exception
    • HealpixMoc

      public HealpixMoc(String coordSys, int minLimitOrder, int maxLimitOrder) throws Exception
      Deprecated.
      Moc Creation with a specified min and max limitOrder (by default 0..29)
      Throws:
      Exception
    • HealpixMoc

      public HealpixMoc(String s) throws Exception
      Deprecated.
      HEALPix Multi Order Coverage Map (MOC) creation and initialisation
      Throws:
      Exception
    • HealpixMoc

      public HealpixMoc(InputStream in) throws Exception
      Deprecated.
      HEALPix Multi Order Coverage Map (MOC) creation and initialisation via a stream
      Throws:
      Exception
    • HealpixMoc

      public HealpixMoc(InputStream in, int mode) throws Exception
      Deprecated.
      HEALPix Multi Order Coverage Map (MOC) creation and initialisation via a stream, either in JSON encoded format , ASCII encoded format or in FITS encoded format
      Throws:
      Exception
  • Method Details

    • dup

      public HealpixMoc dup()
      Wrapper => just for helping the portability
      Overrides:
      dup in class SMoc
    • setMinLimitOrder

      public void setMinLimitOrder(int limitOrder) throws Exception
      Deprecated.
      Set the Min limit order supported by the Moc (by default 0)
      Throws:
      Exception
    • setMaxLimitOrder

      public void setMaxLimitOrder(int limitOrder) throws Exception
      Deprecated.
      Set the limit order supported by the Moc
      Throws:
      Exception
    • getMinLimitOrder

      public int getMinLimitOrder()
      Deprecated.
      Provide the minimal limit order supported by the Moc (by default 0)
    • getMaxLimitOrder

      public int getMaxLimitOrder()
      Deprecated.
      Provide the limit order supported by the Moc
    • getLimitOrder

      public int getLimitOrder()
      Deprecated.
      see getMaxLimitOrder()
    • setLimitOrder

      public void setLimitOrder(int limitOrder) throws Exception
      Deprecated.
      see setMaxLimitOrder()
      Throws:
      Exception
    • getSize

      public int getSize()
      Deprecated.
      Provide the number of Healpix pixels (for all MOC orders)
    • getMaxOrder

      public int getMaxOrder()
      Deprecated.
      Provide the greatest order really used by the MOC
    • setCheckConsistencyFlag

      public void setCheckConsistencyFlag(boolean flag) throws Exception
      Deprecated.
      Set the check consistency flag.
      Throws:
      Exception
    • checkAndFix

      public void checkAndFix() throws Exception
      Deprecated.
      Check and fix the consistency of the moc
      Throws:
      Exception
    • check

      public void check() throws Exception
      Deprecated.
      Check and fix the consistency of the moc
      Throws:
      Exception
    • add

      public void add(HealpixMoc moc) throws Exception
      Deprecated.
      Add directly a full Moc.
      Throws:
      Exception
    • sort

      public void sort()
      Deprecated.
      Sort each level of the Moc
    • isSorted

      public boolean isSorted()
      Deprecated.
      Return true if all Moc level is sorted
    • isInTree

      public boolean isInTree(int order, long npix)
      Deprecated.
      Fast test for checking if the HEALPix cell is intersecting
    • isInTree

      public boolean isInTree(HealpixMoc moc)
      Deprecated.
      Fast test for checking if the parameter MOC is intersecting
    • toRangeSet

      public void toRangeSet()
      Deprecated.
      Store the MOC as a RangeSet if not yet done
    • toHealpixMoc

      public void toHealpixMoc() throws Exception
      Deprecated.
      Generate the HealpixMoc tree structure from the rangeSet
      Throws:
      Exception
    • isAllSky

      public boolean isAllSky()
      Deprecated.
      Return true if the MOC covers the whole sky
    • union

      public HealpixMoc union(HealpixMoc moc) throws Exception
      Deprecated.
      Return the Union with another Moc
      Throws:
      Exception
    • intersection

      public HealpixMoc intersection(HealpixMoc moc) throws Exception
      Deprecated.
      Return the Intersection with another Moc
      Throws:
      Exception
    • subtraction

      public HealpixMoc subtraction(HealpixMoc moc) throws Exception
      Deprecated.
      Return the subtraction with another Moc
      Throws:
      Exception
    • complement

      public HealpixMoc complement() throws Exception
      Deprecated.
      Return the complement
      Description copied from class: SMoc
      Return the complement
      Overrides:
      complement in class SMoc
      Throws:
      Exception
    • getArea

      public long getArea()
      Deprecated.
      => see getCoverage() : Return the area of the Moc computed in pixels at the Moc order
    • getUsedArea

      public long getUsedArea()
      Deprecated.
      => see getCoverage() : Return the number of pixels of the Moc at the Moc order