Package ucar.nc2.dods
Class ConvertD2N
- java.lang.Object
-
- ucar.nc2.dods.ConvertD2N
-
public class ConvertD2N extends Object
Convert Dods object tree to netcdf.
-
-
Constructor Summary
Constructors Constructor Description ConvertD2N()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ucar.ma2.Arrayconvert(ucar.nc2.dods.DodsV dataV)Convert a DataDDS into an Arrayucar.ma2.ArrayconvertNestedVariable(ucar.nc2.Variable v, List<ucar.ma2.Range> section, ucar.nc2.dods.DodsV dataV, boolean flatten)Convert a DataDDS into an Array for a Structure member variable.ucar.ma2.ArrayconvertTopVariable(ucar.nc2.Variable v, List<ucar.ma2.Range> section, ucar.nc2.dods.DodsV dataV)Convert a DataDDS into an Array for a top level variable, ie not a Structure member variable.
-
-
-
Method Detail
-
convertNestedVariable
public ucar.ma2.Array convertNestedVariable(ucar.nc2.Variable v, List<ucar.ma2.Range> section, ucar.nc2.dods.DodsV dataV, boolean flatten) throws IOException, DAP2ExceptionConvert a DataDDS into an Array for a Structure member variable.- Parameters:
v- must be a member of a structuresection- the requested variable section, as a List of type RangedataV- the dataDDS has been parsed into this dodsV, this is the top variable containing vflatten- if true, remove the StructureData "wrapper".- Returns:
- the data as as Array
- Throws:
IOException- on io errorDAP2Exception- on bad things happening
-
convertTopVariable
public ucar.ma2.Array convertTopVariable(ucar.nc2.Variable v, List<ucar.ma2.Range> section, ucar.nc2.dods.DodsV dataV) throws IOException, DAP2ExceptionConvert a DataDDS into an Array for a top level variable, ie not a Structure member variable.- Parameters:
v- must be a top variablesection- the requested variable sectiondataV- the dataDDS has been parsed into this dodsV- Returns:
- the data as as Array
- Throws:
IOException- on io errorDAP2Exception- on bad
-
convert
public ucar.ma2.Array convert(ucar.nc2.dods.DodsV dataV) throws IOException, DAP2ExceptionConvert a DataDDS into an Array- Parameters:
dataV- the dataDDS has been parsed into this dodsV- Returns:
- the data as as Array
- Throws:
IOException- on io errorDAP2Exception- on bad
-
-