Class CdfInfo


  • public class CdfInfo
    extends java.lang.Object
    Encapsulates some global information about a CDF file.
    Since:
    20 Jun 2013
    • Constructor Summary

      Constructors 
      Constructor Description
      CdfInfo​(boolean rowMajor, int[] rDimSizes, int leapSecondLastUpdated)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getLeapSecondLastUpdated()
      Returns the date of the last leap second the CDF file knows about.
      int[] getRDimSizes()
      Returns array dimensions for rVariables.
      boolean getRowMajor()
      Indicates majority of CDF arrays.
      • Methods inherited from class java.lang.Object

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

      • CdfInfo

        public CdfInfo​(boolean rowMajor,
                       int[] rDimSizes,
                       int leapSecondLastUpdated)
        Constructor.
        Parameters:
        rowMajor - true for row majority, false for column majority
        rDimSizes - array of dimension sizes for rVariables
        leapSecondLastUpdated - value of the GDR LeapSecondLastUpdated field
    • Method Detail

      • getRowMajor

        public boolean getRowMajor()
        Indicates majority of CDF arrays.
        Returns:
        true for row majority, false for column majority
      • getRDimSizes

        public int[] getRDimSizes()
        Returns array dimensions for rVariables.
        Returns:
        array of dimension sizes for rVariables
      • getLeapSecondLastUpdated

        public int getLeapSecondLastUpdated()
        Returns the date of the last leap second the CDF file knows about. This is the value of the LeapSecondLastUpdated field from the GDR (introduced at CDF v3.6). The value is an integer whose decimal representation is of the form YYYYMMDD. Values 0 and -1 have special meaning (no last leap second).
        Returns:
        last known leap second indicator