[gradsusr] about fprintf command in Ubuntu

Andrew Friedman andfried at gmail.com
Sun Jul 14 12:54:24 EDT 2019


Hi Yared,

Just to check: do you get the same error using a simpler invocation of fprintf? Could you try without the ‘-273.15’ and without the Windows file path?
I’m also wondering if the comma after %g is correct.

Andrew

> On 14 Jul 2019, at 17:34, Yared Godine <yared.godine at amu.edu.et> wrote:
> 
> Dear all
> I tried to write the grads output values into ascii file by using
> the fprintf.gs script in ubuntu. 
> I tried the following command
> 
> Sdfopen file.nc
> Set lat 8
> Set lon 37
> Set t 1 1826 (since the file has 1826 time steps)
> fprintf tasmax-273.15  C:\Users\user\Desktop\yared\tmax1986_1990.csv  %g, 12 2
> 
> when I run this script, I got the following result:-
>                                    Unknown command: fprintf
> 
> What may be the error with this script or command?
> 
> waiting for your kind reply
> 
> thanking you
> with best regard
> 
> Yared
> 
> 
> -- 
> ********************************** 
> Yared Godine Demeke 
> Msc. in Meteorology 
> Instructor in Faculty of Meteorology and Hydrology 
> Water Technology Institute 
> Arba Minch University 
> P. O. Box 21, Arba Minch, Ethiopia. 
> Mobile :-( +251)-916-854-783 
> :-( +251)-939-171-133 
> Email:- yared.godine at amu.edu.et & yarukidus2002 at gmail.com 
> ***********************************************************
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr



More information about the gradsusr mailing list