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

Re: Attributes as arrays why ?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Freitag, 16. Mai 2003 19:14 schrieb John Caron:
> > Ok it is no bug but if someone is using this then the resulting data
> > file is'nt described by the standard rules of netCDF.
> >
> > Reimar
>
> appendix B of netcdf manual shows the file format spec, which has:
>
>     attr := name  nc_type  nelems  [values]
>
> see
> http://www.unidata.ucar.edu/packages/netcdf/guidec/guidec-18.html#HEADING18
>-0

Yes it's all correct but the difference to the  variables is thats the reader 
of the data has no idea how long the vector is. If the vector is defined as a 
netCDF variable we have to look first at the belonging  dimension name and we 
are able to read it's length.
This means the data type, length and dimension are described with variables in 
the file. By a vector as attribute there is no rule given.

Reimar

- -- 
Forschungszentrum Juelich
email: R.Bauer@xxxxxxxxxxxxx
http://www.fz-juelich.de/icg/icg-i/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE+xVFU5aOc3Q9hk/kRAtlsAJ4/4f03zAEnicMug5Kw2T49hHMYSQCdHQSP
5yDWEvnHGunJjmJxxy5Rt4g
=KgtZ
-----END PGP SIGNATURE-----



 
 
  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