Class GridTimeCoord

    • Field Detail

      • seq

        protected int seq
      • timeUdunit

        protected String timeUdunit
      • timeUnit

        protected int timeUnit
      • baseDate

        protected Date baseDate
      • refDateDiffers

        protected boolean refDateDiffers
      • constantInterval

        protected int constantInterval
      • coordData

        protected int[] coordData
    • Constructor Detail

      • GridTimeCoord

        protected GridTimeCoord​(List<GridRecord> records,
                                String where)
        Create a new GridTimeCoord from the list of GridRecord
        Parameters:
        records - records to use
        where - file location for warn message
    • Method Detail

      • matchTimes

        protected boolean matchTimes​(List<GridRecord> records)
        match time values - can this list of GridRecords use this coordinate?
        Parameters:
        records - list of records
        Returns:
        true if they are the same as this
      • getName

        public String getName()
        Get the name
        Returns:
        the name
      • findIndex

        public int findIndex​(GridRecord record)
        Find the index of a GridRecord in the list of times
        Parameters:
        record - the GridRecord
        Returns:
        the index in the list of time values, or -1 if not found
      • isInterval

        public boolean isInterval()
        is this a mixed interval ? Only true for Grib
        Returns:
        mixed
      • getCoord

        public String getCoord​(int i)