Changeset 399 for XIOS/trunk


Ignore:
Timestamp:
12/13/12 09:43:48 (11 years ago)
Author:
ymipsl
Message:

add "positive" attribute for vertical axis.

YM

Location:
XIOS/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/config/axis_attribute.conf

    r369 r399  
    99DECLARE_ATTRIBUTE(int,       zoom_end) 
    1010DECLARE_ATTRIBUTE(int,       zoom_size) 
     11DECLARE_ENUM2(positive, up, down) 
    1112DECLARE_ARRAY(double, 1, value) 
    1213 
  • XIOS/trunk/src/node/axis.hpp

    r369 r399  
    88#include "declare_group.hpp" 
    99#include "attribute_array.hpp" 
     10#include "attribute_enum.hpp" 
     11#include "attribute_enum_impl.hpp" 
    1012 
    1113namespace xios { 
  • XIOS/trunk/src/output/nc4_data_output.cpp

    r391 r399  
    300300                  SuperClassWriter::addAttribute 
    301301                     ("units", axis->unit.getValue(), &axisid); 
     302 
     303              if (!axis->positive.isEmpty()) 
     304                if (axis->positive==CAxis::positive_attr::up) SuperClassWriter::addAttribute("positive", string("up"), &axisid); 
     305                else   SuperClassWriter::addAttribute("positive", string("down"), &axisid); 
    302306 
    303307               SuperClassWriter::definition_end(); 
Note: See TracChangeset for help on using the changeset viewer.