[Thread Prev][Thread Next][Index]

Re: [ferret_users] How to calculate 0.016Z in ferret




Le 18 nov. 2015 à 14:03, 夏长水 <xiacs@xxxxxxxxxx> a écrit :

Dear Ferreters,

I have a model result data in netcdf format containing the temperature and salinity in Z coordinate. I want calculate sound speed from 0-1000m using the temperature (t) and salinity (S) using following formula:
 c(Z)=1492+4.6t+.....+(1.34-0.01t)*(S-35)+0.016Z
Z is the water depth from 0-1000m.
My question how to calculate 0.016Z in ferret ?

Thank you in advance.

Changshui


LET my_depth = Z[G=my_temperature_variable]

LET C = 1492+4.6t+.....+(1.34-0.01t)*(S-35)+0.016*my_depth

Anyway, if you use t as a variable name, your going ahead problems, as t is the time axis in Ferret.

Olivier

-- 
Dr. Olivier Marti  - mailto:olivier.marti@xxxxxxxxxxxx
Laboratoire des Sciences du Climat et de l'Environnement
Institut Pierre Simon Laplace
Laboratoire CEA-CNRS-UVSQ  -  UMR 8212
Tel : +33 1 69 08 77 27 - Mob : +33 6 45 36 43 74
Fax : +33 1 69 08 30 73














[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement