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.
Hello, I am trying to get the array for vertical transform for 'temp' grid for the dataset ftp://ftp.ssc.hpc.msstate.edu/outgoing/skbhate/nopp/test_bora.nc' But, I get this error, ??? Java exception occurred: java.lang.ArrayIndexOutOfBoundsException: 1 at ucar.unidata.geoloc.vertical.OceanS.makeHeight(OceanS.java:198)at ucar.unidata.geoloc.vertical.OceanS.getCoordinateArray(OceanS.java:141)
for the code.. GridDataset = GridDataset.open(uri); % get the grid associated with the variable name "temp" (temperature) Grid = GridDataset.findGridByName('temp'); % get the coordinate system for this grid: GridCoordSys = Grid.getCoordinateSystem(); % if 3D, get vertical coordinatezj = GridCoordSys.getVerticalTransform.getCoordinateArray(0); % vertical transform
right now, the ' xi_rho' is the singleton dimension, but if I change the dimension to anything
other than singleton, it works fine. Can you suggest me why ? thanks.. Sachin.
netcdf-java
archives: