diff --git a/CEMCECEM.m b/CEMCECEM.m index fbabb53..d95d689 100644 --- a/CEMCECEM.m +++ b/CEMCECEM.m @@ -1,22 +1,22 @@ -ncfile = "o3_surface_20180701000000.nc"; +ncfile = "o3_surface_20180701000000.nc";%ncfile chosen ncinfo(ncfile); ncdisp(ncfile); lati = ncread(ncfile, 'lat'); longe = ncread(ncfile, 'lon'); -fileDirectory = dir('24HR_CBE_*.csv'); +fileDirectory = dir('24HR_CBE_*.csv');%shows the directory -for k =1 : length(fileDirectory) - file = fileDirectory(k).name; +for k =1 : length(fileDirectory) %loop has started + file = fileDirectory(k).name; matrix = readmatrix(file); matrix(400,:) = [0]; matrix(:,700) = [0]; - showmap = pcolor(longe,lati,matrix); + showmap = pcolor(longe,lati,matrix); % creates the colour showmap.EdgeAlpha = 0; hold on; - p = meshgrid(longe,lati) - s = plot(p,'k'); + p = meshgrid(longe,lati) %this makes longe and lati equal to allow the program to run smoothly + s = plot(p,'k'); % plots the values showmap; colorbar pause