[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDFJava #KIP-300925]: Error with netCDF-Java Library - Method NetcdfFile.open
- Subject: [netCDFJava #KIP-300925]: Error with netCDF-Java Library - Method NetcdfFile.open
- Date: Tue, 02 Sep 2014 12:35:51 -0600
Hi Manuel:
1. Im not seeing a problem in version 4.5.3. What version are you using?
2. You have some problems in your attributes in the file you sent, the
following shows which:
<?xml version="1.0" encoding="UTF-8"?>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"
location="C:/Users/John/Downloads/dBZ_20140626_comprimido_nc4.nc">
<attribute name="Conventions" value="CF-1.5" />
<variable name="crs">
<attribute name="grid_mapping_name" value="transverse_mercator" />
<attribute name="longitude_of_central_meridian" type="float" value="-9.0" />
</variable>
</netcdf>
3. When you send a stacktrace, I need to see all of it, not just the last line.
Regards,
John
> Hi John
> The stack trace is:
> trying to open
> C:/tempDirSOSRadar/data/generados/dBZ_20140701_comprimido_nc4.nc ....
> java.io.IOException: Negative seek offset
>
> and with regard to the second point, I attach the file.
>
> The code :::::::
>
> *NetcdfFile nc1 = null;*
> * try {*
> * nc1 = NetcdfDataset.open(path + s);*
> * } catch (IOException ex) {*
> * System.out.println("trying to open " + (path +
> s) + " .... \n" + ex); *
> * throw se;*
> * } finally {*
> * if (null != nc1) {*
> * try {*
> * nc1.close();*
> * } catch (IOException ioe) {*
> * System.out.println("trying to close "
> + (path + s) + " .... \n" + ioe);*
> * }*
> * }*
> * }*
>
> Thank you very much for your help.
> Regards
> Manuel
>
>
> address@hidden>:
>
> > Hi Manuel:
> >
> > There should be no problem opening a netcdf-4 file.
> >
> > 1) can you send the entire stack trace ?
> >
> > 2) can you send the file or upload it somewhere where we can get it?
> >
> > thanks,
> >
> > John
> >
> >
> > > yes, you are right. Could be this the problem?
> > >
> > >
> > > address@hidden>:
> > >
> > > > When you say the .nc file if compressed,
> > > > am I correct in thinking that it is a
> > > > netcdf-4 format as opposed to a netcdf-3 format?
> > > >
> > > > =Dennis Heimbigner
> > > > Unidata
> > > >
> > > >
> > > > Ticket Details
> > > > ===================
> > > > Ticket ID: KIP-300925
> > > > Department: Support netCDF Java
> > > > Priority: Critical
> > > > Status: Closed
> > > >
> > > >
> > >
> > >
> > > --
> > >
> > >
> > >
> > > *==============================================Manuel Antonio Regueiro
> > > SeoaneComputer Graphics and Data Engineering Group - COGRADE Centro
> > > Singular de Investigación en Tecnoloxías da Información - CITIUS*
> > > *Universidade de Santiago de Compostela - USC *
> > > *Tlf. 881816476 -- Correo-e:* address@hidden
> > >
> > >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: KIP-300925
> > Department: Support netCDF Java
> > Priority: Critical
> > Status: Open
> >
> >
>
>
> --
>
>
>
> *==============================================Manuel Antonio Regueiro
> SeoaneComputer Graphics and Data Engineering Group - COGRADE Centro
> Singular de Investigación en Tecnoloxías da Información - CITIUS*
> *Universidade de Santiago de Compostela - USC *
> *Tlf. 881816476 -- Correo-e:* address@hidden
>
>
Ticket Details
===================
Ticket ID: KIP-300925
Department: Support netCDF Java
Priority: Critical
Status: Closed