org.wdssii.ltgingest
Class LightningWithFlashCountIngest

java.lang.Object
  extended by org.wdssii.core.WDSSIIProgram
      extended by org.wdssii.core.Ingestor
          extended by org.wdssii.ltgingest.AbstractAsciiLightningIngest
              extended by org.wdssii.ltgingest.LightningWithFlashCountIngest

public class LightningWithFlashCountIngest
extends AbstractAsciiLightningIngest

Reads specifically-formatted ASCII files that match a filename convention. The filenames should end in dates of the form 2004071614 except for an optional suffix. Thus, valid filenames include 2004071614.txt and ltg_2004071614 The data in the files should be formatted as follows:

 07/16/04 14:00:06 28.713  -77.425   -18.0  2
 07/16/04 14:00:07 25.184  -79.218   -78.0  2
 07/16/04 14:00:07 25.051  -79.063   -28.0  3
 where the columns are date, time, latitude, longitude, peak current, flash-count
 It's assumed that all flashes are cloud-to-ground.
 
 You can change some aspects of this by invoking the appropriate setter methods.

Author:
lakshman
See Also:
LighningWithDischargeTypeIngest

Field Summary
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
LightningWithFlashCountIngest()
           
 
Method Summary
protected  void addRow(DataTable table, Date ltgTime, String[] fields)
           
static void main(String[] args)
           
 
Methods inherited from class org.wdssii.ltgingest.AbstractAsciiLightningIngest
doIngest, getDateFormatInData, getDateFormatInFileName, getEveryNseconds, getFieldSeparatorRegex, getSubtype, setDateFormatInData, setDateFormatInFileName, setEveryNseconds, setFieldSeparatorRegex, setSubtype
 
Methods inherited from class org.wdssii.core.Ingestor
execute, getFilenamePatterns, getInputDir, isExitAfterInitialRead, setExitAfterInitialRead, setFilenamePatterns, setInputDir
 
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
Constructor Detail

LightningWithFlashCountIngest

public LightningWithFlashCountIngest()
Method Detail

addRow

protected void addRow(DataTable table,
                      Date ltgTime,
                      String[] fields)
Specified by:
addRow in class AbstractAsciiLightningIngest

main

public static void main(String[] args)