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

[GEMPAK #HFZ-843569]: Remove black border on NOWRAD images in GEMPAK



Greg,

The black border is part of the X pixmap and not the image area itself, so 
changing the color 
table for the image will have no effect. You could produce the image using a 
black background, 
and then use an image manipulation program like Imagemagick or gifsicle to 
change the color black 
to white.

Steve Chiswell
Unidata User Support


> Steve,
> Take a look at the image I'm attaching here. I'm trying to get rid
> of the black border around the image - meaning I'd like it to be white
> or non-existent. I've perused the e-mail archives and tried to set the
> background color to white without much luck using a different color
> table or gpcolor (commented out in the attached script). Any idea of how
> I can do this?
> 
> Thanks,
> Greg
> 
> --
> 
> ~~N~A~T~I~O~N~A~L~~C~E~N~T~E~R~~F~O~R~~A~T~M~O~S~.~~R~E~S~E~A~R~C~H
> Greg Stossmeister                      e-mail: address@hidden
> NCAR/EOL                               phone: (303)497-8692
> P.O. Box 3000                          web: http://www.eol.ucar.edu
> Boulder, CO 80307-3000
> ~~~~~~~~E~A~R~T~H~~~O~B~S~E~R~V~I~N~G~~~L~A~B~O~R~A~T~O~R~Y~~~~~~~~
> 
> 
> 
> #! /bin/csh
> source /home/gempak/NAWIPS/Gemenviron
> setenv DISPLAY localhost:1
> setenv GEMCOLTBL coltbl.xwp_white
> #gpcolor <<END1
> #COLORS=101=white
> #DEVICE=gf|ops.NOWRAD.200606011700.CONUS_east.gif|800;650|||NP
> #run
> 
> 
> #EXIT
> #END1
> gpmap <<END_OF_CMDS
> \$RESPOND=yes
> \$MAPFIL=hipowo.gsf
> MAP=30//1
> BORDER=101//
> GAREA=24.;-100.;51.;-65.
> PROJ=rad
> RADFIL=/ingest/ldm/data/nids/now/20060601/20060601_1700.MASTER
> TITLE=1/-2
> TEXT=1/32//hw
> LUTFIL=osf_ref16.tbl.2
> CLEAR=yes
> DEVICE=gf|ops.NOWRAD.200606011700.CONUS_east.gif|800;650|||NP
> run
> 
> 
> EXIT
> END_OF_CMDS
> gpend
> rm -f *.nts
> 
> 
> 


Ticket Details
===================
Ticket ID: HFZ-843569
Department: Support GEMPAK
Priority: Normal
Status: Closed