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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are There Best Practices for Developing New NetCDF Conventions?





Russ Rew wrote:

So we are wondering what the netCDF conventions community thinks
about these considerations, and any advice or experience they may
offer us on how to add our own attributes to a netCDF file in a
coherent way that is harmonious with other, existing conventions.

For now I would recommend simple prefixes as part of the attribute
name in new conventions comprehensive enough that name clashes with
existing conventions are likely.

should be "unlikely".

I could see mimicking XML namespaces somewhat, by adding a prefix to attribute names, but what should the seperator charactor be? Unfortunately the ":" wont work, since right now in CDL syntax we have:

 char time(record=63, time_len=21);
    time:long_name = "forecast date and time";

suppose you want to add an attribute "title" and indicate its in the "Dublin Core" namespace. Possible examples:

 char time(record=63, time_len=21);
   time:long_name = "forecast date and time";
   time:dc_title = "forecast date and time";

 char time(record=63, time_len=21);
    time:long_name = "forecast date and time";
    time:dc/title = "forecast date and time";

 char time(record=63, time_len=21);
    time:long_name = "forecast date and time";
    time:dc#title = "forecast date and time";

 char time(record=63, time_len=21);
    time:long_name = "forecast date and time";
    time:dc@title = "forecast date and time";

etc. At the moment the "/" seems the most natural with less possible conflicts.


this would just be a convention, but we could start a "namespace" convention page, to minimize conflicts, just listing them:

Prefix   Convention	  XML namespace				Owner
dc  	  Dublin Core	   "http://purl.org/dc/elements/1.1/";	 Dublin Core Initiative
thredds  THREDDS	   "http://unidata.ucar.edu/thredds/";	 Unidata
...

===============================================================================
To unsubscribe netcdfgroup, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
===============================================================================


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of 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