Can't stride gridded data in 1.4/1.5

Errors and unexpected results
Post Reply
User avatar
wstraka
Posts: 66
Joined: Thu Jun 18, 2009 5:05 pm

Can't stride gridded data in 1.4/1.5

Post by wstraka »

I've tried to stride the gridded dataset, and it gives the following details

java.lang.ArrayIndexOutOfBoundsException: 2
at ucar.nc2.dt.grid.GeoGrid.makeSubset(GeoGrid.java:744)
at ucar.unidata.data.grid.GeoGridDataSource.makeGeoGridAdapter(GeoGridDataSource.java:1636)
at ucar.unidata.data.grid.GeoGridDataSource.makeFieldImpl(GeoGridDataSource.java:1898)
at ucar.unidata.data.grid.GeoGridDataSource.getDataInner(GeoGridDataSource.java:1398)
at ucar.unidata.data.DataSourceImpl.getData(DataSourceImpl.java:2379)
at ucar.unidata.data.DirectDataChoice.getData(DirectDataChoice.java:332)
at ucar.unidata.data.DataChoice.getData(DataChoice.java:637)
at ucar.unidata.data.DataInstance.getData(DataInstance.java:243)
at ucar.unidata.data.DataInstance.getData(DataInstance.java:207)
at ucar.unidata.data.grid.GridDataInstance.init(GridDataInstance.java:206)
at ucar.unidata.data.grid.GridDataInstance.<init>(GridDataInstance.java:163)
at ucar.unidata.data.grid.GridDataInstance.<init>(GridDataInstance.java:144)
at ucar.unidata.idv.control.GridDisplayControl.doMakeDataInstance(GridDisplayControl.java:284)
at ucar.unidata.idv.control.DisplayControlImpl.initializeDataInstance(DisplayControlImpl.java:3224)
at ucar.unidata.idv.control.DisplayControlImpl.setData(DisplayControlImpl.java:3206)
at ucar.unidata.idv.control.PlanViewControl.setData(PlanViewControl.java:670)
at ucar.unidata.idv.control.ContourPlanViewControl.setData(ContourPlanViewControl.java:194)
at ucar.unidata.idv.control.PlanViewControl.init(PlanViewControl.java:500)
at ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1421)
at ucar.unidata.idv.control.DisplayControlImpl.init(DisplayControlImpl.java:1106)
at ucar.unidata.idv.ControlDescriptor.initControl(ControlDescriptor.java:986)
at ucar.unidata.idv.ControlDescriptor$1.run(ControlDescriptor.java:911)
at ucar.unidata.util.Misc$3.run(Misc.java:1251)

Given that the data is (t,x,y), which is organized in a CF compliant method, how does one stride the data?? I don't want to read in a 22000x220000 array into V

Sent an example (smaller) file that has the same issue to the mug email.
User avatar
bobc
Posts: 990
Joined: Mon Nov 15, 2010 5:57 pm

Re: Can't stride gridded data in 1.4/1.5

Post by bobc »

Hello -

Just as a followup for this forum post, I picked up William's file and I observed his same issues:
    - You can display the data with all defaults in the Region and Advanced tabs in the Field Selector
    - If you attempt to set a stride, you get the error in William's post below
    - If you attempt to subset a region, you get the same error

We have a programmer looking into this, and there are a few issues with this particular file:
    - CF standards were somewhat recently upgraded to support the projection used in this file
    - To get this working, changes will have to be made to IDV
    - To get this working, we will also need to add support for the geostationary projection to the netCDF library

Setting a stride value or subsetting a region for gridded data does not appear to be a general problem in McIDAS-V, as I have successfully done this with with gridded data across a remote catalog as well as several local netCDF files that I have.

Thanks -
Bob Carp
McIDAS Help Desk
Post Reply