public final class Grib2Json extends Object
Converts a GRIB2 file to Json. GRIB2 decoding is performed by the netCDF-Java GRIB decoder. This class was initially based on Grib2Dump, part of the netCDF-Java library written by University Corporation for Atmospheric Research/Unidata. However, what appears below is a complete rewrite.
| Constructor and Description |
|---|
Grib2Json(File file,
List<Options> optionGroups) |
Grib2Json(File file,
List<Options> optionGroups,
OutputStream json) |
| Modifier and Type | Method and Description |
|---|---|
void |
write()
Convert the input file to Json as specified by the command line options.
|
public Grib2Json(File file, List<Options> optionGroups, OutputStream json)
public void write()
throws IOException
IOException - if something went wrong with IO (reading or writing)Copyright © 2013–2017. All rights reserved.