Ignore:
Timestamp:
08/25/15 16:52:45 (9 years ago)
Author:
rlacroix
Message:

Add support for indexed output.

If the new field attribute "indexed_output" is set to true and a mask is defined (either at grid, domain or axis level), the indexed data will be outputed instead of the full data with missing values.

See http://cfconventions.org/Data/cf-conventions/cf-conventions-1.5/build/cf-conventions.html#compression-by-gathering for more information.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/distribution_server.cpp

    r668 r676  
    146146} 
    147147 
     148/*! 
     149  Transforms local indexes owned by the server into global indexes 
     150  \param [in/out] indexes on input, local indexes of the server, 
     151                          on output, the corresponding global indexes 
     152*/ 
     153void CDistributionServer::computeGlobalIndex(CArray<int,1>& indexes) const 
     154{ 
     155  for (int i = 0; i < indexes.numElements(); ++i) 
     156  { 
     157    indexes(i) = globalIndex_(indexes(i)); 
     158  } 
     159} 
    148160 
    149 std::vector<int> CDistributionServer::getZoomBeginGlobal() const 
     161 
     162const std::vector<int>& CDistributionServer::getZoomBeginGlobal() const 
    150163{ 
    151164  return nZoomBeginGlobal_; 
    152165} 
    153166 
    154 std::vector<int> CDistributionServer::getZoomBeginServer() const 
     167const std::vector<int>& CDistributionServer::getZoomBeginServer() const 
    155168{ 
    156169  return nZoomBegin_; 
    157170} 
    158171 
    159 std::vector<int> CDistributionServer::getZoomSizeServer() const 
     172const std::vector<int>& CDistributionServer::getZoomSizeServer() const 
    160173{ 
    161174  return nZoomSize_; 
Note: See TracChangeset for help on using the changeset viewer.