Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: [netcdfgroup] Should NetCDF character attributes be null-terminated

Katja Petzoldt wrote:
>
> Should NetCDF character attributes be null-terminated

In general, no. Character attributes are specified and written by length, not with a terminator byte.

Netcdf Best Practices:

http://www.unidata.ucar.edu/software/netcdf/docs/BestPractices.html#Strings%20and%20Variables%20of%20type%20char

String guidelines for specific languages:

http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-c/Strings.html
http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-f77/Reading-and-Writing-Character-String-Values.html
http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-f90/Reading-and-Writing-Character-String-Values.html

Dave Allured
CU/CIRES Climate Diagnostics Center (CDC)
http://cires.colorado.edu/science/centers/cdc/
NOAA/ESRL/PSD, Climate Analysis Branch (CAB)
http://www.cdc.noaa.gov/


  • 2008 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: