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

[netCDF #RZV-171985]: Problems with x64 NetCDF



This rang a bell. I think this is fixed in github
pull request 904 (https://github.com/Unidata/netcdf-c/pull/904).
That was in response to github issue 899
(https://github.com/Unidata/netcdf-c/issues/899).
However, It looks like that error was fixed after 4.6.1 was
released. 

You might try applying this fix manually. It required small
changes to three files.
See https://github.com/Unidata/netcdf-c/pull/904/files
for the changes.

Alternatively, you can check out the current netcdf-c master branch
and build from that.

> Yes, the error description I have is index exceeds dimension bounds -
> 
> case (-40): return "Index exceeds dimension bound. Consider cloning the file 
> into NetCDF 4 format to enable data extending (e.g. with sds copy command)";
> 
> 
> However, it ll works fine under x86 - it is only under x64 that it throws the 
> error.
> 
> 
> Cheers,
> 
> 
> Nick.
> 
> 
> ________________________________
> From: Unidata netCDF Support <address@hidden>
> Sent: 06 June 2018 18:01
> To: Nick Humphries
> Cc: address@hidden; Nick Humphries
> Subject: [netCDF #RZV-171985]: Problems with x64 NetCDF
> 
> The -40 is NC_EINVALCOORDS, which makes me think that
> you are not giving the proper arguments to nc_get_var1_float.
> 
> >
> >
> > Further to the problem, I can confirm thatif I use nc_get_var_float() I can 
> > read the entire variable into an array and it works fine.  It is only the 
> > nc_get_var1_float() that is failing with error code -40 when using the x64 
> > dll. I have done some further testing and if I use the _inq_ functions to 
> > check the variables and dimensions, everything is OK.
> >
> >
> > I'm happy to provide further info if it will help, hoever, I have a 
> > workaround for now (nc_get_var_) that is adequate but does use too much 
> > memory of course.
> >
> >
> > Many thanks,
> >
> >
> > Nick.
> >
> >
> > ________________________________
> > From: Unidata netCDF Support <address@hidden>
> > Sent: 18 May 2018 18:23
> > To: Nick Humphries
> > Cc: address@hidden
> > Subject: [netCDF #RZV-171985]: Problems with x64 NetCDF
> >
> > What version of the netcdf-c library are you using?
> >
> > >
> > > I have created a simple NetCDF4 file that works fine from a Windows
> > > program complied as x86. It does not work correctly if the program is
> > > compiled as AnyCPU (x64). I can open other NetCDF files I have created
> > > quite happly from x86 or x64, including this one, but get error -40
> > > ("Index exceeds dimension bound. Consider cloning the file into NetCDF 4
> > > format to enable data extending (e.g. with sds copy command)" when I use
> > > the NetCDF.nc_get_var1_float() funtion. The file was created as NetCDF4 .
> > >
> > > I use this function to read from other files in x86 or x64 without a
> > > problem, so I'm stuck as to what has gone wrong.
> > >
> > > What information do you need to investigate this?
> > >
> > > Many thanks,
> > >
> > > Nick.
> > >
> > >
> >
> > =Dennis Heimbigner
> > Unidata
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: RZV-171985
> > Department: Support netCDF
> > Priority: Normal
> > Status: Closed
> > ===================
> > NOTE: All email exchanges with Unidata User Support are recorded in the 
> > Unidata inquiry tracking system and then made publicly available through 
> > the web.  If you do not want to have your interactions made available in 
> > this way, you must let us know in each email you send to us.
> >
> >
> >
> >
> 
> =Dennis Heimbigner
> Unidata
> 
> 
> Ticket Details
> ===================
> Ticket ID: RZV-171985
> Department: Support netCDF
> Priority: Emergency
> Status: Open
> ===================
> NOTE: All email exchanges with Unidata User Support are recorded in the 
> Unidata inquiry tracking system and then made publicly available through the 
> web.  If you do not want to have your interactions made available in this 
> way, you must let us know in each email you send to us.
> 
> 
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: RZV-171985
Department: Support netCDF
Priority: Emergency
Status: Open
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.