[Thread Prev][Thread Next][Index]

Re: [ferret_users] Interpolation problem



Hi Ashkay,
In general to interpolate, you define new axes for the output grid that you want, and use a regridding transformation to interpolate your data to that new grid.  Something like this:
define axis/z=0.5:`zhi`:0.5/units=meter zax05
let sa2 = sa[gz=zax05]
Or, because you are reading the data from an ascii file, you can define your "zax" axis with the definition you want right from the start, and use it to define the grid for reading the data.

   let zhi=377/2
   define axis/z=0.5:`zhi`:0.5/units=meter zax

Ansley

On 12/4/2012 2:17 AM, Akshay Hegde wrote:
Hi ! experts...

I am trying to interpolate my data file....

pls have a look on data file...


I need temperature and salinity value with a bin size of 0.5 meter..


define axis/z=1:377:1 zax
define grid/z=zax mygrid
columns/skip=1/delim="\t,\b"/type="numeric,numeric,numeric,numeric,numeric,numeric,numeric"/grid=mygrid ctd001_ins1_04-08-07_1100.out

let date =v1
let time =v2
let lon =v3
let lat =v4
let dep = v5
let tem = v6
let sa = v7

let mask = if dep[z=@ddf] eq dep[z=@ddb]  then 1
list mask, dep,tem,sa

till here I could able to do...how can I get temp, sal value with bin size of 0.5


Thanks in advance...


Akshay


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

Privacy Policy | Disclaimer | Accessibility Statement