[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDFJava #VRE-280309]: Problem converting NcML to NetCDF



the problem is that the 3D vars in that file are > 2 Gbytes, eg

   float v(ocean_time=351, s_rho=36, eta_v=253, xi_v=224);

So you need to use the large format, and i think theres currently not a way to 
specify that on on that interface. Ill have to add that.

but are you sure you want to write a file that big?

> NJ Folks,
> 
> I've created a NcML file that ToolsUI-4.0.jar reads just fine, but
> when I try to convert to NetCDF, I get this error:
> 
> C:\RPS\java\jar>java -Xmx1024m -classpath toolsUI-4.0.jar
> ucar.nc2.dataset.NetcdfDataset -in test.ncml -out foo.nc
> 
> Read from test.ncml write to foo.nc
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
> at java.lang.System.arraycopy(Native Method)
> at ucar.ma2.Array.arraycopy(Array.java:286)
> at 
> ucar.nc2.ncml.AggregationOuterDimension.read(AggregationOuterDimension.java:314)
> at ucar.nc2.dataset.VariableDS._read(VariableDS.java:466)
> at ucar.nc2.Variable.read(Variable.java:790)
> at ucar.nc2.FileWriter.copyAll(FileWriter.java:294)
> at ucar.nc2.FileWriter.copyVarData(FileWriter.java:250)
> at ucar.nc2.FileWriter.writeToFile(FileWriter.java:207)
> at ucar.nc2.dataset.NetcdfDataset.main(NetcdfDataset.java:1486)
> 
> The NcML file I'm trying to convert looks like this:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";>
> <aggregation dimName="ocean_time" type="joinExisting">
> <netcdf
> location="http://omglnx1.meas.ncsu.edu:8080/thredds/dodsC/gomtox/2005/avg";
> coordValue=" 4613955180 4613999940"/>
> </aggregation>
> </netcdf>
> 
> --
> Dr. Richard P. Signell   (508) 457-2229
> USGS, 384 Woods Hole Rd.
> Woods Hole, MA 02543-1598
> 
> 


Ticket Details
===================
Ticket ID: VRE-280309
Department: Support netCDF Java
Priority: Normal
Status: Open