[gradsusr] Combining two shaded variables.
Stephen McMillan
smcmillan at planalytics.com
Fri Aug 7 08:19:29 EDT 2015
Hi,
I don't quite follow what you're trying to do, since your last two sample
lines appear precisely the same. Bottom line, for it to work:
- Display first variable, save it
- Clear, then display second variable, then save it with previous saved map
as the background and a specified transparent color
-To add a third variable, clear, then display the third variable, then save
it with the second saved map as background and specified transparent color
-And so on
If above is not addressing your problem then, to properly diagnose it, it
would help for you to send the appropriate lines of your code that you are
using. Also, which version of GrADS are you using?
Stephen Mc
On Fri, Aug 7, 2015 at 5:33 AM, Chorley Weather <
weatherstu at chorleyweather.com> wrote:
> On 05-08-2015 19:31, Stephen McMillan wrote:
>
>> Jose, Stuart,
>>
>> Jeff's recommendation for 2.1+ and the alpha channel is probably the
>> best way to go since you can control the transparency/opaqueness, but
>> here's a sample script if you don't have or don't want to upgrade.
>> Cloud clover with precip overlay sample attached, along with script
>> that created it.
>>
>> Good luck!
>> Stephen Mc
>>
>> On Wed, Aug 5, 2015 at 1:36 PM, Jeff Duda <jeffduda319 at gmail.com>
>> wrote:
>>
>> Upgrade to version 2.1+ and use the alpha channel when creating
>>> colors.
>>>
>>> Jeff
>>>
>>> On Wed, Aug 5, 2015 at 12:15 PM, Chorley Weather
>>> <weatherstu at chorleyweather.com> wrote:
>>>
>>> On 05-08-2015 16:09, Stephen McMillan wrote:
>>>>
>>>>> Stuart,
>>>>> 1. Display first variable then save to an image file
>>>>> 2. Clear screen, then display second variable
>>>>> 3. Save to another file using first file as background (-b
>>>>>
>>>> option)
>>>>
>>>>> and specify an appropriate transparent color (-t option)
>>>>>
>>>>> Resulting saved map should be without the rough, pixelated
>>>>>
>>>> edges
>>>>
>>>>>
>>>>> Stephen Mc
>>>>>
>>>>> On Wed, Aug 5, 2015 at 10:04 AM, Chorley Weather
>>>>> <weatherstu at chorleyweather.com> wrote:
>>>>>
>>>>> Hi guys,
>>>>>>
>>>>>> I have been trying to combine two shaded variables in one
>>>>>>
>>>>> image,
>>>>
>>>>> for
>>>>>> example precip & cloud cover. I have tried the maskout
>>>>>>
>>>>> function but
>>>>
>>>>> the
>>>>>> output looks to rough and pixelated. Can anybody suggest a
>>>>>>
>>>>> better
>>>>
>>>>> way to
>>>>>> get a smoother result.
>>>>>>
>>>>>> Many thanks in advance
>>>>>> Stuart.
>>>>>>
>>>>>> --
>>>>>> Chief Forecaster & Owner
>>>>>> _______________________________________________
>>>>>> gradsusr mailing list
>>>>>> gradsusr at gradsusr.org
>>>>>> http://gradsusr.org/mailman/listinfo/gradsusr [1] [1]
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Links:
>>>>> ------
>>>>> [1] http://gradsusr.org/mailman/listinfo/gradsusr [1]
>>>>>
>>>>> _______________________________________________
>>>>> gradsusr mailing list
>>>>> gradsusr at gradsusr.org
>>>>> http://gradsusr.org/mailman/listinfo/gradsusr [1]
>>>>>
>>>> Thanks Stephen, I will have a go at that cheers.
>>>> --
>>>> Chief Forecaster & Owner
>>>> _______________________________________________
>>>> gradsusr mailing list
>>>> gradsusr at gradsusr.org
>>>> http://gradsusr.org/mailman/listinfo/gradsusr [1]
>>>>
>>>
>>> --
>>>
>>> Jeff Duda
>>> Graduate research assistant
>>> University of Oklahoma School of Meteorology
>>> Center for Analysis and Prediction of Storms
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr [1]
>>>
>>
>>
>>
>> Links:
>> ------
>> [1] http://gradsusr.org/mailman/listinfo/gradsusr
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
> Hi Stephen,
>
> The sample script you sent has worked well with my own variables as shown
> in the attached image. The problem I have is the output image keeps
> replacing the previous image, ie. my printim is
>
> 'printim pcpn-cldcvr.png x1100 y675 -b gfs_ukcloudcover1'i'.png -t
> 0';#overlay/save 2nd variable on previous image, black as transparent.
>
> How do i script it were i get printim pcpn-cldcvr1.png x1100 y675
> printim pcpn-cldcvr2.png x1100 y675
> printim pcpn-cldcvr2.png x1100 y675
> And so on.
>
>
> --
> Chief Forecaster & Owner
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150807/db50cbb2/attachment.html
More information about the gradsusr
mailing list