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

20010822: NC_MAX_DIMS exceeded

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.


  • Subject: 20010822: NC_MAX_DIMS exceeded
  • Date: Thu, 23 Aug 2001 12:28:39 -0600

>From: Reggie Chang <address@hidden>
>Organization: ZONA Technology, Inc.
>Keywords: 200108230004.f7N040102190 netCDF NC_MAX_DIMS

Reggie,

>I got the message "NC_MAX_DIMS exceeded".
>Does it imply I define too many dimensions?

Yes.

>Is there a way to relax that limit?

You could change the value in the header file (libsrc/netcdf.h) and rebuild
your library.  Be aware that if you do this, you will have to continue
doing this with each new netCDF release you install.  Also, your file
will not be usable by netCDF users who do not redefine NC_MAX_DIMS.

>I need to save many arrays with different sizes.  Is
>this the cause of that error message?

The commentary in netcdf.h regarding NC_MAX_DIMS is:

#define NC_MAX_DIMS     100      /* max dimensions per file */

>Your information is very much appreciated.
>Reggie Chang
>
>------------------------------
>ZONA Technology, Inc.
>7430 E. Stetson Dr, Ste 205
>Scottsdale, AZ 85251-3540
>(480) 945-9988.tel
>(480) 945-6588.fax
>Email: address@hidden

Tom Yoksas