Class 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 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)