[gradsusr] How to draw a map date

Maria Elena Segura segmalena at yahoo.com.ar
Sat Aug 13 00:05:34 EDT 2011



Hola Mario que tal como estas?
Gracias por lo que me decis pero lo mio es operativo y el archivo en ASCII con la fecha lo arma automaticamente un script,que ejecuto en un servidor con linux . Por eso viene mi pregunta, como leer automaticamente el archivo ASCII o binario, porque es operativo. El resto del grafico y los titulos no tengo problema ya lo tengo armado

 
Mario Hello how are you such?
Thank you for what you say but mine is operating and the ASCII file with the date the weapon automatically a script, which runs on a Linux server. So my question is, how to read ASCII or binary file automatically, because it is operating. The rest of the chart and the titles I have no problem I have it reinforced
 
 
Can someone tell me what is wrong because the date did not draw?
 
This is the example.gs  fecha is the ASCII file that contein the fech read automatically

'reset'
'reinit'
'open c:\example.ctl'
'enable print c:\example1.gmf'
'set strsiz .16'
'set annot 2 6'
'set display color white'
'c'
*** date of analisys ***
fech='c:\fecha'
'q fech'
res1='read(fech)'
result=sublin(res1,1)
nombre=subwrd(result,3)
anio=substr(nombre,9,4)
mes=substr(nombre,6,3)
dia=substr(nombre,4,2)
tmg=substr(nombre,1,2)
fec=' 'dia'/'mes'/'anio' 'tmg'UTC'
'set string 1 bc'
'set strsiz 0.15'
'set font 0'
'draw string 5.6 0.18  Diagnostico de  los primeros 50 mts'
'set lat -60 -20'
'set lon -70 -45'
'set lev 25'
'set clskip 3'
'set clopts 2 4 0.23'
'set ylopts 1 4 0.11'
'set xlopts 1 4 0.11'
'set grads off'
'set clevs -440 -400 -360 -320 -280 -240 -200 -157'
'set ccols  6 14 11 5 3 16 12 7 0 '
'set gxout shaded'
'd pn1'
'run cbar.gs'
'set font 0'
'draw string 4.2 7.6 CARTA DIAGNOSTICADA' 
'draw string 4.2 7.3     'fec
'disable print'


De: Mario Caffera <rmcaffera at yahoo.com>
Para: Maria Elena Segura <segmalena at yahoo.com.ar>; GrADS Users Forum <gradsusr at gradsusr.org>
Enviado: jueves, 11 de agosto de 2011 23:30
Asunto: Re: [gradsusr] How to draw a map date

María Elena,

 yo siempre pongo:

draw title la fecha que quiero

y aparece arriba del mapa, luego escribo:

enable print nameArchivo.gmf
print
disable print

  y me queda un archivo imagen para ver en el "gv32" que acompaña la versión de GrADs que tengo.

            saludos
                            mario caffera

--- On Thu, 8/11/11, Maria Elena Segura <segmalena at yahoo.com.ar> wrote:


>From: Maria Elena Segura <segmalena at yahoo.com.ar>
>Subject: [gradsusr] How to draw a map date
>To: "gradsusr at gradsusr.org" <gradsusr at gradsusr.org>
>Date: Thursday, August 11, 2011, 12:39 PM
>
>
>Who can tell me how to put the date in the graphics from an ASCII file where this the date. The drawing of the map is from a binary file. I use Grads for PC and I have a archivo.ctl and script.gs
>-----Inline Attachment Follows-----
>
>
>_______________________________________________gradsusr mailing listgradsusr at gradsusr.orghttp://gradsusr.org/mailman/listinfo/gradsusr 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110812/b623cf66/attachment-0003.html 


More information about the gradsusr mailing list