Class POLPREDParser2

java.lang.Object
videoRangePanel.importTideData.POLPREDParser2
All Implemented Interfaces:
TideParser
Direct Known Subclasses:
POLPREDParser3

public class POLPREDParser2 extends Object implements TideParser
Polpred tide file
Author:
Jamie Macaulay
  • Constructor Details

    • POLPREDParser2

      public POLPREDParser2()
  • Method Details

    • parseTideLine

      public TideDataUnit parseTideLine(String line, LatLong location)
      Description copied from interface: TideParser
      Convert delimtted strings to the actual data.
      Specified by:
      parseTideLine in interface TideParser
      Returns:
    • getIntitalDelimeter

      public String getIntitalDelimeter()
    • getLocation

      public LatLong getLocation(List<String> tideData)
      Description copied from interface: TideParser
      Get the location for the tide. Probably in metadata of the file.
      Specified by:
      getLocation in interface TideParser
      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 height
      location - - the lat long for the data unit
      americanDateFormat - - true if american data format i.e the month before the day...GAAAHHHH
      Returns:
      the tide data unit.
    • getName

      public String getName()
      Description copied from interface: TideParser
      Description of the parser.
      Specified by:
      getName in interface TideParser
      Returns: