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

add "positive" attribute for vertical axis.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.