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.


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