Commit 78b3e635 authored by Ben Boeckel's avatar Ben Boeckel

IONetCDF: fix mode flags when opening NetCDF files

NetCDF 4.7.0 now detects this as an error because the mode is requesting
a 64-bit offset format and a netcdf4 format and errors due to a
conflicting format being requested. Upstream says that mixing these is
an error.

See: https://github.com/Unidata/netcdf-c/pull/1267
parent 1a988542
......@@ -209,7 +209,7 @@ public:
bool open(const char* file)
{
int mode = NC_NOWRITE | NC_64BIT_OFFSET | NC_NETCDF4 | NC_CLASSIC_MODEL;
int mode = NC_NOWRITE | NC_NETCDF4 | NC_CLASSIC_MODEL;
int ncid;
if (nc_err(nc_open(file, mode, &ncid)))
{
......
......@@ -84,7 +84,7 @@ public:
bool open(const char* file, int *ncfile)
{
int mode = NC_NOWRITE | NC_64BIT_OFFSET | NC_NETCDF4 | NC_CLASSIC_MODEL;
int mode = NC_NOWRITE | NC_NETCDF4 | NC_CLASSIC_MODEL;
int ncid;
if (nc_err(nc_open(file, mode, &ncid)))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment