Class GempakGridServiceProvider

    • Field Detail

      • extendIndex

        public static boolean extendIndex
        Reread the file on a sync
    • Constructor Detail

      • GempakGridServiceProvider

        public GempakGridServiceProvider()
    • Method Detail

      • isValidFile

        public boolean isValidFile​(RandomAccessFile raf)
                            throws IOException
        Is this a valid file?
        Parameters:
        raf - RandomAccessFile to check
        Returns:
        true if a valid GEMPAK grid file
        Throws:
        IOException - problem reading file
      • getFileTypeId

        public String getFileTypeId()
        Description copied from interface: IOServiceProvider
        Get a unique id for this file type.
        Returns:
        registered id of the file type
        See Also:
        "https://www.unidata.ucar.edu/software/netcdf-java/formats/FileTypes.html"
      • getFileTypeDescription

        public String getFileTypeDescription()
        Description copied from interface: IOServiceProvider
        Get a human-readable description for this file type.
        Returns:
        description of the file type
        See Also:
        "https://www.unidata.ucar.edu/software/netcdf-java/formats/FileTypes.html"
      • sync

        public boolean sync()
                     throws IOException
        Sync the file
        Returns:
        true if needed to sync
        Throws:
        IOException - problem synching the file
      • setExtendIndex

        public static void setExtendIndex​(boolean b)
        Extend the list of grid
        Parameters:
        b - true to reread the grid on a sync