NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hello everyone I have a couple questions regarding the definition of dimensions in groups; Consider the following CDL definition netcdf in_grp { dimensions: lon=3; variables: //coordinate variable float lon(lon); data: lon=1,2,3; group: g1 { dimensions: lon=2; variables: float lon(lon); float data(lon) data: lon=1,2; } // end g1 } // end There is a "lon" dimension/coordinate variable both at root and in group /g1 and they have different dimensions, so variable named "data" has 2 dimensions with the same name in scope, and somehow has to choose one Just wanted to confirm 1) Is this definition legal? 2) What is the algorithm that the netCDF library uses to distinguish between both dimensions in scope for the variable /g1/data? 3) Defining "lon" as a coordinate variable instead of just a dimension name, does this definition has any consequence for the way this is handled by the library for this case? Can someone from Unidata please point me to the location in the source code where this is handled? thanks Pedro ---------------------- Pedro Vicente http://www.space-research.org/
netcdfgroup
archives: