Changeset 1582 for XIOS/trunk


Ignore:
Timestamp:
09/19/18 14:43:25 (6 years ago)
Author:
ymipsl
Message:

Missing file for rev. 1578

Bug fix when reading rectilinear and attemp to call generate_rectilinear_domain filter. Coordinates in file was not taking into account.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/io/nc4_data_input.cpp

    r1573 r1582  
    494494      domain->ni_glo.setValue(itMapNi->second); 
    495495    } 
     496 
     497// determine if coordinates values are present in file 
     498    if ((CDomain::type_attr::rectilinear == domain->type)) 
     499    { 
     500      // Ok, try to read some attributes such as longitude and latitude 
     501      domain->hasLatInReadFile_ = SuperClassWriter::hasVariable(itMapNj->first); 
     502      domain->hasLonInReadFile_  = SuperClassWriter::hasVariable(itMapNi->first); 
     503    } 
     504    else if ((CDomain::type_attr::curvilinear == domain->type) || (CDomain::type_attr::unstructured == domain->type) ) 
     505    { 
     506      StdString latName = this->getLatCoordName(fieldId); 
     507      domain->hasLatInReadFile_ = SuperClassWriter::hasVariable(latName) ; 
     508      StdString lonName = this->getLonCoordName(fieldId);         
     509      domain->hasLonInReadFile_ = SuperClassWriter::hasVariable(lonName) ;  
     510      StdString boundsLatName = this->getBoundsId(latName); 
     511      domain->hasBoundsLatInReadFile_ = SuperClassWriter::hasVariable(boundsLatName) ;  
     512      StdString boundsLonName = this->getBoundsId(lonName); 
     513      domain->hasBoundsLonInReadFile_ = SuperClassWriter::hasVariable(boundsLonName) ; 
     514    } 
    496515  } 
    497516 
Note: See TracChangeset for help on using the changeset viewer.