Package ucar.nc2.iosp

Class NCheader

  • Direct Known Subclasses:
    H4header, H5header, N3header

    public class NCheader
    extends Object
    Deprecated.
    Will move to internal module in version 6.
    Common header for netcdf3, netcdf4, hdf5, hdf4.
    • Field Detail

      • H5HEAD

        public static final byte[] H5HEAD
        Deprecated.
      • H4HEAD

        public static final byte[] H4HEAD
        Deprecated.
      • CDF1HEAD

        public static final byte[] CDF1HEAD
        Deprecated.
      • CDF2HEAD

        public static final byte[] CDF2HEAD
        Deprecated.
      • CDF5HEAD

        public static final byte[] CDF5HEAD
        Deprecated.
      • NC_FORMAT_NETCDF3

        public static final int NC_FORMAT_NETCDF3
        Deprecated.
        See Also:
        Constant Field Values
      • NC_FORMAT_64BIT_OFFSET

        public static final int NC_FORMAT_64BIT_OFFSET
        Deprecated.
        See Also:
        Constant Field Values
      • NC_FORMAT_NETCDF4

        public static final int NC_FORMAT_NETCDF4
        Deprecated.
        See Also:
        Constant Field Values
      • NC_FORMAT_64BIT_DATA

        public static final int NC_FORMAT_64BIT_DATA
        Deprecated.
        See Also:
        Constant Field Values
      • NC_FORMAT_CLASSIC

        public static final int NC_FORMAT_CLASSIC
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • NCheader

        public NCheader()
        Deprecated.
    • Method Detail

      • checkFileType

        public static int checkFileType​(RandomAccessFile raf)
                                 throws IOException
        Deprecated.
        Figure out what kind of netcdf-related file we have. Constraint: leave raf read pointer to point just after the magic number.
        Parameters:
        raf - to test type
        Returns:
        integer that matches constants in netcdf-c/include/netcdf.h
        Throws:
        IOException
      • formatName

        public static String formatName​(int format)
        Deprecated.