[MITgcm-support] regridding question
Menemenlis, Dimitris (3248)
Dimitris.Menemenlis at jpl.nasa.gov
Wed Nov 27 12:17:52 EST 2013
Jonny, you need to extrapolate your fields to land points on your coarse
grid before interpolating to hi-res grid and applying mask.
For extrapolation, use your favorite routine.
If it's only a few point, closest neighbor is simple
and probably best.
One small routine that I use a lot for cases just like yours is:
http://ecco2.jpl.nasa.gov/matlab/tools/xpolate.m
You need to fill land points with NaNs, then apply.
But be careful about edges of domain as the routine
assumes double periodicity.
Cheers
Dimitris Menemenlis
On Nov 27, 2013, at 9:06 AM, Jonny Williams wrote:
Hi everyone
I have a question regarding regridding low-resolution NetCDF model data onto a high resolution NetCDF observational land-sea mask/bathymetry.
Basically the actual regrdding of the data from low resolution to high resolution is easy for me (NetCDF operators etc...) BUT this preserves the blocky land-sea mask of the original low-resolution data so in summary I wish to regrid the low resolution data AND impose the very high resolution coastline data.
Does anyone have any ideas about how this could be achieved in practice?
Many thanks!
Jonny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20131127/7e24901c/attachment.htm>
More information about the MITgcm-support
mailing list