Display error

Jennifer Faber j.faber at WEERONLINE.NL
Tue Aug 11 08:40:44 EDT 2009


Hi Muhammad,

What I and Karsaz tried to explain is that in your script you use "printim
jf.eps". Eps isnt a graphic file type like .gif, .png, etc etc
So it should work with printim jf.gif or jf.png, why dont you try that in
your script?

Making averages should not affect saving the file as a picture!

I hope someone else has a solution for your cbar problem.

Jennifer Faber


----- Original Message -----
From: "Muhammad Rahiz" <muhammad.rahiz at OUCE.OX.AC.UK>
To: <GRADSUSR at LIST.CINECA.IT>
Sent: Tuesday, August 11, 2009 2:26 PM
Subject: Re: Display error


> Hi Jeniffer & karsaz,
>
> I don't think the problem is with specifying the the background as
> white/black because I have used both print and printim commands in my
> previous scripts, with success.
>
> LIke I said, the problem starts when i perform averaging on the
> climatology dataset.
>
> Muhammad Rahiz
>
>
>
> On 08/11/2009 12:54 PM, Jennifer Faber wrote:
>> Hi Muhammad,
>>
>> When saving the file as a picture you have to specify what kind of
>> graphic
>> output it should be (png, gif etc etc)
>> so:
>> " printim JF.gif gif white" or " printim JF.png png white"
>> If you write 'white' into the command then the picture is saved with a
>> white
>> background, if left out it will save as black (default)
>> You wrote JF.eps, that is a postscript type. I think that you can use
>> when
>> you want to open the data in another data proces program like excel.
>>
>> For you second problem I dont have a solution. You should be able to draw
>> cbar or write a title.
>>
>> Good luck!
>>
>> Jennifer Faber
>>
>>
>> ----- Original Message -----
>> From: "Muhammad Rahiz" <muhammad.rahiz at OUCE.OX.AC.UK>
>> To: <GRADSUSR at LIST.CINECA.IT>
>> Sent: Tuesday, August 11, 2009 11:57 AM
>> Subject: Display error
>>
>>
>>> Dear users,
>>>
>>> I'm having trouble displaying seasonal average of a variable
>>> (climatology). Two specific issues;
>>> 1. The output file does not save right (see saved file 'JF.eps' and
>>> compare with print screen of original display image, 'screenshot.png').
>>> 2. I can't annotate (cbar, title) the image.
>>>
>>> I ran the script using both Grads 2.0.a6 and 1.9.b4. The problem
>>> persists.
>>>
>>> Any suggestions where I went wrong?
>>>
>>> Muhammad
>>>
>>> ---------------------------
>>>
>>>
>>> 'open file.ctl'
>>>
>>> 'set gxout grfill'
>>> 'set mpdset hires'
>>>
>>> 'set lon 79.69 88.47'
>>> 'set lat 26.13 30.85'
>>>
>>> 'set t 1 12'
>>> 'rf = ave(tpr,t+0,t=356,12)'
>>> 'modify 'rf' seasonal'
>>>
>>> 'rfx = ave(rf,t=1,t=2)'
>>> 'd rfx'
>>>
>>> 'cbar'
>>> 'draw title Jan-Feb'
>>>
>>> 'printim JF.eps'
>>>
>>> Muhammad Rahiz
>>>
>



More information about the gradsusr mailing list