From: Jesper L. <jl...@dm...> - 2005-10-18 10:10:46
|
On Saturday 15 October 2005 01:10, Jeff Whitaker wrote: > Jesper: Since this question has come up a couple of times, I decided to > cook up an example. First you'll need to download and install the > natgrid python module (included in CDAT, but I've separated it out from > the huge tarball and put it at > ftp://ftp.cdc.noaa.gov/Public/jsw/natgrid.tar.gz). Then try this: Sounds great. I tried your example and it works fine (though I had to modify the import nat statement to "from natgrid import nat"). The only problem for my application is that I would like the interpolation to be limited to areas near observations and avoiding extrapolation to areas far from observations. Is that possible - from the natgrid documentation that does not seem to be the case? If it is not possible, I will probably try to do it as a postprocessing of the interpolated data (probably simply check if the nearest observation is within a given range). -- Jesper |