Package uk.ac.bristol.star.cdf
Class CdfInfo
java.lang.Object
uk.ac.bristol.star.cdf.CdfInfo
Encapsulates some global information about a CDF file.
- Since:
- 20 Jun 2013
-
Constructor Summary
ConstructorsConstructorDescriptionCdfInfo
(boolean rowMajor, int[] rDimSizes, int leapSecondLastUpdated) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the date of the last leap second the CDF file knows about.int[]
Returns array dimensions for rVariables.boolean
Indicates majority of CDF arrays.
-
Constructor Details
-
CdfInfo
public CdfInfo(boolean rowMajor, int[] rDimSizes, int leapSecondLastUpdated) Constructor.- Parameters:
rowMajor
- true for row majority, false for column majorityrDimSizes
- array of dimension sizes for rVariablesleapSecondLastUpdated
- 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
-