grib/src/main/java/ucar/nc2/grib/grib1/Grib1Record.java
public float[] readData(RandomAccessFile raf, GribData.InterpolationMethod method) throws IOException {
    Grib1Gds gds = getGDS();
    Grib1DataReader reader = new Grib1DataReader(pdss.getDecimalScale(), gds.getScanMode(), gds.getNxRaw(), gds.getNyRaw(), gds.getNpts(), dataSection.getStartingPosition());
    byte[] bm = (bitmap == null) ? null : bitmap.getBitmap(raf);
    float[] data = reader.getData(raf, bm);

    if (gdss.isThin()) {
      data = QuasiRegular.convertQuasiGrid(data, gds.getNptsInLine(), gds.getNxRaw(), gds.getNyRaw(), method);
    }

    lastRecordRead = this;
    return data;
  }
public float[] readData(RandomAccessFile raf, GribData.InterpolationMethod method) throws IOException {
    Grib1Gds gds = getGDS();
    Grib1DataReader reader = new Grib1DataReader(pdss.getDecimalScale(), gds.getScanMode(), gds.getNxRaw(), gds.getNyRaw(), gds.getNpts(), dataSection.getStartingPosition());
    byte[] bm = (bitmap == null) ? null : bitmap.getBitmap(raf);
    float[] data = reader.getData(raf, bm);

    if (gdss.isThin()) {
      data = QuasiRegular.convertQuasiGrid(data, gds.getNptsInLine(), gds.getNxRaw(), gds.getNyRaw(), method);
    }

    lastRecordRead = this;
    return data;
  }
public float [ ] readData ( RandomAccessFile raf , GribData . InterpolationMethod method ) throws IOException { Grib1Gds gds = getGDS ( ) ; Grib1DataReader reader = new Grib1DataReader ( pdss . getDecimalScale ( ) , gds . getScanMode ( ) , gds . getNxRaw ( ) , gds . getNyRaw ( ) , gds . getNpts ( ) , dataSection . getStartingPosition ( ) ) ; byte [ ] bm = ( bitmap == null ) ? null : bitmap . getBitmap ( raf ) ; float [ ] data = reader . getData ( raf , bm ) ; if ( gdss . isThin ( ) ) { data = QuasiRegular . convertQuasiGrid ( data , gds . getNptsInLine ( ) , gds . getNxRaw ( ) , gds . getNyRaw ( ) , method ) ; } lastRecordRead = this ; return data ; }
isolate dependencies here - in case we have a "minimal I/O" mode where not all fields are available
isolate dependencies here - in case we have a minimal I / O mode where not all fields are available