Package ucar.nc2.grib.grib1
Class Grib1RecordScanner
- java.lang.Object
-
- ucar.nc2.grib.grib1.Grib1RecordScanner
-
public class Grib1RecordScanner extends Object
Scan files and extract Grib1Records. usage:Grib1RecordScanner reader = new Grib1RecordScanner(raf); while (reader.hasNext()) { ucar.nc2.grib.grib1.Grib1Record gr = reader.next(); Grib1SectionProductDefinition pds = gr.getPDSsection(); Grib1SectionGridDefinition gds = gr.getGDSsection(); ... }
- Since:
- 9/3/11
-
-
Constructor Summary
Constructors Constructor Description Grib1RecordScanner(RandomAccessFile raf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
static boolean
isValidFile(RandomAccessFile raf)
Grib1Record
next()
static void
setAllowBadDsLength(boolean allowBadDsLength)
static void
setAllowBadIsLength(boolean allowBadIsLength)
-
-
-
Constructor Detail
-
Grib1RecordScanner
public Grib1RecordScanner(RandomAccessFile raf) throws IOException
- Throws:
IOException
-
-
Method Detail
-
setAllowBadIsLength
public static void setAllowBadIsLength(boolean allowBadIsLength)
-
setAllowBadDsLength
public static void setAllowBadDsLength(boolean allowBadDsLength)
-
isValidFile
public static boolean isValidFile(RandomAccessFile raf)
-
hasNext
public boolean hasNext() throws IOException
- Throws:
IOException
-
next
@Nullable public Grib1Record next() throws IOException
- Throws:
IOException
-
-