Project

General

Profile

interpolation

Added by pooran khedri almost 7 years ago

Hello all,

Is there a way to interpolate data on vertical? I downloaded the salinity and temperature of 73 sigma level I need to have 23 sigma level.

I was wondering for any suggestions as early as possible.

Best regards,

Pooran


Replies (6)

RE: interpolation - Added by Ralf Mueller almost 7 years ago

hi!

CDO supports plain depth levels for ocean with operator intlevel. I don't know what your z-axis is about - an upload would help

-ralf

RE: interpolation - Added by pooran khedri almost 7 years ago

Ralf Mueller wrote:

hi!

CDO supports plain depth levels for ocean with operator intlevel. I don't know what your z-axis is about - an upload would help

-ralf

hi,
Thank you so much for your reply, In attachment I have sent my file, with cdo I could interpolate in horizontal direction, I also need to interpolate in the vertical direction, This file has 51 sigma layer and I need to interpolate it to 20 layer.

Thank you in advance.

Pooran

RE: interpolation - Added by pooran khedri almost 7 years ago

Ralf Mueller wrote

hi!

CDO supports plain depth levels for ocean with operator intlevel. I don't know what your z-axis is about - an upload would help

-ralf

sorry,I have forgotten to attach my file.
Here is my file

ini.nc (477 KB) ini.nc

RE: interpolation - Added by Ralf Mueller almost 7 years ago

this seems to be a plain z-level axis, so you can interpolate it with the intlevel operator like this

 cdo intlevel,1,5,10,20,30,50,100,200,500,3000 <ifile> <ofile>

RE: interpolation - Added by pooran khedri almost 7 years ago

Thank you so much for your help.:)

RE: interpolation - Added by pooran khedri almost 7 years ago

pooran khedri wrote:

Thank you so much for your help.:)

Dear ,
Actually,The σ-coordinate is defined by σ = z/D where D is the total depth. where σ varies between 0 at the bottom and 1 at the surface.

    (1-6/6)