Redefining latitude and longitude variables

조회 수: 1 (최근 30일)
Tim Holgate
Tim Holgate 2021년 2월 5일
댓글: KSSV 2021년 2월 5일
Hello
I have two data sets: a sea surface salinity product for the southern ocean, in a 38 x 1388 x 12 3D Array, in which the data is in 25km x 25km grid (arranged by Lat, Lon, Month). I also have an ocean mixed layer depth product for the Southern Ocean in a 41 x 720 x 12 3D Array, in which data is in a 0.5 degree x 0.5 degree grid (again arranged by lat, lon , month). In order to calculate the salinity budget I have to get these 2 data sets on to the same grid (AKA: the latitudes and longitudes need to match). My supervisor has told me I should put the mixed layer product onto the salinity product in order to retain the higher resolution of the product.
<-- This is my mixed layer latitudes (same format for longitudes).<-- This is my salinity latitude (same format for longitude).
From what I gather I am going to have to quite heavily modify my mixed layer product, in the form of repeating columns and rows before rewriting the latitudes from the salinity product onto these. However, I am fairly inexperienced at MATLAB and don't really have an idea of where to start on this issue. Any pointers you could give me would be incredibly well recieved!!
Thanks in advance!!
  댓글 수: 1
KSSV
KSSV 2021년 2월 5일
The very basic method is to go for interpolation. Read about interp2.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by