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.
Im not able to reproduce this problem, my test is working ok. are there any errors or exceptions? can you send me an example program that reproduces the error? > Thanks; I am using absolute paths. All listed files exist, and this > ncml works well when I read it from disk: > > <?xml version="1.0" encoding="UTF-8"?><netcdf > xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"> > <aggregation dimName="time" type="joinExisting"> > <netcdf > location="/d1/netcdf/ncdf4/mm5_forecast/localhost.rap.ucar.edu_raid_mrrd_atc_mdv_mm5_fc_domain3.2009-03-14_14-00-00.nc"/> > <netcdf > location="/d1/netcdf/ncdf4/mm5_forecast/localhost.rap.ucar.edu_raid_mrrd_atc_mdv_mm5_fc_domain3.2009-03-14_15-00-00.nc"/> > <netcdf > location="/d1/netcdf/ncdf4/mm5_forecast/localhost.rap.ucar.edu_raid_mrrd_atc_mdv_mm5_fc_domain3.2009-03-14_16-00-00.nc"/> > <netcdf > location="/d1/netcdf/ncdf4/mm5_forecast/localhost.rap.ucar.edu_raid_mrrd_atc_mdv_mm5_fc_domain3.2009-03-14_17-00-00.nc"/> > <netcdf > location="/d1/netcdf/ncdf4/mm5_forecast/localhost.rap.ucar.edu_raid_mrrd_atc_mdv_mm5_fc_domain3.2009-03-14_18-00-00.nc"/> > <netcdf > location="/d1/netcdf/ncdf4/mm5_forecast/localhost.rap.ucar.edu_raid_mrrd_atc_mdv_mm5_fc_domain3.2009-03-14_19-00-00.nc"/> > <netcdf > location="/d1/netcdf/ncdf4/mm5_forecast/localhost.rap.ucar.edu_raid_mrrd_atc_mdv_mm5_fc_domain3.2009-03-14_20-00-00.nc"/> > <netcdf > location="/d1/netcdf/ncdf4/mm5_forecast/localhost.rap.ucar.edu_raid_mrrd_atc_mdv_mm5_fc_domain3.2009-03-14_21-00-00.nc"/> > <netcdf > location="/d1/netcdf/ncdf4/mm5_forecast/localhost.rap.ucar.edu_raid_mrrd_atc_mdv_mm5_fc_domain3.2009-03-14_22-00-00.nc"/> > <netcdf > location="/d1/netcdf/ncdf4/mm5_forecast/localhost.rap.ucar.edu_raid_mrrd_atc_mdv_mm5_fc_domain3.2009-03-14_23-00-00.nc"/> > <netcdf > location="/d1/netcdf/ncdf4/mm5_forecast/localhost.rap.ucar.edu_raid_mrrd_atc_mdv_mm5_fc_domain3.2009-03-15_00-00-00.nc"/> > </aggregation> > </netcdf> > > Thanks, > Tom > > The only possible thing that it could be is if you are using reletive path > > names in the ncml, since the readNcML(InputStream) method has no current > > directory. use an absolute directory. If that isnt the case, send me the > > ncml. > > > > > >> Hello, > >> > >> If I write the ncmlString to disk, as an XML file, and then perform the > >> following, the GridDataset is full (e.g. has grids): > >> > >> GridDataset fullDataset = GridDataset.open( "/path/to/ncmlXmlString.xml" ); > >> > >> However, if I take the same ncmlString and perform the following, the > >> resulting GridDataset has no grids: > >> > >> NetcdfDataset aggregatedDataset = NcMLReader.readNcML( new > >> ByteArrayInputStream(ncmlXmlString.getBytes()), null ); > >> GridDataset emptyDataset = new GridDataset( aggregatedDataset ); > >> > >> I would rather not write ncml to disk, and then read, whenever I want an > >> agrregated GridDataset. Can you help? > >> > >> Thanks very much, > >> Tom Margolis > >> > >> > >> > >> > >> > > > > > > Ticket Details > > =================== > > Ticket ID: OCZ-538837 > > Department: Support netCDF Java > > Priority: Normal > > Status: Closed > > > > Ticket Details =================== Ticket ID: OCZ-538837 Department: Support netCDF Java Priority: Normal Status: Open