visad/src/main/java/ucar/nc2/iosp/gempak/GempakGridReader.java
public float[] readGrid(GridRecord gr) throws IOException {

    int gridNumber = ((GempakGridRecord) gr).getGridNumber();
    //int irow = 1;  // Always 1 for grids
    //int icol = gridNumber;
    RData data = DM_RDTR(1, gridNumber, "GRID", gr.getDecimalScale());
    float[] vals = null;
    if (data != null) {
      vals = data.data;
    }
    return vals;
  }
public float[] readGrid(GridRecord gr) throws IOException {

    int gridNumber = ((GempakGridRecord) gr).getGridNumber();
    //int irow = 1;  // Always 1 for grids
    //int icol = gridNumber;
    RData data = DM_RDTR(1, gridNumber, "GRID", gr.getDecimalScale());
    float[] vals = null;
    if (data != null) {
      vals = data.data;
    }
    return vals;
  }
Read the data

@param gr grid record
@return the data array
@throws IOException problem reading file