Skip to content
Permalink
Browse files
Add files via upload
Code has been commented
  • Loading branch information
eriyai committed Apr 24, 2020
1 parent 217ac89 commit 503bc274001059b624627a71b9f68007a33655e4
Showing 1 changed file with 7 additions and 7 deletions.
@@ -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

0 comments on commit 503bc27

Please sign in to comment.