Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
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: