org.wdssii.ltgingest
Class LightningWithDischargeTypeIngest

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.LightningWithDischargeTypeIngest

public class LightningWithDischargeTypeIngest
extends AbstractAsciiLightningIngest

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

 03/28/08, 17:35:25.141, 26.735, -74.764, -23.0, 0
 03/28/08, 17:36:13.838, 26.765, -74.777, -26.0, 1
 03/28/08, 17:36:13.865, 26.766, -74.758, -25.0, 0
 03/28/08, 17:37:06.856, 26.765, -74.803, -24.0, 0
 
where the columns are date, time, latitude, longitude, peak current, CG/IC It's assumed that all flash counts are 1. You can change some aspects of this by invoking the appropriate setter methods.

Author:
lakshman
See Also:
LighningWithFlashCountIngest

Field Summary
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
LightningWithDischargeTypeIngest()
           
 
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

LightningWithDischargeTypeIngest

public LightningWithDischargeTypeIngest()
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)