Package videoRangePanel.importTideData
Class POLPREDParser2
java.lang.Object
videoRangePanel.importTideData.POLPREDParser2
- All Implemented Interfaces:
TideParser
- Direct Known Subclasses:
POLPREDParser3
Polpred tide file
- Author:
- Jamie Macaulay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TideDataUnit
convertToTideDataPOLPRED1
(ArrayList<String> tideData, LatLong location, boolean americanDateFormat) Convert string data from a POLPRED output file.getLocation
(List<String> tideData) Get the location for the tide.getName()
Description of the parser.parseTideLine
(String line, LatLong location) Convert delimtted strings to the actual data.
-
Constructor Details
-
POLPREDParser2
public POLPREDParser2()
-
-
Method Details
-
parseTideLine
Description copied from interface:TideParser
Convert delimtted strings to the actual data.- Specified by:
parseTideLine
in interfaceTideParser
- Returns:
-
getIntitalDelimeter
-
getLocation
Description copied from interface:TideParser
Get the location for the tide. Probably in metadata of the file.- Specified by:
getLocation
in interfaceTideParser
- Returns:
-
convertToTideDataPOLPRED1
public static TideDataUnit convertToTideDataPOLPRED1(ArrayList<String> tideData, LatLong location, boolean americanDateFormat) Convert string data from a POLPRED output file.- Parameters:
tideData
- - string of the tide data values. SHould be date, time heightlocation
- - the lat long for the data unitamericanDateFormat
- - true if american data format i.e the month before the day...GAAAHHHH- Returns:
- the tide data unit.
-
getName
Description copied from interface:TideParser
Description of the parser.- Specified by:
getName
in interfaceTideParser
- Returns:
-