Commit c057fb1bfca01603c1af7bbaecb1325071c97324
Exists in
master
and in
85 other branches
Merge branch 'master' into rm_6616
Showing
3 changed files
with
4 additions
and
1 deletions
Show diff stats
src/ParamOutputImpl/Download/FileWriterASCIIAbstract.cc
... | ... | @@ -108,6 +108,7 @@ bool FileWriterASCIIAbstract::addParameter(ParamProperties* paramProp, AMDA::Com |
108 | 108 | //init field working structure |
109 | 109 | _fieldInfoMap[paramProp->getOutputId()].name = paramInfo->getName(); |
110 | 110 | _fieldInfoMap[paramProp->getOutputId()].ucd = paramInfo->getUcd(); |
111 | + _fieldInfoMap[paramProp->getOutputId()].unit = paramInfo->getUnits(); | |
111 | 112 | _fieldInfoMap[paramProp->getOutputId()].type = type; |
112 | 113 | _fieldInfoMap[paramProp->getOutputId()].dimSize1 = dim1Size; |
113 | 114 | _fieldInfoMap[paramProp->getOutputId()].dimSize2 = dim2Size; | ... | ... |
src/ParamOutputImpl/Download/FileWriterASCIIAbstract.hh
src/ParamOutputImpl/Download/FileWriterASCIIVOTable.cc
... | ... | @@ -140,7 +140,8 @@ void FileWriterASCIIVOTable::writeFieldDescription(std::string paramId) |
140 | 140 | _outputFile << " <FIELD name=\""; |
141 | 141 | _outputFile << _fieldInfoMap[paramId].name << "\" ID=\""; |
142 | 142 | _outputFile << paramId << "\" ucd=\""; |
143 | - _outputFile << _fieldInfoMap[paramId].ucd << "\" datatype=\""; | |
143 | + _outputFile << _fieldInfoMap[paramId].ucd << "\" unit=\""; | |
144 | + _outputFile << _fieldInfoMap[paramId].unit << "\" datatype=\""; | |
144 | 145 | |
145 | 146 | switch (_fieldInfoMap[paramId].type) |
146 | 147 | { | ... | ... |