[gradsusr] decimal point as comma int csv output

AMS EmsiWx Bytča emsiwx at pocasie-bytca.sk
Thu Sep 29 10:38:24 EDT 2016


Dear Grads users,

I have been using (please see example below) to output data to csv:

getseries(TMP2m,T2m,1000)
'fprintf T2m-273.16 'name'_'date'.csv %.1f, 49 0'
getseries(UGRD10m,ugrd,1000)
'fprintf ugrd 'name'_'date'.csv %.1f, 49 0'
getseries(VGRD10m,vgrd,1000)

so I get a line of a single parameter for a period of time

Now I would like to get something like this:

Line 1:              dd.mm.yyyy; model run; HH; zip code (this can be 
done in command line as input parameters); parameter1 (e.g. T2m); 
parameter2 (e.g. T850); parameter3 (etc.)
Line 2:             dd.mm.yyyy; model run; HH (this means next forecast 
hour); zip code (this can be done in command line as input parameters); 
parameter1 (e.g. T2m); parameter2 (e.g. T850); parameter3 (etc.)

So I would like to ask:

1. How to output dd.mm.yyyy (probably using as input parameter, if you 
know any other way please comment)
2. How to output model run (probably using as input parameter, if you 
know any other way please comment)

3. How to output HH - means forecast hour

4. Since in Europe, we preferably use semi-colon in csv to separate the 
values, change comma to semi-colon as a separator

5. Output comma "," instead of decimal point  "." ..... meaning 2.5 
should be 2,5


Thank your very much for your time and help. I highly appreciate it.


Kindest regards,


Marian





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160929/ff932459/attachment.html 


More information about the gradsusr mailing list