Class Grib2Tables

    • Field Detail

      • config

        protected final ucar.nc2.grib.grib2.table.Grib2TableConfig config
    • Constructor Detail

      • Grib2Tables

        protected Grib2Tables​(ucar.nc2.grib.grib2.table.Grib2TableConfig config)
    • Method Detail

      • factory

        public static Grib2Tables factory​(int center,
                                          int subCenter,
                                          int masterVersion,
                                          int localVersion,
                                          int genProcessId)
      • makeParamId

        public static int makeParamId​(int discipline,
                                      int category,
                                      int number)
      • unmakeParamId

        public static int[] unmakeParamId​(int code)
      • makeParamCode

        public static String makeParamCode​(int discipline,
                                           int category,
                                           int number)
      • makeParamCode

        public static String makeParamCode​(int code)
      • isLocal

        public static boolean isLocal​(int discipline,
                                      int category,
                                      int number)
      • isLocal

        public static boolean isLocal​(int code)
      • getAllRegisteredTables

        public static com.google.common.collect.ImmutableList<Grib2Tables> getAllRegisteredTables()
      • getName

        public String getName()
      • getCenterId

        public int getCenterId()
      • getPath

        public String getPath()
      • getVariableName

        public String getVariableName​(int discipline,
                                      int category,
                                      int parameter)
        Make a IOSP Variable name, using the Parameter name is available, otherwise a synthesized name.
      • getCodeTableValue

        @Nullable
        public String getCodeTableValue​(String tableName,
                                        int code)
      • getCategory

        @Nullable
        public String getCategory​(int discipline,
                                  int category)
      • getStatisticName

        public String getStatisticName​(int id)
      • getStatisticNameShort

        public String getStatisticNameShort​(int id)
      • getProbabilityNameShort

        public String getProbabilityNameShort​(int id)
      • getVertUnit

        public VertCoordType getVertUnit​(int code)
        Unit of vertical coordinate. from Grib2 code table 4.5. Only levels with units get a dimension added
        Specified by:
        getVertUnit in interface GribTables
        Parameters:
        code - code from table 4.5
        Returns:
        level unit, default is empty unit string
      • isLevelUsed

        public boolean isLevelUsed​(int code)
      • getLevelName

        @Nullable
        public String getLevelName​(int id)
      • isLayer

        public boolean isLayer​(Grib2Pds pds)
      • setTimeUnitConverter

        @Deprecated
        public void setTimeUnitConverter​(TimeUnitConverter timeUnitConverter)
        Deprecated.
        Remove in version 6, functionality moved to Grib2CollectionBuilder
      • convertTimeUnit

        @Deprecated
        public int convertTimeUnit​(int timeUnit)
        Deprecated.
        Remove in version 6, functionality moved to Grib2CollectionBuilder
        Specified by:
        convertTimeUnit in interface TimeUnitConverter
      • getForecastTimeIntervalSizeInHours

        public double getForecastTimeIntervalSizeInHours​(Grib2Pds pds)
        Get interval size in units of hours. Only use in GribVariable to decide on variable identity when intvMerge = false.
        Parameters:
        pds - must be a Grib2Pds.PdsInterval
        Returns:
        interval size in units of hours LOOK generalize this to return a size and unit?
      • getForecastTimeIntervalOffset

        @Nullable
        public int[] getForecastTimeIntervalOffset​(Grib2Record gr)
        If this has a time interval coordinate, get time interval
        Parameters:
        gr - from this record
        Returns:
        time interval in units of pds.getTimeUnit(), or null if not a time interval
      • getParameterRaw

        @Nullable
        public GribTables.Parameter getParameterRaw​(int discipline,
                                                    int category,
                                                    int number)
        Get the unprocessed parameter provided by this Grib2Table.
      • getParamTablePathUsedFor

        public String getParamTablePathUsedFor​(int discipline,
                                               int category,
                                               int number)
        Get the name of the parameter table that is being used for this parameter.
      • getParameters

        public com.google.common.collect.ImmutableList<GribTables.Parameter> getParameters()
        Get the list of parameters provided by this Grib2Table.
      • lookForProblems

        public void lookForProblems​(Formatter f)
      • showDetails

        public void showDetails​(Formatter f)