[gradsusr] help: I cannot print image

avi kojokro kojokroavi at gmail.com
Thu Nov 14 06:34:56 EST 2013


Hi

I do not know this command, and it seems to me that you can not use it in This
way.
I am attaching an example of a script that I use, at the beginning of the
script There is this command :

'set display color white'

the Role of this command is to draw a white background.
I hope I helped

Avi.


2013/11/14 Sadhana Singh <sdhnsingh080 at gmail.com>

> Hi,
>
> u can use this command to get the image with white background
>
> 'printim image.gif/jpg x1000 y800 white'
>
>
> On Thu, Nov 14, 2013 at 4:17 PM, 진종훈 <jinjonghun at gmail.com> wrote:
>
>> Hi.
>>
>> You should to use the 'printim' command only without 'enable'.
>> Try this:
>>
>>> printim image.png
>>
>>
>>
>>
>>
>> 2013/11/14 <antonia.dimaio at cnr.it>
>>
>> please, help me!!
>>> I'm trying to print the output image using printim but I obtain just
>>> an black window.
>>> I have grads 2.0.a9 and following the commands that I used
>>>
>>> enable print image.png
>>> printim image.png png
>>>
>>> thanks very much
>>>
>>> ----------------------------------------------------------------
>>> This message was sent using IMP, the Internet Messaging Program.
>>>
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
>
> --
> Sadhana Singh
>
> _______________________________________________
> 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/20131114/6f6f1263/attachment.html 
-------------- next part --------------


'c'
'reinit'
'reset'
'set xsize 650 500'
'set display color white'
'set mpdset hires'
prompt 'Enter date yyyymmdd '
pull date
prompt 'Enter hour hh '
pull hour
f= 'http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd'date'/gfs_hd_'hour'z'
'sdfopen 'f

prompt 'Enter day dd? '
pull day
prompt 'Enter month (Jan,Feb)? '
pull mon
prompt 'Enter hour zz? '
pull hour
'set time 'hour'z'day''mon'2013'
'set grid off'
'set mpdset hires'
'set lat 26 50'
'set lon 0 45'
'set lev 500'
'set gxout shaded'
'set csmooth on'
'set rgb 16 49 0 49'
'set rgb 17 99 0 99'
'set rgb 18 148 0 148'
'set rgb 19 206 0 206'
'set rgb 20 255 0 255'
'set rgb 21 206 0 255'
'set rgb 22 148 0 255'
'set rgb 23 99 0 255'
'set rgb 24 49 0 255'
'set rgb 25 0 48 255'
'set rgb 26 0 101 255'
'set rgb 27 0 150 255'
'set rgb 28 0 203 255'
'set rgb 29 0 231 247'
'set rgb 30 0 231 165'
'set rgb 31 0 231 123'
'set rgb 32 0 231 82'
'set rgb 33 0 243 41'
'set rgb 34 0 251 0'
'set rgb 35 255 255 0'
'set rgb 36 255 227 0'
'set rgb 37 255 203 0'
'set rgb 38 255 174 0'
'set rgb 39 255 150 0'
'set rgb 40 231 125 0'
'set rgb 41 231 101 0'
'set rgb 42 222 73 24'
'set rgb 43 206 48 24'
'set rgb 44 181 24 24'
'set rgb 45 173 0 24'
'set rgb 46 181 0 49'
'set rgb 47 206 0 99'
'set rgb 48 255 255 255'
'set clevs 476 480 484 488 492 496 500 504 508 512 516 520 524 528 532 536 540 548 552 556 560 564 568 572 576 580 584 588 592 596 600 604'
'set ccols 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48'
'd hgtprs/10'
'cb5'
'set gxout contour'
'set cint 4'
'set ccolor 1'
'd hgtprs/10'
'set ccolor 15'
'set cstyle 3'
'set clopts 15 0 0.07'
'set cint 2'
'd tmpprs-273.15'
'set lev 1000'
'set cint 1'
'set ccolor 0'
'set cthick 7'
'd prmslmsl/100'
'set t 1'
'q time'
btime = subwrd(result,3)
bhour = substr(btime,1,3)
bday = substr(btime,4,9)
'draw title  'bday':'bhour' -  'day'-'mon'-2013 'hour'Z H 500&SLP & WIND'
'printim ('day'-'mon'-2013'hour'Z)312.png x1500 y1200'
'end'



More information about the gradsusr mailing list