Re: suggestion for resampling 0.5 grid data to 1x1 grid data

From: Saji Njarackalazhikam Hameed <saji_at_nyahnyahspammersnyahnyah>
Date: Fri, 16 Nov 2007 10:52:18 +0900

Erik,

You could resample or you could interpolate

Resampling (skipping certain grids) use the var(::2,::2) convention
for instance to resample the 0.5 x 0.5 gridded variable (var1) every other grid points, do:

[assume var1 has 4 dimensions, time, level, lat, lon and you want to
 resample along lat and lon dimensions ]

   newvar=var1(time|:,level|:, lat|::2,lon|::2)

Regrid - check up the regridding functions in NCL (see the applications page,
  rightmost column)

hope it helps,

saji
* Erik Noble <enoble_at_giss.nasa.gov> [2007-11-15 20:56:52 -0500]:

> I have 2 netcdf files.
> One file is a variable on .5 x.5 degree grid and I want to correlate it
> with a similar variable on a 1x1 degree grid.
> Are there examples for resampling of data? (I could change these files to
> ascii and go that route).
>
> -Erik
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
Saji N. Hameed
APEC Climate Center          				+82 51 668 7470
National Pension Corporation Busan Building 12F         
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705			saji_at_apcc21.net
KOREA
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Nov 15 2007 - 18:52:18 MST

This archive was generated by hypermail 2.2.0 : Sun Nov 25 2007 - 07:21:25 MST