linux cdf返回上一级,[原][c][netCDF]返回值合集(错误列表)

  • Post author:
  • Post category:linux


#define NC_NOERR 0 /**< No Error */

#define NC2_ERR (-1) /**< Returned for all errors in the v2 API. */

/** Not a netcdf id.

The specified netCDF ID does not refer to an

open netCDF dataset.*/

#define NC_EBADID (-33)

#define NC_ENFILE (-34) /**< Too many netcdfs open */

#define NC_EEXIST (-35) /**< netcdf file exists && NC_NOCLOBBER */

#define NC_EINVAL (-36) /**< Invalid Argument */

#define NC_EPERM (-37) /**< Write to read only */

/** Operation not allowed in data mode. This is returned for netCDF

classic or 64-bit offset files, or for netCDF-4 files, when they were

been created with ::NC_CLASSIC_MODEL flag in nc_create().*/

#define NC_ENOTINDEFINE (-38)

/** Operation not allowed in define mode.

The specified netCDF is in define mode rather than data mode.

With netCDF-4/HDF5 files, this error will not occur, unless

::NC_CLASSIC_MODEL was used in nc_create().*/

#define NC_EINDEFINE (-39)

/** Index exceeds dimension bound.

The specified corner indices were out of range for the rank of the

specified variable. For example, a negative index or an index that is

larger than the corresponding dimension length will cause an error.*/

#define NC_EINVALCOORDS (-40)

/** NC_MAX_DIMS exceeded. Max number of dimensions exceeded in a

classic or 64-bit offset file, or an netCDF-4 file with

::NC_CLASSIC_MODEL on.*/

#define NC_EMAXDIMS (-41) /* not enforced after 4.5.0 */

#define NC_ENAMEINUSE (-42) /**< String match to name in use */

#define NC_ENOTATT