Package ucar.nc2.iosp

Enum NetcdfFileFormat

    • Method Detail

      • values

        public static NetcdfFileFormat[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (NetcdfFileFormat c : NetcdfFileFormat.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NetcdfFileFormat valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • version

        public int version()
      • formatName

        public String formatName()
      • isNetdf3format

        public boolean isNetdf3format()
      • isNetdf4format

        public boolean isNetdf4format()
      • isExtendedModel

        public boolean isExtendedModel()
      • isLargeFile

        public boolean isLargeFile()
      • isClassicModel

        public boolean isClassicModel()
      • findNetcdfFormatType

        public static NetcdfFileFormat findNetcdfFormatType​(RandomAccessFile raf)
                                                     throws IOException
        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:
        NetcdfFileFormat that matches constants in netcdf-c/include/netcdf.h, or INVALID if not a netcdf file.
        Throws:
        IOException