Package ucar.nc2.dataset
Class NetcdfDataset.Builder<T extends NetcdfDataset.Builder<T>>
- java.lang.Object
-
- ucar.nc2.NetcdfFile.Builder<T>
-
- ucar.nc2.dataset.NetcdfDataset.Builder<T>
-
- Enclosing class:
- NetcdfDataset
public abstract static class NetcdfDataset.Builder<T extends NetcdfDataset.Builder<T>> extends NetcdfFile.Builder<T>
-
-
Field Summary
Fields Modifier and Type Field Description AggregationIF
agg
CoordinatesHelper.Builder
coords
NetcdfFile
orgFile
-
Fields inherited from class ucar.nc2.NetcdfFile.Builder
iosp, location, rootGroup
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addEnhanceMode(NetcdfDataset.Enhance addEnhanceMode)
void
addEnhanceModes(Set<NetcdfDataset.Enhance> addEnhanceModes)
NetcdfDataset
build()
T
copyFrom(NetcdfFile orgFile)
Copy metadata from orgFile.Set<NetcdfDataset.Enhance>
getEnhanceMode()
void
removeEnhanceMode(NetcdfDataset.Enhance removeEnhanceMode)
void
replaceCoordinateAxis(Group.Builder group, CoordinateAxis.Builder axis)
Add a CoordinateAxis to the dataset coordinates and to the list of variables.protected abstract T
self()
T
setAggregation(AggregationIF agg)
T
setConventionUsed(String convUsed)
T
setDefaultEnhanceMode()
T
setEnhanceMode(Set<NetcdfDataset.Enhance> enhanceMode)
T
setOrgFile(NetcdfFile orgFile)
-
Methods inherited from class ucar.nc2.NetcdfFile.Builder
setId, setIosp, setLocation, setRootGroup, setTitle
-
-
-
-
Field Detail
-
orgFile
@Nullable public NetcdfFile orgFile
-
coords
public CoordinatesHelper.Builder coords
-
agg
public AggregationIF agg
-
-
Method Detail
-
self
protected abstract T self()
- Specified by:
self
in classNetcdfFile.Builder<T extends NetcdfDataset.Builder<T>>
-
replaceCoordinateAxis
public void replaceCoordinateAxis(Group.Builder group, CoordinateAxis.Builder axis)
Add a CoordinateAxis to the dataset coordinates and to the list of variables. Replaces any existing Variable and CoordinateAxis with the same name.
-
setOrgFile
public T setOrgFile(NetcdfFile orgFile)
-
setEnhanceMode
public T setEnhanceMode(Set<NetcdfDataset.Enhance> enhanceMode)
-
setDefaultEnhanceMode
public T setDefaultEnhanceMode()
-
getEnhanceMode
public Set<NetcdfDataset.Enhance> getEnhanceMode()
-
addEnhanceMode
public void addEnhanceMode(NetcdfDataset.Enhance addEnhanceMode)
-
removeEnhanceMode
public void removeEnhanceMode(NetcdfDataset.Enhance removeEnhanceMode)
-
addEnhanceModes
public void addEnhanceModes(Set<NetcdfDataset.Enhance> addEnhanceModes)
-
setAggregation
public T setAggregation(AggregationIF agg)
-
copyFrom
public T copyFrom(NetcdfFile orgFile)
Copy metadata from orgFile. Do not copy the coordinates, etc
-
build
public NetcdfDataset build()
- Overrides:
build
in classNetcdfFile.Builder<T extends NetcdfDataset.Builder<T>>
-
-