Package ucar.gcdm
Class GcdmConverter
- java.lang.Object
-
- ucar.gcdm.GcdmConverter
-
public class GcdmConverter extends Object
Convert between Gcdm Protos and Netcdf objects, using ucar.array.Array for data.
-
-
Constructor Summary
Constructors Constructor Description GcdmConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GcdmNetcdfProto.DataTypeconvertDataType(ucar.array.ArrayType dtype)static ucar.array.ArrayTypeconvertDataType(GcdmNetcdfProto.DataType dtype)static ucar.nc2.AttributeContainerdecodeAttributes(String name, List<GcdmNetcdfProto.Attribute> atts)static <T> ucar.array.Array<T>decodeData(GcdmNetcdfProto.Data data)static voiddecodeGroup(GcdmNetcdfProto.Group proto, ucar.nc2.Group.Builder g)static ucar.array.SectiondecodeSection(GcdmNetcdfProto.Section proto)static ucar.array.SectiondecodeSection(GcdmNetcdfProto.Variable var)static List<GcdmNetcdfProto.Attribute>encodeAttributes(ucar.nc2.AttributeContainer atts)static GcdmNetcdfProto.DataencodeData(ucar.array.ArrayType dataType, ucar.array.Array<?> data)static GcdmNetcdfProto.ErrorencodeErrorMessage(String message)static GcdmNetcdfProto.Group.BuilderencodeGroup(ucar.nc2.Group g, int sizeToCache)static GcdmNetcdfProto.SectionencodeSection(ucar.array.Section section)
-
-
-
Method Detail
-
convertDataType
public static GcdmNetcdfProto.DataType convertDataType(ucar.array.ArrayType dtype)
-
convertDataType
public static ucar.array.ArrayType convertDataType(GcdmNetcdfProto.DataType dtype)
-
encodeAttributes
public static List<GcdmNetcdfProto.Attribute> encodeAttributes(ucar.nc2.AttributeContainer atts)
-
encodeGroup
public static GcdmNetcdfProto.Group.Builder encodeGroup(ucar.nc2.Group g, int sizeToCache) throws IOException
- Throws:
IOException
-
encodeErrorMessage
public static GcdmNetcdfProto.Error encodeErrorMessage(String message)
-
encodeSection
public static GcdmNetcdfProto.Section encodeSection(ucar.array.Section section)
-
encodeData
public static GcdmNetcdfProto.Data encodeData(ucar.array.ArrayType dataType, ucar.array.Array<?> data)
-
decodeAttributes
public static ucar.nc2.AttributeContainer decodeAttributes(String name, List<GcdmNetcdfProto.Attribute> atts)
-
decodeGroup
public static void decodeGroup(GcdmNetcdfProto.Group proto, ucar.nc2.Group.Builder g)
-
decodeSection
public static ucar.array.Section decodeSection(GcdmNetcdfProto.Section proto)
-
decodeSection
public static ucar.array.Section decodeSection(GcdmNetcdfProto.Variable var)
-
decodeData
public static <T> ucar.array.Array<T> decodeData(GcdmNetcdfProto.Data data)
-
-