public Array readWithCE(ucar.nc2.Variable v, String CE) throws IOException { Array dataArray; try { DataDDS dataDDS = readDataDDSfromServer(CE); DodsV root = DodsV.parseDataDDS(dataDDS); DodsV want = root.children.get(0); // can only be one if (v.isMemberOfStructure()) dataArray = convertD2N.convertNestedVariable(v, null, want, true); else dataArray = convertD2N.convertTopVariable(v, null, want); } catch (DAP2Exception ex) { ex.printStackTrace(); throw new IOException(ex.getMessage()); } catch (ParseException ex) { ex.printStackTrace(); throw new IOException(ex.getMessage()); } return dataArray; }
dataDDS = readDataDDSfromServer(requestString.toString()); root = DodsV.parseDataDDS(dataDDS);
DataDDS dataDDS = readDataDDSfromServer(buff.toString()); DodsV root = DodsV.parseDataDDS(dataDDS); DodsV want = root.children.get(0); // can only be one