visad/src/main/java/ucar/nc2/iosp/gempak/GempakStationFileIOSP.java
private Array get1DArray(DataType type, int len) {
    Array varArray = null;
    if (type.equals(DataType.FLOAT)) {
      varArray = new ArrayFloat.D1(len);
    } else if (type.equals(DataType.DOUBLE)) {
      varArray = new ArrayDouble.D1(len);
    } else if (type.equals(DataType.INT)) {
      varArray = new ArrayInt.D1(len, false);
    }
    return varArray;
  }
private Array get1DArray(DataType type, int len) {
    Array varArray = null;
    if (type.equals(DataType.FLOAT)) {
      varArray = new ArrayFloat.D1(len);
    } else if (type.equals(DataType.DOUBLE)) {
      varArray = new ArrayDouble.D1(len);
    } else if (type.equals(DataType.INT)) {
      varArray = new ArrayInt.D1(len, false);
    }
    return varArray;
  }
private Array get1DArray ( DataType type , int len ) { Array varArray = null ; if ( type . equals ( DataType . FLOAT ) ) { varArray = new ArrayFloat . D1 ( len ) ; } else if ( type . equals ( DataType . DOUBLE ) ) { varArray = new ArrayDouble . D1 ( len ) ; } else if ( type . equals ( DataType . INT ) ) { varArray = new ArrayInt . D1 ( len , false ) ; } return varArray ; }
Get a 1DArray for the type and length

@param type DataType
@param len  length
@return the array
Get a 1DArray for the type and length