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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TideDataUnitconvertToTideDataPOLPRED1(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:TideParserConvert delimtted strings to the actual data.- Specified by:
parseTideLinein interfaceTideParser- Parameters:
location-- Returns:
-
getIntitalDelimeter
-
getLocation
Description copied from interface:TideParserGet the location for the tide. Probably in metadata of the file.- Specified by:
getLocationin 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:TideParserDescription of the parser.- Specified by:
getNamein interfaceTideParser- Returns:
-