|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.dataset.DatasetConstructor
public class DatasetConstructor
Helper methods for constructing NetcdfDatasets.
| Constructor Summary | |
|---|---|
DatasetConstructor()
|
|
| Method Summary | |
|---|---|
static Group |
findGroup(NetcdfFile newFile,
Group oldGroup)
Find the Group in newFile that corresponds (by name) with oldGroup |
static Dimension |
getBoundsDimension(NetcdfFile ncfile)
|
static void |
transferDataset(NetcdfFile src,
NetcdfDataset target,
ReplaceVariableCheck replaceCheck)
Copy contents of "src" to "target". |
static void |
transferGroupAttributes(Group src,
Group target)
Copy attributes from src to target, skip ones that already exist (by name) |
static void |
transferVariableAttributes(Variable src,
Variable target)
Copy attributes from src to target, skip ones that already exist (by name) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatasetConstructor()
| Method Detail |
|---|
public static void transferDataset(NetcdfFile src,
NetcdfDataset target,
ReplaceVariableCheck replaceCheck)
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
public static void transferVariableAttributes(Variable src,
Variable target)
src - copy from heretarget - copy to here
public static void transferGroupAttributes(Group src,
Group target)
src - copy from heretarget - copy to here
public static Group findGroup(NetcdfFile newFile,
Group oldGroup)
newFile - look in this NetcdfFileoldGroup - corresponding (by name) with oldGroup
public static Dimension getBoundsDimension(NetcdfFile ncfile)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||