1.https://www.eoas.ubc.ca/~rich/map.html 접속
M_Map: A Mapping package for Matlab
A mapping package for Matlab You have collected your data, loaded it into Matlab, analyzed everything to death, and now you want to make a simple map showing how it relates to the world. But you can't. Instead you have to figure out how to save all your da
www.eoas.ubc.ca
2. zip 파일 다운로드
3. matlab tool 박스 경로 or 개인 툴박스 폴더 안에 저장
- 해당 글은 개인 툴박스 폴더 안에 저장해서 진행했습니다.
- .m 파일 경로 기준
'tool_box' 디렉토리 안에 m_map 파일 저장 했습니다.
4. 원하는 지도 스타일 선택
5. 선택한 스타일의 코드를 원하는 영역에 맞게 코드 수정
6. 예시 코드
- 예시 데이터
clc; clear; close all;
addpath(genpath('/tool_box'))
%% input control
inp.in = '01_input';
inp.out = '02_output';
inp.year = [ 2007 ];
if isfolder(inp.out) == 0
mkdir(inp.out);
end
%$ read data
load('data.mat')
%% figure
figure('Visible','on')
% set
set(gcf,'color','w','Units','Normalized','OuterPosition',[.2 0.2 .5 .6]);
set(gca,'fontname','Arial','fontweight','bold','fontsize',15,'Box','on','Layer','top','GridLineStyle',':','LineWidth',2,'GridAlpha',.5);
hold on; grid on;
% plot
m_proj('mercator','lat',[-65 65],'lon',[0 360]);
m_contourf(lon,lat,year_mean_adt,20,'linestyle','none')
% deco
m_grid('linestyle',':','background','none','yticks',[-60:30:60],'xticks',[-180:60:180]);
title('Mean of ADT (m) in 2007','FontSize',25,'FontWeight','bold')
% color bar
colormap('jet')
c = colorbar;
clim([-1.5 1.5]);
c.Ticks = [-1.5 : .5 : 1.5];
c.Label.FontSize = 18;
print(fullfile(inp.out,'annual_mean'),'-dpng','-r200')
|
데이터 출처
Home | CMEMS
The sixth issue of the Copernicus Ocean State Report and its summary is now available online, coordinated by Mercator Ocean International, the implementing entity of the Copernicus Marine Service. This annual publication provides a comprehensive and state
marine.copernicus.eu
해당 사이트 데이터 다운 방법
https://hummingstereo.tistory.com/52
[Copernicus] 데이터 다운 (FTP)
1. FTP 전송 프로그램 다운로드 (FileZilla) (WinSCP) 2. Copernicus 계정 등록 3. 원하는 데이터 FTP 링크 복사 4. 본인의 컴퓨터에 데이터 전송 1. https://filezilla-project.org/download.php?type=client 접속 https://winscp.net
hummingstereo.tistory.com
'matlab' 카테고리의 다른 글
[ matlab ] subplot 활용 (0) | 2023.04.21 |
---|---|
[ matlab ] 투명 배경 figure 생성 (2) | 2023.04.20 |
[ matlab ] for (0) | 2023.04.09 |
[ matlab] strcut 구조 변수 저장 방법 (0) | 2023.03.31 |
[copernicus] 데이터 처리 (0) | 2023.03.05 |