필터 지우기
필터 지우기

Interpolation of Data on Different Grids

조회 수: 4 (최근 30일)
David C
David C 2014년 11월 18일
댓글: Samuel diabate 2020년 9월 24일
I have a 2-D data (ocean depth) on a latitude-longitude grid. (That is, the ocean depth is specified at each latitude and longitude. The latitude coordinates and longitude coordinates are separated by 1 deg each.) Question: How do I interpolate this data onto a fixed-distance grid (with an interval of, say, 100 m by 100 m)?
Thanks.

채택된 답변

Chad Greene
Chad Greene 2014년 11월 20일
The best way is to project the elevation data using an appropriate projection. Then interpolation should be no problem with interp2. Choosing a projection will depend on where the data lie on the globe (near the equator?, near the poles?) and how large an area the data spans. If your bathymetry data spans only a few hundred kilometers, perhaps a UTM projection is appropriate. There's a pretty good explanation of projections here. If you have the mapping toolbox, you can project and unproject with projfwd and projinv.
Another option, for a small area of the globe, could be to use interpm2 in the lat dimension to get an array of lats, use it again for the lon dimension, and call that your new grid. But again, this would only be appropriate for a small area of the globe where spacing between meridians does not change very much over the north-south extents of the data.
  댓글 수: 3
Chad Greene
Chad Greene 2014년 11월 20일
And if you don't have the mapping toolbox, m_map has several helpful functions.
Samuel diabate
Samuel diabate 2020년 9월 24일
Hello Chad.
Is it completely impossible to interpolate on the surface of a sphere without projecting?
What if your data spans the whole world for example - not my case but just asking - ?
Cheers,
Sam

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Map Display에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by