[gradsusr] export variable to a text file

hersala hersala at gmail.com
Tue Jun 19 10:00:41 EDT 2012


Hi Cristina,

I suggest you to use the following script:

http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file

Saludos cordiales,
Hernán


On 19 June 2012 09:46, Cristina <cri.rossler at gmail.com> wrote:

> Hi Jayakrishnan,
>
> But I want export to ascii many variables like temp  dewpoint pressure
> etc... How can I do that?
>
> thanks in advance
>
> cristina
>
> 2012/6/19 Jayakrishnan P.R <prjayakrishnan at gmail.com>
>
>> You can try with this example after modification for writing into text
>> file.
>>
>>
>> 'reinit'
>> 'open sample.ctl'
>> tt=1
>> while (tt<=13)
>> 'set lat 5'
>> 'set lon 102'
>> 'set t 'tt
>> 'd variable'
>> te=subwrd(result,4)
>> w=write('test.dat',te)
>> tt=tt+1
>> endwhile
>>
>>
>> Best of Luck........
>>
>>
>>
>> --
>> Sincerely
>> ***********************************************
>> Jayakrishnan.P.R
>> CSIR-Senior Research Fellow
>> Department of Atmospheric Sciences
>> Cochin University of Science and Technology (CUSAT), Cochin-682 016
>> Kerala, India.
>> Mob: 09895417565
>>
>> ***********************************************
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
>
> --
> Cristina E. Rössler
> Grupo de Monitoreo Ambiental
> Gerencia de Química
> Comisión Nacional de Energía Atómica
>
> 3iA - Instituto de Investigación e Ingeniería Ambiental
> Universidad Nacional de San Martín
>
>
> _______________________________________________
> 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/20120619/18d6e293/attachment-0003.html 


More information about the gradsusr mailing list