void addDimensionsToNetcdfFile ( NetcdfFile ncfile ) { if ( isLatLon ) { ncfile . addDimension ( g , new Dimension ( "lat" , gds . getInt ( GridDefRecord . NY ) , true ) ) ; ncfile . addDimension ( g , new Dimension ( "lon" , gds . getInt ( GridDefRecord . NX ) , true ) ) ; } else { ncfile . addDimension ( g , new Dimension ( "y" , gds . getInt ( GridDefRecord . NY ) , true ) ) ; ncfile . addDimension ( g , new Dimension ( "x" , gds . getInt ( GridDefRecord . NX ) , true ) ) ; } }
Add the dimensions associated with this coord sys to the netCDF file