force grads to interpolate

Patrick Reuter preuter at LABRI.FR
Sun Dec 2 13:23:37 EST 2007


Dear Brian,

thanks for your answer. Actually, I was just making this simple
example to get easily understood.

My actual problem is, that I have floating point latitude/logitude
data for a city, and a WRF model step of 0.0791 latitudes/longitudes.

That is why is was talking about linear interpolation : Taking the 4
gridpoints that surround the city, and weight the influence of the
gridpoints wrt the distance.

Does this linear interpolation exist ? Or do I have to find the 4
gridpoints on my own and do the interpolation ?

I hope this was clear ..

Thanks in advance

    Patrick



Brian Doty <doty at COLA.IGES.ORG> a écrit :

> If you have one degree data, and want to "interpolate" to lon 90.5,
> you can use the expression:
>
>     display (var(lon=90)+var(lon=91))/2
>
> ...Brian
>
> On Dec 1, 2007, at 12:39 PM, Patrick Reuter wrote:
>
>> Hi everybody,
>>
>> maybe this question is pretty basic - but I just can't find it.
>>
>> ga-> set lat 90.5
>> LAT set to 91 91
>>
>> How could I force grads to use linear interpolation between the values
>> ? I mean, that it takes the values of grid point 90 and 91, and
>> linearly interpolates, so that I can display the (one dimensional)
>> data ?
>>
>> Thanks in advance !
>>
>>  Patrick



More information about the gradsusr mailing list