Package ucar.nc2.dataset
Class DatasetConstructor
java.lang.Object
ucar.nc2.dataset.DatasetConstructor
Deprecated.
do not use
Helper methods for constructing NetcdfDatasets.
- Since:
- Jul 6, 2007
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GroupfindGroup(NetcdfFile newFile, Group oldGroup) Deprecated.Find the Group in newFile that corresponds (by name) with oldGroupstatic DimensiongetBoundsDimension(NetcdfFile ncfile) Deprecated.static voidtransferDataset(NetcdfFile src, NetcdfDataset target, ReplaceVariableCheck replaceCheck) Deprecated.Copy contents of "src" to "target".static voidtransferGroupAttributes(Group src, Group target) Deprecated.Copy attributes from src to target, skip ones that already exist (by name)static voidtransferVariableAttributes(Variable src, Variable target) Deprecated.Copy attributes from src to target, skip ones that already exist (by name)
-
Constructor Details
-
DatasetConstructor
public DatasetConstructor()Deprecated.
-
-
Method Details
-
transferDataset
public static void transferDataset(NetcdfFile src, NetcdfDataset target, ReplaceVariableCheck replaceCheck) Deprecated.Copy contents of "src" to "target". skip ones that already exist (by name). Dimensions and Variables are replaced with equivalent elements, but unlimited dimensions are turned into regular dimensions. Attribute doesnt have to be replaced because its immutable, so its copied by reference.- Parameters:
src- transfer from here. If src is a NetcdfDataset, transferred variables get reparented to target group.target- transfer to this NetcdfDataset.replaceCheck- if null, add if a Variable of the same name doesnt already exist, otherwise replace if replaceCheck.replace( Variable v) is true
-
transferVariableAttributes
Deprecated.Copy attributes from src to target, skip ones that already exist (by name)- Parameters:
src- copy from heretarget- copy to here
-
transferGroupAttributes
Deprecated.Copy attributes from src to target, skip ones that already exist (by name)- Parameters:
src- copy from heretarget- copy to here
-
findGroup
Deprecated.Find the Group in newFile that corresponds (by name) with oldGroup- Parameters:
newFile- look in this NetcdfFileoldGroup- corresponding (by name) with oldGroup- Returns:
- corresponding Group, or null if no match.
-
getBoundsDimension
Deprecated.
-