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

Re: Max length on attributes in cdl files?

Bill,

> In an effort to maximize the readability of my cdl files, I entered
> extensive multi-line comments in the :units attribute.  This worked fine on
> a sun running SunOS, but not on HP-UX or SGI, which bumped up against a 200
> character limit.
> 
> So my question is, what is the best way to include documention like the
> following in a cdl file?
> 
> THIS FAILS ON SOME MACHINES:
> byte correctedFlag(recNum);
>  correctedFlag:long_name ="Corrected data indicator";
>  correctedFlag:units = "
>   r = raw data,
>   l = data that has  undergone lat/lon correction
>      (other than interpolation),
>   T = data that has undergone temperature correction, 
>   f = longitude and wind direction flipped, 
>   t = obs time has been set to the report receipt time
> ";

  While there are a large number of valid ways to solve this problem, I'd 
propose the following:

  Several point data CDLs used in FSL for NIMBUS (Networked Information 
Management client-Based User Service) do not regard the possible values of a
given variable as units, but instead use something like:

byte correctedFlag(recNum);
     correctedFlag:long_name ="Corrected data indicator";
     correctedFlag:valuer = "raw data";
     correctedFlag:valuel = "data that has undergone lat/lon correction (other 
than interpolation)";
     correctedFlag:valueT = "data that has undergone temperature correction";
     correctedFlag:valuef = "longitude and wind direction flipped";
     correctedFlag:valuet = "obs time has been set to the report receipt time";

Dave Osburn
Forecast Systems Laboratory
Boulder, CO
497-3133

 
 
  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