Class 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
    • Method Detail

      • getName

        public String getName()
      • getOffsetInHours

        public static double getOffsetInHours​(CalendarDate base,
                                              CalendarDate forecast)
        Find the difference between two dates in hours
        Parameters:
        base - date1
        forecast - 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 date
        offset - hourss
        Returns:
        base + offset as a Date