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

RE: dimension attributes?

Hi Ben:

Dimensions cannot have attributes.

Probably the best workaround is to add the desired attributes to a
coordinate variable. A coordinate variable has the same name as its
dimension, eg:

  dimensions:
    lat = 44;

  variables:
    float lat(lat);
        lat:cat = "in the hat";

>
> Sorry if this is an FAQ, but can netcdf dimensions
> have attributes?  I'm mainly interested in annotating
> my dimensions, so a text attribute would be useful.
>
> I've tried nf_put_att_text with the id of the dimension,
> but it complains that it can't find the variable.


 
 
  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