public class FmrcInventory extends Object
Data Structures List RunTime Date List ForecastTime Date List Offsets Double List VertTimeCoord double[] values List TimeCoord double[] offsetHour List RunSeq // sequence of runs; ie sequence of TimeCoords; ie actual time coord List Run run; Date runDate TimeCoord List UberGrid String name List RunExpected // corresponds to the runs in the RunSeq, matches to expected inventory Run run; // actual time coord ForecastModelRun.Grid grid; // contains actual vert coord for this Run ForecastModelRun.TimeCoord expected; // expected time coord FmrcDefinition.Grid expectedGrid; // expected grid, vertCoord
Modifier and Type | Method and Description |
---|---|
static void |
doOne(String cat,
int n) |
FmrcDefinition |
getDefinition() |
String |
getDefinitionPath() |
List<ForecastModelRunInventory.EnsCoord> |
getEnsCoords() |
String |
getName() |
List<ucar.nc2.dt.fmrc.FmrcInventory.RunSeq> |
getRunSequences() |
String |
getSuffixFilter() |
List<ForecastModelRunInventory.TimeCoord> |
getTimeCoords() |
List<ForecastModelRunInventory.VertCoord> |
getVertCoords() |
static void |
main(String[] args) |
static void |
main2(String[] args) |
static void |
main4(String[] args) |
static FmrcInventory |
makeFromCatalog(DiskCache2 cache,
String catURL,
String collectionName,
int maxDatasets,
int mode) |
static FmrcInventory |
makeFromCatalog(String catURL,
String collectionName,
int maxDatasets,
int mode)
Create a ForecastModelRun Collection from the datasets in a catalog.
|
static FmrcInventory |
makeFromDirectory(String fmrcDefinitionPath,
String collectionName,
DiskCache2 fmr_cache,
String dirName,
String suffix,
int mode)
Create a ForecastModelRun Collection from the files in a directory.
|
org.jdom2.Document |
makeMatrixDocument()
Create an XML document for the entire collection
|
org.jdom2.Document |
makeMatrixDocument(String varName)
Create an XML document for a variable
|
String |
showOffsetHour(String varName,
String offsetHour) |
static void |
writeDefinitionFromCatalog(String catURL,
String collectionName,
int maxDatasets)
Create a ForecastModelRun Collection from the datasets in a catalog.
|
String |
writeMatrixXML(String varName) |
void |
writeMatrixXML(String varName,
OutputStream os) |
public String getName()
public String getDefinitionPath()
public List<ForecastModelRunInventory.TimeCoord> getTimeCoords()
public List<ucar.nc2.dt.fmrc.FmrcInventory.RunSeq> getRunSequences()
public List<ForecastModelRunInventory.EnsCoord> getEnsCoords()
public List<ForecastModelRunInventory.VertCoord> getVertCoords()
public String getSuffixFilter()
public FmrcDefinition getDefinition()
public void writeMatrixXML(String varName, OutputStream os) throws IOException
IOException
public org.jdom2.Document makeMatrixDocument()
public org.jdom2.Document makeMatrixDocument(String varName)
public static FmrcInventory makeFromDirectory(String fmrcDefinitionPath, String collectionName, DiskCache2 fmr_cache, String dirName, String suffix, int mode) throws Exception
fmrcDefinitionPath
- put/look for fmrc definition files in this directory, may be nullcollectionName
- the definition file = "name.fmrcDefinition.xml";fmr_cache
- cache fmr inventory files here, may be nulldirName
- scan this directorysuffix
- filter on this suffixmode
- one of the ForecastModelRun.OPEN_ modesException
- on badpublic static void writeDefinitionFromCatalog(String catURL, String collectionName, int maxDatasets) throws Exception
catURL
- scan this catalogException
- on badpublic static FmrcInventory makeFromCatalog(String catURL, String collectionName, int maxDatasets, int mode) throws Exception
catURL
- scan this catalogException
- on badpublic static FmrcInventory makeFromCatalog(DiskCache2 cache, String catURL, String collectionName, int maxDatasets, int mode) throws Exception
Exception
Copyright © 1999–2013 UCAR/Unidata. All rights reserved.