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.
Daniele Romagnoli wrote:
Hi list,In version 4.0 of netcdf java library the method Dimension.addCoordinateVariable have been deprecated. The javadoc states that private dimensions cannot have CoordinateVariables while shared may have them. Once I define a Dimension as shared, how should I add a coordinateVariable to it?Thank you. Best Regards, Daniele
Hi Daniele: To add a coordinate variable, just add a variable which has a single dimension with the same name as the variable. The library then discovers these coordinate variables at the appropriate places. Dimension.addCoordinateVariable is deprecated to remove linkage between the two classes, which makes things easier in certain cases, and is good design practice.
netcdf-java
archives: