Class CdfInfo

java.lang.Object
uk.ac.bristol.star.cdf.CdfInfo

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

    • 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 Details

    • 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