[gradsusr] plotting temperature with a shape file

Kishore Ragi kishoreragi at gmail.com
Thu Jul 24 01:44:30 EDT 2014


correction ... here


'set mpdraw off'
'd temp'
'draw shp /your/shapefile/path/'
'draw title Temp2(K)\5Day Average'


On Thu, Jul 24, 2014 at 11:10 AM, Kishore Ragi <kishoreragi at gmail.com>
wrote:

> 'd temp'
> 'set mpdraw off'
> 'draw shp /your/shapefile/path/'
> 'draw title Temp2(K)\5Day Average'
> .
> .
> ..
>
>
> Cheers,
>
> Kishore
>
>
> On Thu, Jul 24, 2014 at 11:03 AM, Lyndon Mark Olaguera <
> olagueralyndonmark429 at gmail.com> wrote:
>
>> Hello fellow Grads Users,
>>
>>
>> *I'd like to plot the temperature of a ctl file and add a shapefile. Any
>> idea how can I do this?*
>> *Here's my script.*
>>
>> *Where in the code can I call the shp file so that it will be displayed
>> in the output image?*
>>
>>
>> 'open ../../../ctl/cntrl2_d02.ctl'
>> 'set display color white'
>> 'c'
>> 'set mpdset hires'
>>
>> 'set grads off'
>> 'set lat 14 15'
>> 'set lon 120.5 121.5'
>>
>> *white to dark red
>> 'set rgb 16 255 255 255'
>> 'set rgb 17 255 245 204'
>> 'set rgb 18 255 235 153'
>> 'set rgb 19 255 230 112'
>> 'set rgb 20 255 204  51'
>> 'set rgb 21 255 175  51'
>> 'set rgb 22 255 153  51'
>> 'set rgb 23 255 111  51'
>> 'set rgb 24 255  85   0'
>> 'set rgb 25 230  40  30'
>> 'set rgb 26 200  30  20'
>>
>> Time_val=121
>> 'set t 'Time_val
>> 'set gxout shaded'
>>
>> 'set clevs 294 295 296 297 298 299 300 301 302 303'
>> 'set ccols 16 17 18 19 20 21 22 23 24 25 26'
>> 'define temp=ave(t2,t=1,t=121)'
>> 'd temp'
>> 'draw title Temp2(K)\5Day Average'
>> 'cbarn'
>> 'printim 'Temp_ave_urb'.gif'
>> 'c'
>>
>> 'quit'
>>
>> *Lyndon Mark P. Olaguera*
>> Assistant Instructor
>> Ateneo de Manila University
>> 426 6001
>> loc 5695
>>
>> _______________________________________________
>> 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/20140724/1b4ef5b4/attachment.html 


More information about the gradsusr mailing list