org.wdssii.ltgingest
Class LightningWithDischargeTypeIngest
java.lang.Object
org.wdssii.core.WDSSIIProgram
org.wdssii.core.Ingestor
org.wdssii.ltgingest.AbstractAsciiLightningIngest
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
|
Methods inherited from class org.wdssii.ltgingest.AbstractAsciiLightningIngest |
doIngest, getDateFormatInData, getDateFormatInFileName, getEveryNseconds, getFieldSeparatorRegex, getSubtype, setDateFormatInData, setDateFormatInFileName, setEveryNseconds, setFieldSeparatorRegex, setSubtype |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
LightningWithDischargeTypeIngest
public LightningWithDischargeTypeIngest()
addRow
protected void addRow(DataTable table,
Date ltgTime,
String[] fields)
- Specified by:
addRow
in class AbstractAsciiLightningIngest
main
public static void main(String[] args)