|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.dt.fmrc.FmrcImpl
public class FmrcImpl
ForecastModelRunCollection implementation. Uses a GridDataset that has two time dimensions. Assume all grids have the same runTime dimension.
Constructor Summary | |
---|---|
FmrcImpl(NetcdfDataset ncd)
|
|
FmrcImpl(String filename)
|
Method Summary | |
---|---|
void |
close()
|
void |
dump(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" |
List<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. |
List<Double> |
getForecastOffsets()
Get the list of possible forecast offsets, to be used in getForecastOffsetDataset(). |
NetcdfDataset |
getForecastTimeDataset(Date forecastTime)
Get a NetcdfDataset that has all the data for a fixed forecast time, across model runs. |
GridDataset |
getGridDataset()
Get the underlying GridDataset. |
List<Date> |
getRunDates()
Get the list of possible run dates, to be used in getRunTimeDataset(). |
NetcdfDataset |
getRunTimeDataset(Date wantRuntime)
Get a NetcdfDataset that has all the data for a model run. |
static void |
main(String[] args)
|
boolean |
sync()
Check if file has changed, and reread metadata if needed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FmrcImpl(String filename) throws IOException
IOException
public FmrcImpl(NetcdfDataset ncd) throws IOException
IOException
Method Detail |
---|
public boolean sync() throws IOException
sync
in interface ForecastModelRunCollection
IOException
public GridDataset getGridDataset()
ForecastModelRunCollection
getGridDataset
in interface ForecastModelRunCollection
public void close() throws IOException
close
in interface ForecastModelRunCollection
IOException
public List<Date> getRunDates()
ForecastModelRunCollection
getRunDates
in interface ForecastModelRunCollection
public NetcdfDataset getRunTimeDataset(Date wantRuntime) throws IOException
ForecastModelRunCollection
getRunTimeDataset
in interface ForecastModelRunCollection
wantRuntime
- names the run
IOException
- on read errorpublic List<Date> getForecastDates()
ForecastModelRunCollection
getForecastDates
in interface ForecastModelRunCollection
public NetcdfDataset getForecastTimeDataset(Date forecastTime) throws IOException
ForecastModelRunCollection
getForecastTimeDataset
in interface ForecastModelRunCollection
forecastTime
- the forecast time to fix.
IOException
- on read errorpublic List<Double> getForecastOffsets()
ForecastModelRunCollection
getForecastOffsets
in interface ForecastModelRunCollection
public NetcdfDataset getForecastOffsetDataset(double hours) throws IOException
ForecastModelRunCollection
getForecastOffsetDataset
in interface ForecastModelRunCollection
hours
- the forecast offset time to fix, in hours.
IOException
- on read errorpublic NetcdfDataset getBestTimeSeries() throws IOException
ForecastModelRunCollection
getBestTimeSeries
in interface ForecastModelRunCollection
IOException
- on read errorpublic NetcdfDataset getFmrcDataset()
ForecastModelRunCollection
getFmrcDataset
in interface ForecastModelRunCollection
public void dump(Formatter f) throws IOException
IOException
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |