Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: Fortran and Attribute Strings

Jim -- Do you know which 'python-netCDF processor' was used to generate
your dataset?  There are several.  I wrote one of them (the nc module)
and I believe I handle string attributes by creating the attribute
with a length equal to that of the string (without any null termination).
You can, however, create an attribute of a certain length and then put a
shorter string in it.  In this case it will fill with nulls.

--Bill Noon
Northeast Regional Climate Center
Cornell University



 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690