public class FmrcImpl extends java.lang.Object implements ForecastModelRunCollection
| Constructor and Description |
|---|
FmrcImpl(NetcdfDataset ncd) |
FmrcImpl(java.lang.String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
dump(java.util.Formatter f) |
NetcdfDataset |
getBestTimeSeries()
Get a NetcdfDataset that has the "best" time series, across model runs.
|
NetcdfDataset |
getFmrcDataset()
Get a NetcdfDataset that is the underlying datasets with the "2d time"
|
java.util.List<java.util.Date> |
getForecastDates()
Get the list of possible forecast dates, to be used in getForecastTimeDataset().
|
NetcdfDataset |
getForecastOffsetDataset(double hours)
Get a NetcdfDataset that has all the data for a fixed forecast offset, across model runs.
|
java.util.List<java.lang.Double> |
getForecastOffsets()
Get the list of possible forecast offsets, to be used in getForecastOffsetDataset().
|
NetcdfDataset |
getForecastTimeDataset(java.util.Date forecastTime)
Get a NetcdfDataset that has all the data for a fixed forecast time, across model runs.
|
GridDataset |
getGridDataset()
Get the underlying GridDataset.
|
java.util.List<java.util.Date> |
getRunDates()
Get the list of possible run dates, to be used in getRunTimeDataset().
|
NetcdfDataset |
getRunTimeDataset(java.util.Date wantRuntime)
Get a NetcdfDataset that has all the data for a model run.
|
static void |
main(java.lang.String[] args) |
boolean |
sync()
Check if file has changed, and reread metadata if needed.
|
public FmrcImpl(java.lang.String filename)
throws java.io.IOException
java.io.IOExceptionpublic FmrcImpl(NetcdfDataset ncd) throws java.io.IOException
java.io.IOExceptionpublic boolean sync()
throws java.io.IOException
sync in interface ForecastModelRunCollectionjava.io.IOExceptionpublic GridDataset getGridDataset()
ForecastModelRunCollectiongetGridDataset in interface ForecastModelRunCollectionpublic void close()
throws java.io.IOException
close in interface ForecastModelRunCollectionjava.io.IOExceptionpublic java.util.List<java.util.Date> getRunDates()
ForecastModelRunCollectiongetRunDates in interface ForecastModelRunCollectionpublic NetcdfDataset getRunTimeDataset(java.util.Date wantRuntime) throws java.io.IOException
ForecastModelRunCollectiongetRunTimeDataset in interface ForecastModelRunCollectionwantRuntime - names the runjava.io.IOException - on read errorpublic java.util.List<java.util.Date> getForecastDates()
ForecastModelRunCollectiongetForecastDates in interface ForecastModelRunCollectionpublic NetcdfDataset getForecastTimeDataset(java.util.Date forecastTime) throws java.io.IOException
ForecastModelRunCollectiongetForecastTimeDataset in interface ForecastModelRunCollectionforecastTime - the forecast time to fix.java.io.IOException - on read errorpublic java.util.List<java.lang.Double> getForecastOffsets()
ForecastModelRunCollectiongetForecastOffsets in interface ForecastModelRunCollectionpublic NetcdfDataset getForecastOffsetDataset(double hours) throws java.io.IOException
ForecastModelRunCollectiongetForecastOffsetDataset in interface ForecastModelRunCollectionhours - the forecast offset time to fix, in hours.java.io.IOException - on read errorpublic NetcdfDataset getBestTimeSeries() throws java.io.IOException
ForecastModelRunCollectiongetBestTimeSeries in interface ForecastModelRunCollectionjava.io.IOException - on read errorpublic NetcdfDataset getFmrcDataset()
ForecastModelRunCollectiongetFmrcDataset in interface ForecastModelRunCollectionpublic void dump(java.util.Formatter f)
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception