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.
Curtis, You probably aren't running your X display in 8 bit color mode. Run the program "xdpyinfo". That will show what your default visual id is, and what the depth of that display is. FOr GEMPAK, this must be 8 bits (pseudocolor), truecolor will not work. To configure your X server to run in 8 bit mode, you would configure /etc/dt/config/Xservers (usually copied there from /usr/dt/config/Xservers) so that the /usr/openwin/bin/Xsun program launches with defdepth 8. See the manpage for Xsun for more information on this configuration. Steve Chiswell Unidata User SUpport >From: "Curtis James" <address@hidden> >Organization: UCAR/Unidata >Keywords: 200011031822.eA3IMF402553 > Hi Steve, > > I attended your GEMPAK workshop last week, and I am fairly > confident that I have installed GEMPAK correctly. However, I have a > problem with color allocation. When I try to plot anything, I get the > error: > > [GEMPLT -46] NCLRAL - Can not allocate read/write colors. > > I am running GEMPAK in SUNOS 5.8 on an UltraSpark IIk, but trying to > display the graphics in 8-bit mode on a Windows NT machine using the > Exceed for Win32 Version 6.2.0.0. When I try to run ntl, I get the > following text: > > Resource File: /usr/local/gempak/GEMPAK5.6/resource/Ntop > graphic, satellite, radar -- 33 32 20 > Request total # of colors = 85 > X Error of failed request: Badvalue (integer parameter out of range > for operation) > Major opcode of failed request: 86 (X_AllocColorCells) > Value in failed request: 0x) > Serial number of failed request: 283 > Current serial number in output stream: 283 > Exit 1 > > The GUIs also crash because they can't allocate Graphic colors. > > Any assistance that you can give me will be much appreciated. > > Regards, > Curtis >