RandomAccessFile raf = new RandomAccessFile(gribFile, "r");
raf.order(RandomAccessFile.BIG_ENDIAN);
System.out.println("Comparing PDSs");
Grib2Input g2i = new Grib2Input(raf);
// params getProducts (implies unique GDSs too), oneRecord
g2i.scan(true, false);
List<Grib2Product> products = g2i.getProducts();
boolean passOne = true;
for (int i = 0; i < products.size(); i++) {
Grib2Product product = products.get(i);
raf.seek(product.getPdsOffset());