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

[GEMPAK #XPY-209197]: GEMPAK GIS image product configuration



I see what your goal is now.  You can use GPCOLOR to reset a color value to a 
Red Green Blue value.  I would suggest setting background color (101) to 
something unique and then using the ImageMagick program 'convert' to change all 
of that one color to transparent.  You can then overlay the image on a custom 
background.   

For c-shell scripts, include the following call to gpcolor:

gpcolor << EOF
COLORS   = 101=255:255:255
DEVICE   = $DEV
run


the example uses an environmental variable definition for DEVICE, but what's 
important is the definition of color 101 to (in this case) white, 255:255:255.  
If you're willing to play around with ImageMagick calls you will find you are 
able to produce transparent backgrounds to overlay on backgrounds.

Best,

Michael




> Hi,
> 
> Thank you for the reply. From SFMAP page and all research, doesn't look
> like GEMPAK can generate transparent background GIF image.
> If there is a way, please let me know.
> 
> Thanks
> 
> Lin
> 
> 
> Unidata GEMPAK Support wrote:
> > hi Lin,
> >
> > take a look at the $MAPFIL section in the GEMPAK tutorial page here:
> >
> > http://www.unidata.ucar.edu/software/gempak/tutorial/3.1_mapping.html
> >
> > If you have any more questions about this let me know.  I'm traveling at 
> > the moment but am checking support tickets occasionally.
> >
> > Michael James
> > Unidata
> >
> >
> >
> >> Hi,
> >>
> >> Is that a way to configure GEMPAK so the product image file don't show
> >> country bound and with transparent background?
> >>
> >> Thanks
> >>
> >> Lin
> >>
> >>
> >>
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: XPY-209197
> > Department: Support GEMPAK
> > Priority: Normal
> > Status: Open
> >
> >
> 
> 
> 


Ticket Details
===================
Ticket ID: XPY-209197
Department: Support GEMPAK
Priority: Normal
Status: Open