When opening a netcdf file using nc_open, user can specify the mode like NC_NOWRITE. Is there any way to find the mode after the file is opened?
netcdfgroup