|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectucar.nc2.dt.fmrc.FmrcInventory
public class FmrcInventory
A collection of ForecastModelRun (aka "run"). The Set if {Run, TimeCoord, Grid} are grouped into "run Sequences" {{Run, TimeCoord} X {Grid}} The FmrcDefinition object defines what is to be expected. The TimeMatrixDataset object keeps an inventory for all variables for the ForecastModelRunCollection. The set of possible valid times vs run times is thought of as a 2D time matrix. All this rigamorole is because NCEP grid files are so irregular.
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
| Method Summary | |
|---|---|
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.jdom.Document |
makeMatrixDocument()
Create an XML document for the entire collection |
org.jdom.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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 String writeMatrixXML(String varName)
public void writeMatrixXML(String varName,
OutputStream os)
throws IOException
IOExceptionpublic org.jdom.Document makeMatrixDocument()
public org.jdom.Document makeMatrixDocument(String varName)
public String showOffsetHour(String varName,
String offsetHour)
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_ modes
Exception - on bad
public static void main2(String[] args)
throws Exception
Exception
public static void main(String[] args)
throws Exception
Exception
public static void doOne(String cat,
int n)
throws Exception
Exception
public static void writeDefinitionFromCatalog(String catURL,
String collectionName,
int maxDatasets)
throws Exception
catURL - scan this catalog
Exception - on bad
public static FmrcInventory makeFromCatalog(String catURL,
String collectionName,
int maxDatasets,
int mode)
throws Exception
catURL - scan this catalog
Exception - on bad
public static FmrcInventory makeFromCatalog(DiskCache2 cache,
String catURL,
String collectionName,
int maxDatasets,
int mode)
throws Exception
Exception
public static void main4(String[] args)
throws Exception
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||