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

[netCDF #LBV-482826]: for: netCDF Lagefile issue

> Hi,
> I worked on Linux using netcdf-4.0 library to created a netCDF file in
> C++. The file size was bigger than 6 GB.
> The code was the following,
> ----------------------------------------------------
> if (I == 1)
> {
> dataFile = new NcFile(FullName.c_str(), I == 1 ? NcFile::Replace 
> :NcFile::Write,
> 0,
> NcFile::Offset64Bits);
> }
> else
> {
> dataFile = new NcFile(FullName.c_str(), NcFile::Write);
> }
> .......
> ------------------------------------------------------
> The problem was whenever the netcdf library opens the file with the
> correct options i.e. O_LARGEFILE it works but when it neglects that
> option, it fails. The netcdf library appears to perform a single 'open'
> call with large file support, then a number of other subsequent 'open'
> calls without that option, which fail.
> So my output netCDF file was failed.
> Could you help me with it?
> Thanks,
> Wendy

Howdy Wendy!

You need to upgrade to the latest release of netCDF:

Build it according to these instructions:



Ticket Details
Ticket ID: LBV-482826
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.