org.wdssii.dualpol.icing
Class Statistics

java.lang.Object
  extended by org.wdssii.dualpol.icing.Statistics

public class Statistics
extends Object

Author:
lakshman

Nested Class Summary
static class Statistics.IcingFile
           
 
Field Summary
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
Statistics()
           
 
Method Summary
private  void addTextureStatistics(StringBuilder comment, StringBuilder data, String sep, LatLonGrid.Pixel pixel, LatLonGrid curr)
           
private  void addVerticalColumnStatistics(StringBuilder comment, StringBuilder data, String sep, LatLonGrid.Pixel loc, LatLonGrid[] grids)
           
private  void addVerticalDifferenceStatistics(StringBuilder comment, StringBuilder data, String sep, LatLonGrid.Pixel loc, LatLonGrid curr, LatLonGrid above, LatLonGrid below)
           
private static float diff(float a, float b)
           
private  LatLonGrid getAboveGrid(double ht, LatLonGrid[] grids)
           
private  LatLonGrid getBelowGrid(double ht, LatLonGrid[] grids)
           
private  LatLonGrid getClosestGrid(double ht, LatLonGrid[] grids, double max_diff)
           
private  Statistics.IcingFile getClosestInTime(Statistics.IcingFile[] candidates, Date time, long maxTimeDiffMsecs)
           
static void main(String[] args)
           
 void writeOutputs(String pireps_dir, String icing_dir, String output_dir)
           
private  void writeStatsFile(PilotReport report, IcingGrids grid, File outFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Constructor Detail

Statistics

public Statistics()
Method Detail

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException

writeOutputs

public void writeOutputs(String pireps_dir,
                         String icing_dir,
                         String output_dir)
                  throws IOException
Throws:
IOException

writeStatsFile

private void writeStatsFile(PilotReport report,
                            IcingGrids grid,
                            File outFile)
                     throws IOException
Throws:
IOException

addTextureStatistics

private void addTextureStatistics(StringBuilder comment,
                                  StringBuilder data,
                                  String sep,
                                  LatLonGrid.Pixel pixel,
                                  LatLonGrid curr)

addVerticalColumnStatistics

private void addVerticalColumnStatistics(StringBuilder comment,
                                         StringBuilder data,
                                         String sep,
                                         LatLonGrid.Pixel loc,
                                         LatLonGrid[] grids)

diff

private static float diff(float a,
                          float b)

addVerticalDifferenceStatistics

private void addVerticalDifferenceStatistics(StringBuilder comment,
                                             StringBuilder data,
                                             String sep,
                                             LatLonGrid.Pixel loc,
                                             LatLonGrid curr,
                                             LatLonGrid above,
                                             LatLonGrid below)

getClosestGrid

private LatLonGrid getClosestGrid(double ht,
                                  LatLonGrid[] grids,
                                  double max_diff)

getAboveGrid

private LatLonGrid getAboveGrid(double ht,
                                LatLonGrid[] grids)

getBelowGrid

private LatLonGrid getBelowGrid(double ht,
                                LatLonGrid[] grids)

getClosestInTime

private Statistics.IcingFile getClosestInTime(Statistics.IcingFile[] candidates,
                                              Date time,
                                              long maxTimeDiffMsecs)