Class AddeUtil

java.lang.Object
ucar.unidata.data.AddeUtil

public final class AddeUtil extends Object
A class for holding some Adde related constants and static methods
Version:
$Revision: 1.5 $
Author:
IDV Development Team
  • Field Details

    • RELATIVE_TIME

      public static final String RELATIVE_TIME
      The relative time indicator
      See Also:
    • TIME_DRIVER_TIMES

      public static final String TIME_DRIVER_TIMES
      The time driver time indicator
      See Also:
    • RELATIVE_TIME_RANGE

      public static final String RELATIVE_TIME_RANGE
      The relative time range indicator
      See Also:
    • LATLON_BOX

      public static final String LATLON_BOX
      The latlon bounding box time indicator
      See Also:
    • LEVEL

      public static final String LEVEL
      The level indicator
      See Also:
    • NUM_RELATIVE_TIMES

      public static String NUM_RELATIVE_TIMES
      Property for the number of relative times
    • RELATIVE_TIME_INCREMENT

      public static String RELATIVE_TIME_INCREMENT
      Property for the time increment
    • ABSOLUTE_TIMES

      public static String ABSOLUTE_TIMES
      Property for the absolute times
    • MISC_KEYWORDS

      public static final String MISC_KEYWORDS
      Property for miscellaneous keywords
      See Also:
  • Constructor Details

    • AddeUtil

      public AddeUtil()
  • Method Details

    • generateTimeUrls

      public static List<String> generateTimeUrls(DataSourceImpl datasource, String url, DataSelection subset)
      Generate a list of URLs, expanding any time macros
      Parameters:
      datasource - DataSource that holds relevant properties
      url - original source URL
      subset - the data selection with time subset info
      Returns:
      List of expanded time urls
    • makeRelativeTimes

      public static String[] makeRelativeTimes(int[] timeIndices, float timeInc)
      Make the relative times
      Parameters:
      timeIndices - array of time indices
      timeInc - time increment (hours)
      Returns:
      ADDE time select clause
    • makeRelativeTimesGLM

      public static String[] makeRelativeTimesGLM(int[] timeIndices, float timeInc)
      Make the relative times
      Parameters:
      timeIndices - array of time indices
      timeInc - time increment (hours)
      Returns:
      ADDE time select clause
    • main

      public static void main(String[] args)
      Main method for testing
      Parameters:
      args - not used