From: nand_s <sachin.nand_at_nyahnyahspammersnyahnyah>

Date: Tue May 21 2013 - 16:07:53 MDT

Date: Tue May 21 2013 - 16:07:53 MDT

Hello Recipient,

Can you please assist me in knowing which DENSITY Formula to use in order to calculate density from given Pressure, Temperature and Salinity. I know the formula for MATLAB which is

T = temperature

S = Salinity

a=[6.536332e-9,-1.120083e-6,1.001685e-4,-9.095290e-3,6.793952e-2,999.842594];

b=[5.3875e-9,-8.2467e-7,7.6438e-5,-4.0899e-3,8.24493e-1];

c=[-1.6546e-6,1.0227e-4,-5.72466e-3];

d=4.8314e-4;

rho=polyval(a,T)+(polyval(b,T)+polyval(c,T).*sqrt(S)+d*S).*S;

,but I tried to fit this in my coding and its generating syntax error. Can anyone please let me know the correct formula for density so that I can project the graph of pressure vs density after the density calculation.

Thanks

Sachin Ravilesh Nand | Software Engineer (Consultant)

B.C.A (Bangalore University-India)

European Union Global Climate Change Alliance Project.

Pacific Centre for Environment and Sustainable Development.

University of the South Pacific.

E: sachin.nand@usp.ac.fj<mailto:sachin.nand@usp.ac.fj>

T: (+679) 32 32205

_______________________________________________

ncl-talk mailing list

List instructions, subscriber options, unsubscribe:

http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Tue May 21 16:08:05 2013

*
This archive was generated by hypermail 2.1.8
: Thu May 30 2013 - 11:38:10 MDT
*