Changeset 1855 for XIOS/branchs/xios-2.5/src/io/nc4_data_input.cpp
- Timestamp:
- 01/30/20 16:22:52 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/branchs/xios-2.5/src/io/nc4_data_input.cpp
r1563 r1855 517 517 domain->ni_glo.setValue(itMapNi->second); 518 518 } 519 // determine if coordinates values are present in file 520 if ((CDomain::type_attr::rectilinear == domain->type)) 521 { 522 // Ok, try to read some attributes such as longitude and latitude 523 domain->hasLatInReadFile_ = SuperClassWriter::hasVariable(itMapNj->first); 524 domain->hasLonInReadFile_ = SuperClassWriter::hasVariable(itMapNi->first); 525 } 526 else if ((CDomain::type_attr::curvilinear == domain->type) || (CDomain::type_attr::unstructured == domain->type) ) 527 { 528 StdString latName = this->getLatCoordName(fieldId); 529 domain->hasLatInReadFile_ = SuperClassWriter::hasVariable(latName) ; 530 StdString lonName = this->getLonCoordName(fieldId); 531 domain->hasLonInReadFile_ = SuperClassWriter::hasVariable(lonName) ; 532 StdString boundsLatName = this->getBoundsId(latName); 533 domain->hasBoundsLatInReadFile_ = SuperClassWriter::hasVariable(boundsLatName) ; 534 StdString boundsLonName = this->getBoundsId(lonName); 535 domain->hasBoundsLonInReadFile_ = SuperClassWriter::hasVariable(boundsLonName) ; 536 } 519 537 } 520 538
Note: See TracChangeset
for help on using the changeset viewer.