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.
>From: address@hidden >Organization: Sandia National Labs >Keywords: 199507122031.AA19612 netCDF ncgen MSDOS Emily, > I am a novice netCDF user. > > I am getting the error "line XXX: out of memory" when trying to > process some CDL files through ncgen under the MSDOS operating system. > > There is no obvious error at the line number mentioned. When I delete > variables prior to this line, the error moves (ie, it is not always at > the same code statement). > > Any clues as to what might be going on here? I have searched through > the netCDF user's guide, but have not found an answer. I am using a > lot of variable attributes, and many of them are strings. Is there a > limit to the number of attributes that a variable can have? The limitation is probably one of memory needed to run ncgen. We have found that in order to build the netCDF package on MSDOS one has to boot the machine with a very "bland" environment. What I mean by this is that you should try to maximize the amount of program space available by not running any TSR (Terminate and Stay Resident) routines. > In an unrelated incident on another file, I got this "out of memory" > error when I tried to use "" for the value of an attribute. The error > went away when I changed the value to "\0". However, I do not use "" > in any of my current files. I will pass this along to the developers. > Thanks, > Emily Glass > address@hidden Tom Yoksas