[gradsusr] Writing a text output from Grads with header information

Muhammad Rahiz muhammad.rahiz at ouce.ox.ac.uk
Tue Mar 1 04:32:45 EST 2011


Hi Felix,

At each lon & lat, you want to extract rainfall at every time step i.e. 3 
hours? Is that what you want to do? If yes, then
1. how many time steps are you dealing with?
2. what is the format of your file i.e. ctl or netcdf? If ctl, then I need 
two samples of the filename.
3. are you using GrADS in windows or linux?

Off the top of my head, what you need is a double loop. If you could give 
me the details above, then I could modify a similar script that I have.

--
Muhammad Rahiz
Researcher & DPhil Candidate (Climate Systems & Policy)
School of Geography & the Environment
University of Oxford

On Tue, 1 Mar 2011, Felix Mutua wrote:

> Thanks Muhammad,
> I've looked at it before...But my challenge is that I have to do this for
> many files  (TRMM 3 hrly precipitation data) for one year..Is there a way I
> can automate or just get the formatted output in Grads?
> 
> Thanks
> 
> Regards
> 
> On Tue, Mar 1, 2011 at 5:28 PM, Muhammad Rahiz
> <muhammad.rahiz at ouce.ox.ac.uk> wrote:
>       You need the fprintf.gs script, available athttp://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_var
>       iable_data_to_a_text_file.
> 
>
>       Muhammad Rahiz
>       Researcher & DPhil Candidate (Climate Systems & Policy)
>       School of Geography & the Environment
>       University of Oxford
> 
> 
> On Tue, 1 Mar 2011, Felix Mutua wrote:
>
>       Hi All, Could someone kindly assist..I'm trying to export
>       a variable into an
>       text output in this format ( with header)
>
>       Lat                            Lon               Pre
>       ...........................................................
>       1.5                           34.5             4.56
>       2.0                           34.0             3.46
>       ..                              ....               ......
>       ..                              ....               ......
>
>       For a specified period...
>
>       Any help greatly appreciated
> 
>
>       Regards
>
>       Felix 
> 
> 
> 
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
> 
> 
> 
>


More information about the gradsusr mailing list