[gradsusr] How to convert (kelvin to celsius)& save a file in grads???

Andrew Friedman andfried at berkeley.edu
Sun Oct 6 03:56:52 EDT 2013


Hi Uzair,

You need to explicitly define the new variable, for example 

tcelsius=(t-273.15)

and then save the defined variable tcelsius using fprintf.

Andrew

On Oct 5, 2013, at 11:49 PM, uzair manan <uzair_july at hotmail.com> wrote:

> 
> HI ALL:
> 
> I CAN CONVERT AND DISPLAY TEMPERATURE FROM KELVIN TO CELSIUS BY ISSUING THE FOLLOWING COMMAND:-
> 
> 
> ga-> d (t-273.15)
> 
> 
> IT CONVERTS & DISPLAYS ALL THE TEMPERATURES FROM KELVIN TO CELSIUS BUT WHEN I TRY TO SAVE IT TO OUTPUT.CSV FILE USING FPRINTF SCRIPT SO THE OUTPUT IS SILL IN KELVIN...
> SO HOW TO SAVE THAT FILE IN CELSIUS????
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr




More information about the gradsusr mailing list