Class GridDatasetInv


  • public class GridDatasetInv
    extends Object
    The data inventory of one GridDataset. Track grids, time, vert, ens coordinates. Grids are grouped by the time coordinated that they use. Uses dense time, vert coordinates - just the ones that are in the file. Note: Not sure if the vert coords will ever be different across the time coords. Should be immutable, once the file is finished writing.
    Since:
    Jan 11, 2010
    • Method Detail

      • isXmlVersionCompatible

        public boolean isXmlVersionCompatible()
        Check if the GribDatasetInv xml format can be fully understood by this code.
        Returns:
        true if version can be fully understood, otherwise false.
      • getLocation

        public String getLocation()
      • getLastModified

        public long getLastModified()
      • getRunDate

        public CalendarDate getRunDate()
        Get the date of the ForecastModelRun
        Returns:
        the date of the ForecastModelRun
      • getRunDateString

        public String getRunDateString()
        Get string representation of the date of the ForecastModelRun
        Returns:
        string representation of the date of the ForecastModelRun
      • getTimeCoords

        public List<TimeCoord> getTimeCoords()
        Get a list of unique TimeCoords, which contain the list of variables that all use that TimeCoord.
        Returns:
        list of TimeCoord
      • getVertCoords

        public List<VertCoord> getVertCoords()
        Get a list of unique VertCoords.
        Returns:
        list of VertCoord
      • writeCompactXML

        public String writeCompactXML​(Date lastModified)
        Write the XML representation to a compact String.
        Returns:
        the compact XML representation to a String.
      • writeXML

        public String writeXML​(Date lastModified)
        Write the XML representation to a String.
        Returns:
        the XML representation to a String.
      • readXML

        public static GridDatasetInv readXML​(byte[] xmlString)
                                      throws IOException
        Construct a GridDatasetInv from its XML representation
        Parameters:
        xmlString - the xml string
        Returns:
        ForecastModelRun
        Throws:
        IOException - on io error