org.wdssii.ltgingest
Class LightningWithFlashCountIngest
java.lang.Object
org.wdssii.core.WDSSIIProgram
org.wdssii.core.Ingestor
org.wdssii.ltgingest.AbstractAsciiLightningIngest
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
|
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
LightningWithFlashCountIngest
public LightningWithFlashCountIngest()
addRow
protected void addRow(DataTable table,
Date ltgTime,
String[] fields)
- Specified by:
addRow
in class AbstractAsciiLightningIngest
main
public static void main(String[] args)