public class NetCdfWriter extends Object implements AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
NetCdfWriter.Var<T> |
static class |
NetCdfWriter.VarBuilder<T> |
Constructor and Description |
---|
NetCdfWriter(File file,
String version) |
Modifier and Type | Method and Description |
---|---|
<T> NetCdfWriter |
add(NetCdfWriter.Var<T> variable,
T value) |
NetCdfWriter |
addAttribute(String name,
String value) |
<T> NetCdfWriter.VarBuilder<T> |
addVariable(String shortName,
Class<T> cls) |
<T> NetCdfWriter.Var<T> |
addVariable(String shortName,
com.google.common.base.Optional<String> longName,
com.google.common.base.Optional<String> units,
com.google.common.base.Optional<String> encoding,
Class<T> cls,
int numRecords) |
void |
close() |
ucar.nc2.NetcdfFileWriter |
writer() |
public ucar.nc2.NetcdfFileWriter writer()
public NetCdfWriter addAttribute(String name, String value)
public <T> NetCdfWriter.VarBuilder<T> addVariable(String shortName, Class<T> cls)
public <T> NetCdfWriter.Var<T> addVariable(String shortName, com.google.common.base.Optional<String> longName, com.google.common.base.Optional<String> units, com.google.common.base.Optional<String> encoding, Class<T> cls, int numRecords)
public <T> NetCdfWriter add(NetCdfWriter.Var<T> variable, T value)
public void close()
close
in interface AutoCloseable
Copyright © 2020. All rights reserved.