set gxout grid - skipping or combining fields?

Jennifer Adams jma at COLA.IGES.ORG
Wed Feb 20 09:11:20 EST 2008


Hei, Stefan --
The skip() function in GrADS will degrade the resolution in the way
you suggest. Something like:
    ga-> d skip(var,2,2)
Since you you are using GrADS 2.0, the lterp() function is now built
in and will allow you to interpolate from one grid to another. The
algorithm in lterp is bi-linear interpolation from the nearest
neighbors, so if you define your destination grid to have points at
the centers of the 2x2 grid areas in your source data, then lterp
will do the same thing as aave().  Using aave() and writing out a new
data grid would be the most general solution.
Jennifer



On Feb 18, 2008, at 4:30 PM, Stefan Gofferje wrote:

> Hei,
>
> is there a possibility to skip or better combine grid fields and show
> e.g. an average value of a 2x2 area in the center?
>
> Tervehdys Suomesta,
> Stefan Gofferje
>
> --
> Since light travels faster than sound, is that why some people appear
> bright until you hear them speak?

--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20080220/c4a6aa36/attachment.html 


More information about the gradsusr mailing list