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

Re: NCML aggregation woes



There are important constrainst on what can be used in FMRC. Did you look at:

http://www.unidata.ucar.edu/software/netcdf/ncml/v2.2/FmrcAggregation.html

??

Otherwise, youll have to send me some example files.

BTW, you should use the "esupport" mail address: address@hidden for these
kinds of questions, as you may get faster response when im out of town.


Tom Margolis wrote:
> Hi Jon,
> 
> I'm using the latest ncdf Java API as follows:
> 
>       String fileName1 = "/path_to/any one of a list of grib files";
>       String fileName2 = "/path_to/attached grib2ncdf_ncml.xml";
>      
>       GridDataset gridDataset = GridDataset.open( fileName1 ); // or
> fileName2
>       GeoGrid grid = gridDataset.findGridByName(
> "Turbulence_SIGMET/AIRMET" ); // A known field
>      
>       GeoGrid subset = grid.getCoordinateSystem().subset( null, null,
> null, null );
> 
> When I point directly to fileName1, grid.getCoordinateSystem() yields a
> nice, parseable GeoGrid subset.
> 
> When I point to fileName2 - the attached ncml file -
> grid.getCoordinateSystem() yields:
> 
>         java.lang.ClassCastException: ucar.nc2.dataset.CoordinateAxis2D
> cannot be cast to ucar.nc2.dataset.CoordinateAxis1DTime
>             at ucar.nc2.dt.grid.GridCoordSys.<init>(GridCoordSys.java:438)
>             at ucar.nc2.dt.grid.GeoGrid.subset(GeoGrid.java:751)
> 
> Obviously I don't understand how aggregations are supposed to work - can
> you help?
> 
> Thanks,
> Tom
>