Redefining latitude and longitude variables

2 views (last 30 days)
Tim Holgate
Tim Holgate on 5 Feb 2021
Commented: KSSV on 5 Feb 2021
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 Comment
KSSV
KSSV on 5 Feb 2021
The very basic method is to go for interpolation. Read about interp2.

Sign in to comment.

Answers (0)

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!