From 503bc274001059b624627a71b9f68007a33655e4 Mon Sep 17 00:00:00 2001 From: "Isaac Eriya (eriyai)" Date: Fri, 24 Apr 2020 04:19:27 +0100 Subject: [PATCH] Add files via upload Code has been commented --- CEMCECEM.m | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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