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

Michael Fiorino Michael.Fiorino at noaa.gov
Sat Nov 6 08:39:00 EDT 2010


Jeff, it's not a bug, but a 'feature' in grads -- it's case insensitive (can't detect
uppercase) although I did put in a way to not downcase in scripts, but not sure it's still
there.  bottom line -- don't use case sensitivity (btw, I got caught on my mac with this
issue -- the default filesystem is case insensitive, just like ms-dos!)  ciao, mike

On 2010-11-05 17:31, Jeff Chabot wrote:
> Hello GrADS Users again,
> 
> I figured out the GrADS error.  The following command will fail because GrADS will look for
> ne.png (and will not find it):
> 
> printim precip_NE_1.png png x570 y435 -b NE.png -t 0
> 
> This works however:
> 
> mv NE.png ne.png
> 
> printim precip_NE_1.png png x570 y435 -b ne.png -t 0
> 
> So, to me this sounds like a bug in 2.0a7, 2.0a9 and possibly other versions as well.
> 
> By the way, to answer your questions, I am using local paths and not URLs.  Also, I am
> creating these images in Fedora 13.
> 
> Here are my results of a working background:
> 
> http://jeffsweatherservice.com/grads/nam/ptype_NE_1.gif
> 
> http://jeffsweatherservice.com/grads/nam/ptype_NE_2.gif
> 
> Now, I still have to figure out a way to change my ptype to use a transparent color instead
> of white or black for no precip.  That of course is a work in progress. 
> 
> Thanks everyone.
> 
> Sincerely,
> 
> 
> Jeff Chabot
> jsc219 at gmail.com <mailto:jsc219 at gmail.com>
> 
> 
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr


More information about the gradsusr mailing list