public class GridDatasetInv
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
GridDatasetInv.Grid
A Grid variable has a name, timeCoord and optionally a Vertical and Ensemble Coordinate
|
Constructor and Description |
---|
GridDatasetInv(GridDataset gds,
CalendarDate runDate) |
Modifier and Type | Method and Description |
---|---|
GridDatasetInv.Grid |
findGrid(java.lang.String name) |
long |
getLastModified() |
java.lang.String |
getLocation() |
CalendarDate |
getRunDate()
Get the date of the ForecastModelRun
|
java.lang.String |
getRunDateString()
Get string representation of the date of the ForecastModelRun
|
java.util.List<TimeCoord> |
getTimeCoords()
Get a list of unique TimeCoords, which contain the list of variables that all use that
TimeCoord.
|
java.util.List<VertCoord> |
getVertCoords()
Get a list of unique VertCoords.
|
boolean |
isXmlVersionCompatible()
Check if the GribDatasetInv xml format can be fully understood by this code.
|
static GridDatasetInv |
open(MCollection cm,
MFile mfile,
org.jdom2.Element ncml) |
static GridDatasetInv |
readXML(byte[] xmlString)
Construct a GridDatasetInv from its XML representation
|
java.lang.String |
toString() |
java.lang.String |
writeCompactXML(java.util.Date lastModified)
Write the XML representation to a compact String.
|
java.lang.String |
writeXML(java.util.Date lastModified)
Write the XML representation to a String.
|
public GridDatasetInv(GridDataset gds, CalendarDate runDate)
public static GridDatasetInv open(MCollection cm, MFile mfile, org.jdom2.Element ncml) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isXmlVersionCompatible()
public java.lang.String getLocation()
public long getLastModified()
public CalendarDate getRunDate()
public java.lang.String getRunDateString()
public java.util.List<TimeCoord> getTimeCoords()
public java.util.List<VertCoord> getVertCoords()
public GridDatasetInv.Grid findGrid(java.lang.String name)
public java.lang.String writeCompactXML(java.util.Date lastModified)
public java.lang.String writeXML(java.util.Date lastModified)
public static GridDatasetInv readXML(byte[] xmlString) throws java.io.IOException
xmlString
- the xml stringjava.io.IOException
- on io error