grib/src/main/java/ucar/nc2/grib/writer/GribToNetcdfWriter.java
public static void main(String[] args) {
    String fileIn = (args.length > 0) ? args[0] : "Q:/cdmUnitTest/formats/grib2/LMPEF_CLM_050518_1200.grb";
    String fileOut = (args.length > 1) ? args[1] : "C:/tmp/ds.mint.bi";

    try (GribToNetcdfWriter writer = new GribToNetcdfWriter(fileIn, fileOut)) {
      writer.write();

    } catch (IOException e) {
      e.printStackTrace();
    }

  }
public static void main(String[] args) {
    String fileIn = (args.length > 0) ? args[0] : "Q:/cdmUnitTest/formats/grib2/LMPEF_CLM_050518_1200.grb";
    String fileOut = (args.length > 1) ? args[1] : "C:/tmp/ds.mint.bi";

    try (GribToNetcdfWriter writer = new GribToNetcdfWriter(fileIn, fileOut)) {
      writer.write();

    } catch (IOException e) {
      e.printStackTrace();
    }

  }
public static void main ( String [ ] args ) { String fileIn = ( args . length > 0 ) ? args [ 0 ] : "Q:/cdmUnitTest/formats/grib2/LMPEF_CLM_050518_1200.grb" ; String fileOut = ( args . length > 1 ) ? args [ 1 ] : "C:/tmp/ds.mint.bi" ; try ( GribToNetcdfWriter writer = new GribToNetcdfWriter ( fileIn , fileOut ) ) { writer . write ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
Write Grib file to a netcdf4 file. Experimental.
Write Grib file to a netcdf4 file . Experimental .