diff --git a/Visualisation.m b/Visualisation.m index 6c73eea..897f1dd 100644 --- a/Visualisation.m +++ b/Visualisation.m @@ -1,5 +1,5 @@ %%Open NetCDF files -filename = 'o3_surface_20180701000000.nc'; +filenamenc = 'o3_surface_20180701000000.nc'; clc; %%Information about software @@ -56,10 +56,10 @@ clc; %%Read data from NetCDF file disp('Loading data in progress') -lon = ncread(ncfile,'lon'); %%assign the longtitude -lat = ncread(ncfile,'lat'); %%assign the latitude -h = ncread(ncfile,'hour'); %%assign the hours -ozoneChoice = ncread(ncfile,ozoneModel); %%it takes the user map model +lon = ncread(filenamenc,'lon'); %%assign the longtitude +lat = ncread(filenamenc,'lat'); %%assign the latitude +h = ncread(filenamenc,'hour'); %%assign the hours +ozoneChoice = ncread(filenamenc,ozoneModel); %%it takes the user map model [X,Y] = meshgrid(lon,lat); %%create meshgrid with data clc;