ucar.nc2.dt.fmrc
Class ForecastModelRunInventory.Grid

java.lang.Object
  extended by ucar.nc2.dt.fmrc.ForecastModelRunInventory.Grid
All Implemented Interfaces:
Comparable
Enclosing class:
ForecastModelRunInventory

public static class ForecastModelRunInventory.Grid
extends Object
implements Comparable

A Grid variable has a name, timeCoord and optionally a Vertical Coordinate, and list of Missing. The inventory is represented as: 1) if 2D, the timeCoord represents the inventory 2) if 3D, inventory = timeCoord * vertCoord - Missing


Method Summary
 int compareTo(Object o)
           
 int countInventory()
           
 int countInventory(double hourOffset)
           
 int countMissing()
           
 int countTotal()
           
 double[] getVertCoords(double hourOffset)
          Get inventory as an array of vert coords, at a particular time coord = hourOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

countInventory

public int countInventory()

countTotal

public int countTotal()

countMissing

public int countMissing()

countInventory

public int countInventory(double hourOffset)

getVertCoords

public double[] getVertCoords(double hourOffset)
Get inventory as an array of vert coords, at a particular time coord = hourOffset

Parameters:
hourOffset - : may or may not be in the list of time coords
Returns:
array of vert coords. NaN = missing; -0.0 = surface.


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