org.wdssii.nse
Class NseAlgorithm

java.lang.Object
  extended by org.wdssii.core.WDSSIIProgram
      extended by org.wdssii.core.Algorithm
          extended by org.wdssii.nse.NseAlgorithm
All Implemented Interfaces:
IndexRecordListener

public class NseAlgorithm
extends Algorithm

Near-storm environment algorithm.

Author:
lakshman

Nested Class Summary
static class NseAlgorithm.InProduct
           
 
Field Summary
private  String gridRelativeUWindProductName
           
private  String gridRelativeVWindProductName
           
private  String heightProductName
           
private  NseAlgorithm.InProduct[] in3DProducts
           
private  NseAlgorithm.InProduct[] inSfcProducts
           
private static org.apache.commons.logging.Log log
           
private  String mslPressureProductName
           
private  int numPressureLevels
           
private  String relativeHumidityProductName
           
private  String sfcDewPointDepression
           
private  String sfcGridRelativeUWindProductName
           
private  String sfcGridRelativeVWindProductName
           
private  String sfcPressureProductName
           
private  String sfcTemperatureProductName
           
private  String subTypeSuffix
           
private  String temperatureProductName
           
private  String terrainElevationProductName
           
private  String verticalVelocityProductName
           
 
Constructor Summary
NseAlgorithm()
           
 
Method Summary
static float calcDewpointFromRH(float temp, float rh)
           
private  void clearAllProducts()
           
 void handleRecord(IndexRecord rec)
           
private  boolean haveAllProducts()
           
private  void init()
           
static void main(String[] args)
           
private  void prepareDewPointDepression(List<LatLonGrid> tempGrids, List<LatLonGrid> ddGrids)
           
private  void prepareRelativeHumidity(List<LatLonGrid> tempGrids, List<LatLonGrid> rhGrids)
           
private  void prepareWindProducts(List<LatLonGrid> ugrid, List<LatLonGrid> vgrid)
           
private  void runNSE()
           
private  boolean suffixMatches(IndexRecord rec)
           
private  boolean updateProduct(IndexRecord rec)
           
private  void writeOutputGrid(LatLonGrid output, float[][] values, String typeName, String subType, String unit)
           
 
Methods inherited from class org.wdssii.core.Algorithm
execute, getInputURLs, setInputURLs
 
Methods inherited from class org.wdssii.core.WDSSIIProgram
getOutputDir, getPropertiesFromCommandLine, getSubTypeForElevation, isRealTime, printUsage, setOutputDir, setRealTime, setup, setup, setupAndExecute
 
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

heightProductName

private String heightProductName

temperatureProductName

private String temperatureProductName

relativeHumidityProductName

private String relativeHumidityProductName

gridRelativeUWindProductName

private String gridRelativeUWindProductName

gridRelativeVWindProductName

private String gridRelativeVWindProductName

verticalVelocityProductName

private String verticalVelocityProductName

terrainElevationProductName

private String terrainElevationProductName

mslPressureProductName

private String mslPressureProductName

sfcGridRelativeUWindProductName

private String sfcGridRelativeUWindProductName

sfcGridRelativeVWindProductName

private String sfcGridRelativeVWindProductName

sfcPressureProductName

private String sfcPressureProductName

sfcTemperatureProductName

private String sfcTemperatureProductName

sfcDewPointDepression

private String sfcDewPointDepression

subTypeSuffix

private String subTypeSuffix

numPressureLevels

private int numPressureLevels

in3DProducts

private NseAlgorithm.InProduct[] in3DProducts

inSfcProducts

private NseAlgorithm.InProduct[] inSfcProducts
Constructor Detail

NseAlgorithm

public NseAlgorithm()
Method Detail

main

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

init

private void init()

runNSE

private void runNSE()

writeOutputGrid

private void writeOutputGrid(LatLonGrid output,
                             float[][] values,
                             String typeName,
                             String subType,
                             String unit)

updateProduct

private boolean updateProduct(IndexRecord rec)

suffixMatches

private boolean suffixMatches(IndexRecord rec)

haveAllProducts

private boolean haveAllProducts()

clearAllProducts

private void clearAllProducts()

prepareWindProducts

private void prepareWindProducts(List<LatLonGrid> ugrid,
                                 List<LatLonGrid> vgrid)

calcDewpointFromRH

public static float calcDewpointFromRH(float temp,
                                       float rh)

prepareRelativeHumidity

private void prepareRelativeHumidity(List<LatLonGrid> tempGrids,
                                     List<LatLonGrid> rhGrids)

prepareDewPointDepression

private void prepareDewPointDepression(List<LatLonGrid> tempGrids,
                                       List<LatLonGrid> ddGrids)

handleRecord

public void handleRecord(IndexRecord rec)