public class Grib1RecordScanner extends Object
Grib1RecordScanner reader = new Grib1RecordScanner(raf);
while (reader.hasNext()) {
ucar.nc2.grib.grib1.Grib1Record gr = reader.next();
Grib1SectionProductDefinition pds = gr.getPDSsection();
Grib1SectionGridDefinition gds = gr.getGDSsection();
...
}
| Constructor and Description |
|---|
Grib1RecordScanner(ucar.unidata.io.RandomAccessFile raf) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
static boolean |
isValidFile(ucar.unidata.io.RandomAccessFile raf) |
Grib1Record |
next() |
static void |
setAllowBadDsLength(boolean allowBadDsLength) |
static void |
setAllowBadIsLength(boolean allowBadIsLength) |
public Grib1RecordScanner(ucar.unidata.io.RandomAccessFile raf)
throws IOException
IOExceptionpublic static void setAllowBadIsLength(boolean allowBadIsLength)
public static void setAllowBadDsLength(boolean allowBadDsLength)
public static boolean isValidFile(ucar.unidata.io.RandomAccessFile raf)
public boolean hasNext()
throws IOException
IOException@Nullable public Grib1Record next() throws IOException
IOException