Changeset 1288


Ignore:
Timestamp:
10/04/17 15:44:34 (4 years ago)
Author:
ymipsl
Message:

Fix and enhancement when writing axis bounds in output file.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/io/nc4_data_output.cpp

    r1266 r1288  
    12011201              SuperClassWriter::addVariable(axisBoundsId, typePrec, dims); 
    12021202              SuperClassWriter::addAttribute("bounds", axisBoundsId, &axisid); 
     1203 
     1204              if (!axis->standard_name.isEmpty()) 
     1205                SuperClassWriter::addAttribute("standard_name", axis->standard_name.getValue(), &axisBoundsId); 
     1206 
     1207              if (!axis->unit.isEmpty()) 
     1208                SuperClassWriter::addAttribute("units", axis->unit.getValue(), &axisBoundsId); 
     1209 
    12031210              if (!axis->formula_bounds.isEmpty()) 
    1204                 SuperClassWriter::addAttribute("formula", axis->formula_bounds.getValue(), &axisid); 
     1211                SuperClassWriter::addAttribute("formula", axis->formula_bounds.getValue(), &axisBoundsId); 
    12051212 
    12061213              if (!axis->formula_term_bounds.isEmpty()) 
    1207                 SuperClassWriter::addAttribute("formula_term", axis->formula_bounds.getValue(), &axisid); 
     1214                SuperClassWriter::addAttribute("formula_term", axis->formula_term_bounds.getValue(), &axisBoundsId); 
    12081215            } 
    12091216 
Note: See TracChangeset for help on using the changeset viewer.