MATLAB: Create map from Netcdf file

mapsnetcdfopen netcdf

Hi
I have a netcdf file from at the following link: https://drive.google.com/open?id=0B0wQbicZOF7xcWx0RmtoXzZHWHM
I am able to open it in Matlab but is it possible to create a map from it and if so how do I do it? It would be a map of any day, using the TCO values and looking at the southern hemisphere.

Best Answer

clc; clear all ;
ncfile = 'your ncfile' ;
long = ncread(ncfile,'longitude') ;nx = length(long) ;
lat = ncread(ncfile,'latitude') ; ny = length(lat) ;
time = ncread(ncfile,'time') ; nt = length(time) ;
TCO = ncread(ncfile,'TCO') ;
[X,Y] = meshgrid(long,lat) ;
for i = 1:nt
pcolor(X,Y,TCO(:,:,i)') ;
shading interp ;
title(sprintf('time = %f',time(i)))
pause(0.1)
end