[gradsusr] Command produces a PNG image with transparent color 0 and a background image NE.png

Andrew Revering andy at f5data.com
Thu Nov 4 22:08:10 EDT 2010


I don't have any direct answers, but some troubleshooting options you could
try.

 

- First.I just want to make sure the files are local and you're not using
web URLs for their full paths in the command.

- I didn't verify, but I'm assuming the two images have the same exact
dimensions?

- Maybe try saving the PNG as a JPG or BMP image..perhaps the format of the
image (bit) is causing issues.

- I'm assuming -t 0 applies to the output being placed on the background,
and not on the background itself. It doesn't make sense that it would be
that way, but perhaps having the -t 0 option before the -b command would
make a difference?

 

With this said, I believe I had trouble doing this myself. I ended up
writing external code to do some things similar. But you may want to look at
OpenGrads' gxyat command. I don't recall if it has a background image
option, but it may be something to check out. I know that the images are
much smoother and nicer  looking, but file sizes will be much larger if
that's a concern.

 

I'd be interested to hear what the solution ends up being as I'm sure I'll
want to do this at some point myself.

 

Andy

 

 

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org]
On Behalf Of Jeff Chabot
Sent: Thursday, November 04, 2010 7:49 PM
To: gradsusr at gradsusr.org
Subject: [gradsusr] Command produces a PNG image with transparent color 0
and a background image NE.png

 

Hello GrADS Users,

I am trying to get a background image behind my precip/ptype products in
GrADS and I am having absolutely no luck.

GrADS versions that I have tried:

Grid Analysis and Display System (GrADS) Version 2.0.a9
Grid Analysis and Display System (GrADS) Version 2.0.a7

Error that I receive: 

PRINTIM error: background image open error

printim example that I am using:

printim precip_NE_1.png png x570 y435 -b NE.png -t 0

I am using the full path for the output image and background image, I just
removed it from the above command.

This is the png image that I would like to use (or it will look something
like this):

http://jeffsweatherservice.com/images/NE.png

The above image would be a background to an image like:

http://jeffsweatherservice.com/grads/nam/precip_NE_2.png

Does anyone know how to make this work?  Or does anyone have another way
that I could get a green/brown basemap with blue water to replace the plan
white background?  I have the basemap stencil working on temperature
products, but that will not work well for precip/ptype products.

Any help/insight here would be greatly appreciated.

Sincerely,


Jeff Chabot
jsc219 at gamil.com  




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20101104/321b4268/attachment.html 


More information about the gradsusr mailing list