ucar.nc2.ft.fmrc
Class FmrcInv

java.lang.Object
  extended by 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
Author:
caron

Nested Class Summary
 class FmrcInv.RunSeq
          Represents a sequence of Runs, each run has a particular TimeCoord.
 class FmrcInv.UberGrid
           
 
Method Summary
static Date addHour(Date d, double hour)
           
 FmrcInv.UberGrid findUberGrid(String name)
           
 Date getBaseDate()
           
 List<EnsCoord> getEnsCoords()
           
 List<FmrInv> getFmrInv()
           
 List<FmrInv> getFmrList()
           
 List<Date> getForecastTimes()
           
 String getName()
           
static double getOffsetInHours(Date base, Date forecast)
          Find the difference between two dates in hours
 List<FmrcInv.RunSeq> getRunSeqs()
           
 List<FmrcInv.UberGrid> getUberGrids()
           
 List<VertCoord> getVertCoords()
           
static Date makeOffsetDate(Date base, double offset)
          Create a date from base and hour offset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addHour

public static Date addHour(Date d,
                           double hour)

getFmrList

public List<FmrInv> getFmrList()

getName

public String getName()

getRunSeqs

public List<FmrcInv.RunSeq> getRunSeqs()

getEnsCoords

public List<EnsCoord> getEnsCoords()

getVertCoords

public List<VertCoord> getVertCoords()

getUberGrids

public List<FmrcInv.UberGrid> getUberGrids()

findUberGrid

public FmrcInv.UberGrid findUberGrid(String name)

getForecastTimes

public List<Date> getForecastTimes()

getFmrInv

public List<FmrInv> getFmrInv()

getBaseDate

public Date getBaseDate()

getOffsetInHours

public static double getOffsetInHours(Date base,
                                      Date forecast)
Find the difference between two dates in hours

Parameters:
base - date1
forecast - date2
Returns:
(forecast minus base) difference in hours

makeOffsetDate

public static Date makeOffsetDate(Date base,
                                  double offset)
Create a date from base and hour offset

Parameters:
base - base date
offset - hourss
Returns:
base + offset as a Date


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.