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/node/field.hpp

    r651 r676  
    9999         bool isActive(void) const; 
    100100         bool hasOutputFile; 
     101 
     102         bool getUseCompressedOutput() const; 
     103         void setUseCompressedOutput(); 
    101104 
    102105         /// Traitements /// 
     
    142145        void inputField(CArray<double,2>& fieldOut); 
    143146        void inputField(CArray<double,1>& fieldOut); 
     147        void outputCompressedField(CArray<double, 1>& fieldOut); 
    144148        void scaleFactorAddOffset(double scaleFactor, double addOffset); 
    145149        void invertScaleFactorAddOffset(double scaleFactor, double addOffset); 
     
    187191         std::pair<StdString,StdString> domAxisIds_; 
    188192         bool isReadDataRequestPending; 
     193         bool useCompressedOutput; 
    189194 
    190195         DECLARE_REF_FUNC(Field,field) 
Note: See TracChangeset for help on using the changeset viewer.