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

[netCDFJava #OCZ-538837]: Problems with: new GridDataset( aggregatedNetcdfDataset )

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.


  • Subject: [netCDFJava #OCZ-538837]: Problems with: new GridDataset( aggregatedNetcdfDataset )
  • Date: Tue, 21 Apr 2009 15:26:52 -0600

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