Project

General

Profile

Plot a variable with respect to another

Added by Sreejith Sreedharan over 8 years ago

Dear friends,
I have a netcdf data with annual mean temperature and salinity as its variables. The data varies over latitude, longitude and depth ( 3 co-ordinates). I have computed potential density using these two variables. That mean, now I have 3 variables in total ( annual mean temperature and salinity and potential density).
I want to know whether it is possible to extract the value of temeprature and salinity at a perticular potential density surface. eg: at a given grid if the potential density = 1024 is at a depth of 80m, is it possible to get/extract the value of temperature and salinity at that depth (80m).
By doing so for all the grids, i can plot the value of temperature/salinity at any perticular density surface.

Thank you
Sreejith


Replies (1)

RE: Plot a variable with respect to another - Added by Ralf Mueller over 8 years ago

Hi!

I don't think, there anything like that available in CDO. The only thing is the undocumented isosurface operator. It computes a single horizontal field of depths, where the iso-surface is located. Let's say you wand the depth of the isosurface of potential density of 1024, you call

cdo isosurface,1024.0 -selname,rhopot ifile.nc isoSurfaceOFILE.nc<pre>

This will give you a good estimate, where to look for the temperature/salinity values. Still you have to do the selection yourself with the language of your choice. 

hth
ralf

    (1-1/1)