[gradsusr] Extract values from all grid points in a domain
Lyndon Mark Olaguera
olagueralyndonmark429 at gmail.com
Tue Dec 16 03:01:50 EST 2014
Hi,
It is possible to output it in one column.
Try using the following command.
'fprintf.gs [variable to be extracted][you can add a date string
here].csv%g 0'
In my case, I read a txtfile containing the names of the stations and the
grads script read the txt file line by line.
So the output of the fprintf.gs will have the station name (look at the
example belew: 'stn'). You can also use a datestring if you want to
separate the outputs per day or per month etc.
Example:
'fprintf.gs rainc+rainnc hourlyrain_5days/Thompson/'stn'_WSM6.csv %g 0'
*Lyndon Mark P. Olaguera*
Assistant Instructor
Ateneo de Manila University
426 6001
loc 5695
On Mon, Dec 15, 2014 at 6:04 PM, PHILBERT LUHUNGA <philuhunga at yahoo.com>
wrote:
>
>
>
> Hi thank you very much, if fprintf.gs,prec prec.txt, I get text file,
> when this file opened in excel, it open in several column, say column A,
> B,C, D, E, F, G, H........
> so to make it one column I cut all other column and paste on column A, is
> it fine to do this or do you know any method when I fprintf. Variable I can
> get file when opened in excel open in one column??. Thank you for your help
>
>
> ------------------------------
> On Sun, Dec 14, 2014 4:34 PM PST Lyndon Mark Olaguera wrote:
>
> >Hello,
> >I did not print the time variable. If you know the time step of your data
> >as well as the starting and end times, you can manually put the time
> >variable in the output of the fprintf.gs.
> >
> >
> >*Lyndon Mark P. Olaguera*
> >Assistant Instructor
> >Ateneo de Manila University
> >426 6001
> >loc 5695
> >
> >On Sun, Dec 14, 2014 at 4:32 AM, PHILBERT LUHUNGA <philuhunga at yahoo.com>
> >wrote:
> >>
> >>
> >>
> >> hi Lyndon did you manage to fprintf.gs time variable?? , how did you
> do it
> >>
> >>
> >> ------------------------------
> >> On Fri, Dec 12, 2014 8:20 PM PST Lyndon Mark Olaguera wrote:
> >>
> >> >Hi All,
> >> >
> >> >I'd like to extract data values from all the gridpoints in a domain.
> How
> >> >can I do this in GRADS?
> >> >Before I used the fprintf.gs to extrac values from specific
> gridpoints.
> >> >Any suggestion?
> >> >
> >> >
> >> >
> >> >*Lyndon*
> >>
> >> _______________________________________________
> >> gradsusr mailing list
> >> gradsusr at gradsusr.org
> >> http://gradsusr.org/mailman/listinfo/gradsusr
> >>
>
> _______________________________________________
> 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/20141216/013c7015/attachment.html
More information about the gradsusr
mailing list