[gradsusr] export variable to a text file

Davide Sacchetti davide.sacchetti at arpal.gov.it
Mon Jun 18 10:50:04 EDT 2012


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





More information about the gradsusr mailing list