Ignore:
Timestamp:
01/30/20 16:22:52 (4 years ago)
Author:
ymipsl
Message:

Import bug fix correction from trunk at rev 1578 :

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

and 1582 : Missing file for rev. 1578

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/branchs/xios-2.5/src/io/nc4_data_input.cpp

    r1563 r1855  
    517517      domain->ni_glo.setValue(itMapNi->second); 
    518518    } 
     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    } 
    519537  } 
    520538 
Note: See TracChangeset for help on using the changeset viewer.