Menu

#121 ncatted adds extra char to character attribute

None
closed-rejected
None
5
2020-03-24
2020-03-24
Ryo
No

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.

Discussion

  • Ryo

    Ryo - 2020-03-24

    I'm sorry that was probably my mistake! Can I delete the report? Sorry.

     
  • Charlie Zender

    Charlie Zender - 2020-03-24
    • status: open --> closed-rejected
    • assigned_to: Charlie Zender
    • Group: -->
     
  • Charlie Zender

    Charlie Zender - 2020-03-24

    closed per user request

     

Log in to post a comment.

MongoDB Logo MongoDB