-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirstmap.m
More file actions
54 lines (46 loc) · 1.22 KB
/
firstmap.m
File metadata and controls
54 lines (46 loc) · 1.22 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
p=netcdf_test;
lat = double(p.lat);
lon = double(p.lon);
% prepare a lat/lon grid
[nlon,nlat,nz,nt]=size(p.T);
[LON, LAT] = meshgrid(lon,lat);
T = squeeze(p.T(:,:,1,2));
S = squeeze(p.S(:,:,1,2));
Sp= squeeze(p.Sp(:,:,1));
%size(salt)
%depth, time
figure,
worldmap([55.6 56.],[12.3 13.0])
hg = geoshow(LAT,LON,T','DisplayType','surface');
colorbar
%caxis([15 20])
hold on
set(hg,'ZData',get(hg,'ZData')-1000000)
LL = load('coastline_oresund.dat');
hh=plotm(LL(:,2),LL(:,1),'k','linewidth',2);
hold on
title('Temperature (degC)')
%
figure,
worldmap([55.6 56.],[12.3 13.0])
hg = geoshow(LAT,LON,S','DisplayType','surface');
colorbar
%caxis([5 10])
hold on
set(hg,'ZData',get(hg,'ZData')-1000000)
LL = load('C:\Users\Themis\Desktop\Aquatic field work/coastline_oresund.dat');
hh=plotm(LL(:,2),LL(:,1),'k','linewidth',2);
hold on
title('Salinity (psu)')
%
figure,
worldmap([55.6 56.],[12.3 13.0])
hg = geoshow(LAT,LON,Sp','DisplayType','surface');
colorbar
%caxis([5 10])
hold on
set(hg,'ZData',get(hg,'ZData')-1000000)
LL = load('C:\Users\Themis\Desktop\Aquatic field work/coastline_oresund.dat');
hh=plotm(LL(:,2),LL(:,1),'k','linewidth',2);
hold on
title('Surface surface hight (meters)')