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

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri, 16 Nov 2007 08:17:36 -0700

I suggest "resampling" as Saji has suggested.

Also, to verify that the data are on consistent grid

        printVarSummary( newvar ) ; subsetted 0.5x0.5 variable

and
        printVarSummary( var_1x1 )

Saji Njarackalazhikam Hameed wrote:
> 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
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Nov 16 2007 - 08:17:36 MST

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