Soundspeed for ROMS output

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
colberg
Posts: 13
Joined: Mon Feb 16, 2004 4:54 pm
Location: CSIRO

Soundspeed for ROMS output

#1 Unread post by colberg »

Hi all,

just wondering if anyone has some code that calculates the soundspeed from ROMS output files ?

Cheers
Frank

User avatar
arango
Site Admin
Posts: 1364
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: Soundspeed for ROMS output

#2 Unread post by arango »

It has been in ROMS plotting package that uses the NCAR's GKS library since the beginning. Check the file src/Utility/svel.F in the plot repository. It uses the Che and Millero (1976) formula.

Chen, C.T. and F.J. Millero, 1976: re-evaluation of Willson sound-speed measurements in pure water. J. Acoust. Soc. of Amer., 60(6), 1270-1273

I am not familiar with the literature of sound speed computation. I bet that there are newer formulations out there.

Also, it will be very trivial to compute from ROMS nonlinear equation of state since it has all the variables that it needs:

Code: Select all

svel2 = ABS(10000.0./(den * gamma))
svel = SQRT(svel2);
where gamma is the adiabatic and isentropic compressibility coefficient (1/Pa).

User avatar
wilkin
Posts: 920
Joined: Mon Apr 28, 2003 5:44 pm
Location: Rutgers University
Contact:

Re: Soundspeed for ROMS output

#3 Unread post by wilkin »

There is also code in the CSIRO seawater toolbox for Matlab (function sw_svel) though seawater has been superseded by the Gibbs SeaWater (GSW) toolbox for TEOS-10
http://www.teos-10.org/pubs/gsw/html/gsw_contents.html
and in there it is function gsw_sound_speed
John Wilkin: DMCS Rutgers University
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu

colberg
Posts: 13
Joined: Mon Feb 16, 2004 4:54 pm
Location: CSIRO

Re: Soundspeed for ROMS output

#4 Unread post by colberg »

Thanks guys !

Hernan - OK - I remember having problems with compiling the plotting package in the past due to ncarg library. I'll give it another go.

Generally I think it would be nice to decouple the soundspeed calculation from the actual plotting routines and be able to write it into the average or history output files given T and S.

I look into this.

User avatar
arango
Site Admin
Posts: 1364
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: Soundspeed for ROMS output

#5 Unread post by arango »

Just do it in Matlab.

Post Reply