get_hycom_online
A MATLAB function to download HYCOM data easily
get_hycom_online
A MATLAB function to download hycom data easily (1992-10-02 to present)
Example-1: Download HYCOM data of a particular moment
clc;clearvars
aimpath = 'E:/data/';
region = [190 240 -5 5]; % Nino3.4
timeTick = datetime(2010,1,1);
varList = {'ssh','temp','salt','u','v'};
D = get_hycom_online(aimpath, region, timeTick, varList);
Example-2: Download HYCOM data in bulk
clc;clearvars
aimpath = 'E:/data/';
region = [117.5 122.5 37 41]; % the Bohai Sea
timeList = datetime(2020,1,1):hours(3):datetime(2020,2,1);
varList = {'ssh','temp','salt','u','v'};
nTimes = numel(timeList);
for iTime = 1:nTimes
timeTick = timeList(iTime);
D = get_hycom_online(aimpath, region, timeTick, varList);
end
Example-3: Download data from a specified HYCOM product
clc;clearvars
aimpath = 'E:/data/';
region = [261 280 17.5 32.5]; % the Gulf of Mexico
timeTick = datetime(2010,1,1);
varList = {'ssh','temp','salt','u','v'};
URL = 'http://tds.hycom.org/thredds/dodsC/GLBy0.08/expt_93.0?';
D = get_hycom_online(aimpath, region, timeTick, varList, URL);
Sample Graph
Notes
When a given longitude range includes the longitude boundaries of the original HYCOM product, you need to download it twice separately and splice it together to get the desired data.
For example, the longitude range of hycom data is [-180 180], but your given longitude range is [150 200].
인용 양식
wu wenfan (2024). get_hycom_online (https://github.com/wenfanwu/get_hycom_online), GitHub. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R2022a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음
버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
1.0.0 |
|
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.