Package uk.ac.bristol.star.cdf
Class CdfContent
- java.lang.Object
-
- uk.ac.bristol.star.cdf.CdfContent
-
public class CdfContent extends java.lang.Object
Provides all the data and metadata in a CDF file in a high-level read-only easy to use form.- Since:
- 20 Jun 2013
-
-
Constructor Summary
Constructors Constructor Description CdfContent(CdfReader crdr)
Constructs a CdfContent from a CdfReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CdfInfo
getCdfInfo()
Returns some global information about the CDF file.GlobalAttribute[]
getGlobalAttributes()
Returns the global attributes.VariableAttribute[]
getVariableAttributes()
Returns the variable attributes.Variable[]
getVariables()
Returns the variables.
-
-
-
Constructor Detail
-
CdfContent
public CdfContent(CdfReader crdr) throws java.io.IOException
Constructs a CdfContent from a CdfReader. This reads the attribute metadata and entries and variable metadata. Record data for variables is not read at construction time.- Parameters:
crdr
- object which knows how to read CDF records- Throws:
java.io.IOException
-
-
Method Detail
-
getGlobalAttributes
public GlobalAttribute[] getGlobalAttributes()
Returns the global attributes.- Returns:
- global attribute array, in order
-
getVariableAttributes
public VariableAttribute[] getVariableAttributes()
Returns the variable attributes.- Returns:
- variable attribute array, in order
-
getVariables
public Variable[] getVariables()
Returns the variables.- Returns:
- variable array, in order
-
getCdfInfo
public CdfInfo getCdfInfo()
Returns some global information about the CDF file.- Returns:
- CDF info
-
-