This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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 >