Package ucar.nc2.ft.fmrc
Class FmrcInv
- java.lang.Object
-
- ucar.nc2.ft.fmrc.FmrcInv
-
@Immutable public class FmrcInv extends Object
Inventory for a Forecast Model Run Collection = a series of Forecast Model Runs. Create rectangular representation of var(runtime, time) of data(ens, vert, x, y). For each Grid, the vert, time and ens coordinates are created as the union of the components. Make sure to share coordinates across grids where they are equivilent. We are thus making a rectangular array var(runtime, time, ens, level). So obviously we have to tolerate missing data. Keeps track of what inventory exists, and where it is.- Since:
- Jan 11, 2010
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
FmrcInv.RunSeq
Represents a sequence of Runs, each run has a particular TimeCoord.class
FmrcInv.UberGrid
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FmrcInv.UberGrid
findUberGrid(String name)
CalendarDate
getBaseDate()
List<EnsCoord>
getEnsCoords()
List<FmrInv>
getFmrInv()
List<FmrInv>
getFmrList()
List<CalendarDate>
getForecastTimes()
String
getName()
static double
getOffsetInHours(CalendarDate base, CalendarDate forecast)
Find the difference between two dates in hoursList<FmrcInv.RunSeq>
getRunSeqs()
List<FmrcInv.UberGrid>
getUberGrids()
List<VertCoord>
getVertCoords()
static CalendarDate
makeOffsetDate(CalendarDate base, double offset)
Create a date from base and hour offset
-
-
-
Method Detail
-
getName
public String getName()
-
getRunSeqs
public List<FmrcInv.RunSeq> getRunSeqs()
-
getUberGrids
public List<FmrcInv.UberGrid> getUberGrids()
-
findUberGrid
public FmrcInv.UberGrid findUberGrid(String name)
-
getForecastTimes
public List<CalendarDate> getForecastTimes()
-
getBaseDate
public CalendarDate getBaseDate()
-
getOffsetInHours
public static double getOffsetInHours(CalendarDate base, CalendarDate forecast)
Find the difference between two dates in hours- Parameters:
base
- date1forecast
- date2- Returns:
- (forecast minus base) difference in hours
-
makeOffsetDate
public static CalendarDate makeOffsetDate(CalendarDate base, double offset)
Create a date from base and hour offset- Parameters:
base
- base dateoffset
- hourss- Returns:
- base + offset as a Date
-
-