Skip to content
Permalink
Browse files

allowing ... and , notation in ncml for values

  • Loading branch information...
heikoklein authored and alexander-buerger-met-no committed Jan 24, 2017
1 parent f41a704 commit 1910800e5819a3ca9ca6ada9619c2243c8df263c
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/NcmlCDMReader.cc
@@ -246,11 +246,7 @@ void NcmlCDMReader::initVariableDataChange()
if (name == "") throw CDMException("ncml-file "+ configId + " has no name for variable");
if (cdm_->hasVariable(name)) {
std::string values = getXmlContent(nodes->nodeTab[i]);
std::vector<std::string> tokens = tokenize(values, " \t\r\n");
std::vector<double> dvals;
dvals.reserve(tokens.size());
std::transform(tokens.begin(), tokens.end(),
std::back_inserter(dvals), string2type<double>);
std::vector<double> dvals = tokenizeDotted<double>(values, " ,\t\r\n");
CDMVariable& var = cdm_->getVariable(name);
// check that no. of values == shape-size
vector<string> dims = var.getShape();

0 comments on commit 1910800

Please sign in to comment.
You can’t perform that action at this time.