Re: Opening nc.zip files

Hi John,

I downloaded the wrong jar file - once I've downloaded and expanded the
netcdf-all-2.2.20 files and gotten rid of the older libraries, it worked
fine :)

Thank you,

-Pauline.



On Mon, 2007-05-28 at 09:59 -0600, John Caron wrote:
> Hi Pauline:
> 
> It looks like the library was made incorrectly.
> Can you tell me the exact name of the library, and also the first 3 lines of 
> the README file inside the jar, something like:
> 
>  Netcdf-Java library
>  Version 2.2.20.04
>  Build Date = 2007-05-22 21:20:23
> 
> John
> 
> Pauline Mak wrote:
> > Hi all,
> > 
> > I'm having trouble trying to open a nc.zip file.  I'm using the latest
> > version of the NetCDF library (netCDF 2.2.20).  Do I need to download
> > another library for the getRandomAccessFile method? 
> > 
> > When I open it, I get the following error message:
> > 
> > Exception in thread "main" java.lang.NoSuchMethodError:
> > ucar.unidata.io.RandomAccessFile.getRandomAccessFile()Ljava/io/RandomAccessFile;
> >     at
> > ucar.nc2.iosp.dorade.Doradeheader.isValidFile(Doradeheader.java:48)
> >     at ucar.nc2.iosp.dorade.Doradeiosp.isValidFile(Doradeiosp.java:60)
> >     at ucar.nc2.NetcdfFile.open(NetcdfFile.java:426)
> >     at ucar.nc2.NetcdfFile.open(NetcdfFile.java:261)
> >     at ucar.nc2.dataset.NetcdfDataset.openFile(NetcdfDataset.java:341)
> >     at
> > ucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:175)
> >     at
> > ucar.nc2.dataset.NetcdfDatasetCache.acquire(NetcdfDatasetCache.java:203)
> >     at
> > ucar.nc2.dataset.NetcdfDatasetCache.acquire(NetcdfDatasetCache.java:183)
> >     at
> > ucar.nc2.dataset.NetcdfDatasetCache.acquire(NetcdfDatasetCache.java:171)
> >     at ucar.nc2.dt.grid.GridDataset.open(GridDataset.java:71)
> >     at au.org.tpac.test.TestCDM_Main.doFile(Unknown Source)
> >     .....
> > 
> > Interestingly, it works fine on TDS - when I browse for the file in TDS,
> > it's able to show all the attributes of the files.  In fact, the file
> > doesn't even show up a zip file.  Maybe there's another magical method
> > for opening the file?  I'm opening files using the method:
> > 
> > GridDataset.open ("file:///" + dirName);
> > 
> > Thanks for any help in advance :)
> > 
> > Cheers,
> > 
> > -Pauline.
> > 
> > 
> > 
> > ==============================================================================
> > To unsubscribe netcdf-java, visit:
> > http://www.unidata.ucar.edu/mailing-list-delete-form.html
> > ==============================================================================
> 
> ==============================================================================
> To unsubscribe netcdf-java, visit:
> http://www.unidata.ucar.edu/mailing-list-delete-form.html
> ==============================================================================
> 

==============================================================================
To unsubscribe netcdf-java, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================


  • 2007 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: