Changeset 618


Ignore:
Timestamp:
06/12/15 10:56:45 (6 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".

Location:
XIOS
Files:
2 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"; 
  • XIOS/trunk/src/output/nc4_data_output.cpp

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