Class GribIosp

  • All Implemented Interfaces:
    Comparable<ucar.nc2.iosp.IOServiceProvider>, ucar.nc2.iosp.IOServiceProvider
    Direct Known Subclasses:
    Grib1Iosp, Grib2Iosp

    public abstract class GribIosp
    extends ucar.nc2.iosp.AbstractIOServiceProvider
    Grib Collection IOSP, version 2. Handles both collections and single GRIB files. Immutable after open() is called.
    Since:
    4/6/11
    • Field Detail

      • debugIndexOnlyCount

        public static int debugIndexOnlyCount
      • config

        protected final thredds.featurecollection.FeatureCollectionConfig config
      • isGrib1

        protected final boolean isGrib1
      • logger

        protected final org.slf4j.Logger logger
      • isPartitioned

        protected boolean isPartitioned
      • owned

        protected boolean owned
    • Constructor Detail

      • GribIosp

        public GribIosp​(boolean isGrib1,
                        org.slf4j.Logger logger)
    • Method Detail

      • setParamTable

        public void setParamTable​(org.jdom2.Element paramTable)
      • setLookupTablePath

        public void setLookupTablePath​(String lookupTablePath)
      • setParamTablePath

        public void setParamTablePath​(String paramTablePath)
      • sendIospMessage

        @Nullable
        public Object sendIospMessage​(Object special)
        Specified by:
        sendIospMessage in interface ucar.nc2.iosp.IOServiceProvider
        Overrides:
        sendIospMessage in class ucar.nc2.iosp.AbstractIOServiceProvider
      • getVerticalCoordDesc

        protected abstract String getVerticalCoordDesc​(int vc_code)
      • isBuilder

        public boolean isBuilder()
        Specified by:
        isBuilder in interface ucar.nc2.iosp.IOServiceProvider
        Overrides:
        isBuilder in class ucar.nc2.iosp.AbstractIOServiceProvider
      • build

        public void build​(ucar.unidata.io.RandomAccessFile raf,
                          ucar.nc2.Group.Builder rootGroup,
                          ucar.nc2.util.CancelTask cancelTask)
                   throws IOException
        Specified by:
        build in interface ucar.nc2.iosp.IOServiceProvider
        Overrides:
        build in class ucar.nc2.iosp.AbstractIOServiceProvider
        Throws:
        IOException
      • open

        public void open​(ucar.unidata.io.RandomAccessFile raf,
                         ucar.nc2.NetcdfFile ncfile,
                         ucar.nc2.util.CancelTask cancelTask)
                  throws IOException
        Specified by:
        open in interface ucar.nc2.iosp.IOServiceProvider
        Overrides:
        open in class ucar.nc2.iosp.AbstractIOServiceProvider
        Throws:
        IOException
      • close

        public void close()
                   throws IOException
        Specified by:
        close in interface ucar.nc2.iosp.IOServiceProvider
        Overrides:
        close in class ucar.nc2.iosp.AbstractIOServiceProvider
        Throws:
        IOException
      • getDetailInfo

        public String getDetailInfo()
        Specified by:
        getDetailInfo in interface ucar.nc2.iosp.IOServiceProvider
        Overrides:
        getDetailInfo in class ucar.nc2.iosp.AbstractIOServiceProvider
      • readData

        public ucar.ma2.Array readData​(ucar.nc2.Variable v2,
                                       ucar.ma2.Section section)
                                throws IOException,
                                       ucar.ma2.InvalidRangeException
        Throws:
        IOException
        ucar.ma2.InvalidRangeException
      • getLastRecordRead

        public abstract Object getLastRecordRead()
      • clearLastRecordRead

        public abstract void clearLastRecordRead()
      • getGribCustomizer

        public abstract Object getGribCustomizer()