Ignore:
Timestamp:
02/07/17 11:52:03 (6 years ago)
Author:
ymipsl
Message:
  • Add label attribute for axis
  • if label attribute is present, then only only string label for each level will be output in netcdf file, ie value and bounds will not be output.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/io/netCdfInterface.cpp

    r972 r1050  
    967967} 
    968968 
     969template<> 
     970int CNetCdfInterface::ncGetVaraType(int ncid, int varid, const StdSize* start, const StdSize* count, char* data) 
     971{ 
     972  return nc_get_vara_text(ncid, varid, start, count, data); 
     973} 
     974 
    969975// Some specializations of putVariableType 
    970976template<> 
     
    984990{ 
    985991  return nc_put_vara_int(ncid, varid, start, count, data); 
     992} 
     993 
     994template<> 
     995int CNetCdfInterface::ncPutVaraType(int ncid, int varid, const StdSize* start, const StdSize* count, const char* data) 
     996{ 
     997  return nc_put_vara_text(ncid, varid, start, count, data); 
    986998} 
    987999 
Note: See TracChangeset for help on using the changeset viewer.