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.
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.