[gradsusr] export variable to a text file

Cristina cri.rossler at gmail.com
Tue Jun 26 20:59:48 EDT 2012


Tante grazie Davide. Finalmente ha funzionato lo script. Ci sono riuscita!!
Ho usato proprio il tuo consiglio.

saluti

cristina

2012/6/18 Davide Sacchetti <davide.sacchetti at arpal.gov.it>

> the only solution I know is:
>
> having x,y,z,t fixed:
>
> 'd temp' -> get temp_value from result
> 'd dewpoint' -> get dewpoint_value from result
> ...
> string=temp_value'   'dewpoint_value' ...
> rc=write(asciifile,string,append)
>
> hoping it helps
> bye bye
> Davide
>
>
>
> On Mon, 2012-06-18 at 10:24 -0300, Cristina wrote:
> > Hi All,
> >
> > I am using this script to extract data in ascii:
> >
> > ...
> > i=1
> > while (i<744)
> > 'set t 'i''
> > 'set gxout print'
> > 'set prnopts %10.2f 17 1'
> > 'd 'var''
> >
> >
> > ascii = result
> > asciifile = var.txt
> > numbers = sublin(result,2)
> > rc=write(asciifile,numbers,append)
> > i=i+1
> > endwhile
> > ...
> >
> > I am interested to export many variables like u10,v10,t2,rh2,swd,rainc
> etc at a given point in this format:
> >
> > temp          dewpoint         pressure   ...    var4
> > ...........................................................
> > ..                              ....               ......
> > ..                              ....               ......
> >
> > For a specified period and specific location (lat lon)
> >
> > Any help greatly appreciated
> >
> >
> > Regards
> >
> > Cristina
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
>
> --
> --> Attenzione cambio indirizzo: davide.sacchetti at arpal.gov.it
> --
> Davide Sacchetti
> Centro Funzionale Meteo Idrologico di Protezione Civile della Regione
> Liguria
> ARPAL Unità Tecnica Complessa di livello Regionale
> V.le Brigare Partigiane 2 16121 Genova (I)
> tel: +39 010 6437535                    fax: +39 010 6437520
> mail: davide.sacchetti at arpal.gov.it     web: www.meteoliguria.it
>
>
> _______________________________________________
> 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/20120626/faacd0b1/attachment-0003.html 


More information about the gradsusr mailing list