Class GempakSurfaceFileReader

    • Method Detail

      • getInstance

        public static GempakSurfaceFileReader getInstance​(RandomAccessFile raf,
                                                          boolean fullCheck)
                                                   throws IOException
        Initialize the file, read in all the metadata (ala DM_OPEN)
        Parameters:
        raf - RandomAccessFile to read.
        fullCheck - if true, check entire structure
        Returns:
        A GempakSurfaceFileReader
        Throws:
        IOException - problem reading file
      • init

        protected boolean init​(boolean fullCheck)
                        throws IOException
        Initialize this reader. Get the Grid specific info
        Overrides:
        init in class AbstractGempakStationFileReader
        Parameters:
        fullCheck - check to make sure there are grids we can handle
        Returns:
        true if successful
        Throws:
        IOException - problem reading the data
      • makeDateList

        protected List<String> makeDateList​(boolean uniqueTimes)
        Make the list of dates. Override superclass to make the value based on the subtype
        Overrides:
        makeDateList in class AbstractGempakStationFileReader
        Parameters:
        uniqueTimes - true to make a unique list
        Returns:
        the list of times
      • printOb

        public void printOb​(int row,
                            int col)
        Print the list of dates in the file
        Parameters:
        row - ob row
        col - ob column
      • getSurfaceFileType

        public String getSurfaceFileType()
        Get the type for this file
        Returns:
        file type (CLIMATE, STANDARD, SHIP)