org.wdssii.polarmerger
Class LatestObservationMerger

java.lang.Object
  extended by org.wdssii.polarmerger.LatestObservationMerger
All Implemented Interfaces:
ObservationMerger

public class LatestObservationMerger
extends Object
implements ObservationMerger

The latest observation wins.

Author:
lakshman

Field Summary
private  Date[][][] latestTimes
           
 
Constructor Summary
LatestObservationMerger()
           
 
Method Summary
 void finishComputation(float[][][] values)
          Finish computations, setting the input array to its final values.
 void init(float[][][] values)
          The values array is initially all MissingData.
 void update(float[][][] values, int w_e, int w_az, int w_rn, Observation obs, float wt)
          Update state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

latestTimes

private Date[][][] latestTimes
Constructor Detail

LatestObservationMerger

public LatestObservationMerger()
Method Detail

init

public void init(float[][][] values)
Description copied from interface: ObservationMerger
The values array is initially all MissingData. Can use the array to set initial state, but may also change the initial values.

Specified by:
init in interface ObservationMerger

update

public void update(float[][][] values,
                   int w_e,
                   int w_az,
                   int w_rn,
                   Observation obs,
                   float wt)
Description copied from interface: ObservationMerger
Update state

Specified by:
update in interface ObservationMerger
Parameters:
values - the current set of values in the 3D output grid
w_e - elevation index
w_az - azimuth index
w_rn - range index
obs - newObservation
wt - weight of observation

finishComputation

public void finishComputation(float[][][] values)
Description copied from interface: ObservationMerger
Finish computations, setting the input array to its final values.

Specified by:
finishComputation in interface ObservationMerger