Changeset 618 for XIOS/branchs/xios-1.0


Ignore:
Timestamp:
06/12/15 10:56:45 (9 years ago)
Author:
rlacroix
Message:

CF compliance: Fix cell_methods attribute.

The specifications do not allow using an auxiliary coordinate to identify an axis. Instead always use the generic standard name "time".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/branchs/xios-1.0/src/output/nc4_data_output.cpp

    r617 r618  
    855855              SuperClassWriter::addAttribute("interval_write", freqOut.toStringUDUnits(), &fieldid); 
    856856 
    857               StdString cellMethods = coodinates.front() + ": "; 
     857              StdString cellMethods = "time: "; 
    858858              if (field->operation.getValue() == "instant") cellMethods += "point"; 
    859859              else if (field->operation.getValue() == "average") cellMethods += "mean"; 
Note: See TracChangeset for help on using the changeset viewer.