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(ucar.unidata.io.RandomAccessFile raf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()static booleanisValidFile(ucar.unidata.io.RandomAccessFile raf)Grib1Recordnext()static voidsetAllowBadDsLength(boolean allowBadDsLength)static voidsetAllowBadIsLength(boolean allowBadIsLength)
-
-
-
Constructor Detail
-
Grib1RecordScanner
public Grib1RecordScanner(ucar.unidata.io.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(ucar.unidata.io.RandomAccessFile raf)
-
hasNext
public boolean hasNext() throws IOException- Throws:
IOException
-
next
@Nullable public Grib1Record next() throws IOException
- Throws:
IOException
-
-