I have Lat, Lon, and NO2 data that are gridded. I'm trying to select a few points from this data and interpolated out some data/a plot, comparing how this interpolated data/plot improves as I interpolate it.
My data is as follows:
Lat is size 336x264 Lon is size 336x264 NO2(:,:,1,12) (the variable I'll be using) is size 336x264, with the first two dimensions being lat and lon respectively.
As an example lat(1,1), lon(1,1), and NO2(1,1,1,12) correspond.
Currently, to interpolate this data I'm using the code:
plot(interpn(lat(100:130),lon(100:130),no2(100:130,100:130,1,12),lat,lon,'cubic interpolation'))
Currently, to interpolate this data I'm using the following code to try to interpolate an entire figure using only the data in the grid in locations 100 to 130 in both axes.
plot(interpn(lat(100:130),lon(100:130),no2(100:130,100:130,1,12),lat,lon,'cubic interpolation'))
My current result is the following figure:
I would prefer to yield something similar to this figure, which is an actual map of the correct plot of
geoshow(lat,lon,NO2(:,:,1,12),'DisplayType','Surface')
I have two serious questions:
- Am I selecting the data right? Probably not, so if not how would I specify only 100->130 of all of the gridded data and interpolate from those?
- How can I interpolate to yield a similar result? Am I using the wrong commands for this purpose?
Thank you!