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.
Luis, The maximum number of grids in a file in our distribution of GEMPAK is 30,000 (eg MMHDRS defined in $GEMPAK/include). The number or grids that space will be allocated for is set when the file is created (eg GDCFIL with MAXGRD, or the -m flag to dcgrib for example). If you need to reserve more space in a file that is already full, use gdcfil (with CPYFIL) to create a new file with the appropriate MAXGRD and then use GDMOD to move the grids from the old file to the new file. Steve Chiswell Unidata User Support >From: LUIS M FARFAN <address@hidden> >Organization: UCAR/Unidata >Keywords: 200110240025.f9O0Pl102183 >I am using the program "gdcfil" to create a file and, then, store gridded data > . >However, I have problems to control the maximum number of grids. >For example, this is the output from "gdinfo": > > GRID FILE: 061600_mm5_d4_slmo00.gem > > GRID NAVIGATION: > PROJECTION: LCC > ANGLES: 30.0 -112.2 60.0 > GRID SIZE: 82 67 > LL CORNER: 32.89 -112.91 > UR CORNER: 34.09 -111.14 > GRID ANALYSIS BLOCK: > UNKNOWN ANALYSIS TYPE > Number of grids in file: 12000 > Maximum number of grids in file: 12000 > >and I am not able to write more data beyond this limit. I get the >error line "GEMPAK, grid write error (code) -11, -11=grid file is full". > >In order to increase this limit, could you please give me instructions on the >file(s) I need to modify? I assume that I will need to recompile the code to >make this change effective. > >Many thanks, >-- >Luis M Farfan >