-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplotmap.m
More file actions
26 lines (25 loc) · 988 Bytes
/
plotmap.m
File metadata and controls
26 lines (25 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
% plot map
stations=setmeanperdepth(aml);
figure,
worldmap([55.6 56.],[12.3 13.0])
LL = load('C:\Users\Themis\Desktop\Aquatic field work/coastline_oresund.dat');
hh=plotm(LL(:,2),LL(:,1),'k','linewidth',2);
depth=1;
fnames=fieldnames(stations.aml);
fnames(1:2)=[];
T(1)=stations.aml.(fnames{1})(depth).TempCT;
for i=2:length(fnames)
T(i)=stations.aml.(fnames{i})(depth).TempCT;
end
%surfm(stations.aml.lat,stations.aml.lon,T)
%scatterm(stations.aml.lat,stations.aml.lon,1600,T,'.')
% xq=linspace(min(stations.aml.lon):max(stations.aml.lon),50);
% yq=linspace(min(stations.aml.lat):max(stations.aml.lat),50);
[xq,yq] = meshgrid(linspace(min(stations.aml.lon),max(stations.aml.lon),50), linspace(min(stations.aml.lat),max(stations.aml.lat),50));
vq = griddata(stations.aml.lon,stations.aml.lat,T,xq,yq);
surfm(yq,xq,vq)
c=colorbar;
xlabel('longitute')
ylabel('latitude')
ylabel(c, 'temperature (^{o}C)')
title(['temperature at depth= ', num2str(depth),' (m)'])