ncatted adds extra char to character attribute
Command-line operators for netCDF and HDF files
Brought to you by:
zender
After the following command
ncatted -a 'unit,rose,a,c,meters' \
-a 'long_name,rose,a,c,ETOPO1 Ice Surface' \
my-netcdf-file.nc
the netcdf file acquires these new attributes. But the output from ncdump -h includes
int rose(y, x) ;
rose:long_name = "zETOPO1 Ice Surface" ;
Note the "z" character at the top of the value of this attribute.
I'm sorry that was probably my mistake! Can I delete the report? Sorry.
closed per user request