Display error
climate karsaz
climate.karsaz at GMAIL.COM
Tue Aug 11 08:43:11 EDT 2009
hi muhammad assalamoalayk
a think it script help your.
On Tue, Aug 11, 2009 at 4:56 PM, Muhammad Rahiz <
muhammad.rahiz at ouce.ox.ac.uk> wrote:
> 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
>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090811/72e55946/attachment.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090811/72e55946/attachment-0001.html
More information about the gradsusr
mailing list