Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Big-data/CEMCECEM.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
23 lines (20 sloc)
658 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ncfile = "o3_surface_20180701000000.nc";%ncfile chosen | |
ncinfo(ncfile); | |
ncdisp(ncfile); | |
lati = ncread(ncfile, 'lat'); | |
longe = ncread(ncfile, 'lon'); | |
fileDirectory = dir('24HR_CBE_*.csv');%shows the directory | |
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); % creates the colour | |
showmap.EdgeAlpha = 0; | |
hold on; | |
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 | |
end |