大家都怎麼抓連續的雲圖 - 颱風討論

By Xanthe
at 2016-07-06T16:22
at 2016-07-06T16:22
Table of Contents
※ 引述《kepley (Kepley)》之銘言:
: 剛剛嘗試了好多方法
: 不論是用Chrome app或是其他軟體,
: 好像都不能快速打包下載所有雲圖。
: 不知道各位大大都怎麼做的?
: 謝謝
最近用MATLAB寫了一個script
從NCDC GIBBS抓全球雲圖
startDate=datenum(2004,06,01);
endDate=datenum(2004,06,10);
for date=startDate:endDate
datestr(date)
for i=1:8
if i==1
hr='00';
elseif i==2
hr='03';
elseif i==3
hr='06';
elseif i==4
hr='09';
elseif i==5
hr='12';
elseif i==6
hr='15';
elseif i==7
hr='18';
elseif i==8
hr='21';
end
filename=[datestr(date,'yyyy') '-' ...
datestr(date,'mm') '-' ...
datestr(date,'dd') '-' hr];
try
ir_image=imread([...
'http://www.ncdc.noaa.gov/gibbs/image/GRD-1/IR/' ...
filename]);
imwrite(ir_image,[filename '.png'],'png');
catch
disp('no data')
end
end
end
這個script能把startDate和endDate間所有的雲圖抓下來
如果要從不同的來源抓圖
理論上來說只要知道圖片的網址和檔名形式
並依此修改filename和imread中的網址
如果手頭上沒有MATLAB
可以考慮安裝Octave
後者算是前者的免費版
多google應該就能把這個script改寫成Octave的版本
順帶一提 希望有人能提供python 3的script
--
: 剛剛嘗試了好多方法
: 不論是用Chrome app或是其他軟體,
: 好像都不能快速打包下載所有雲圖。
: 不知道各位大大都怎麼做的?
: 謝謝
最近用MATLAB寫了一個script
從NCDC GIBBS抓全球雲圖
startDate=datenum(2004,06,01);
endDate=datenum(2004,06,10);
for date=startDate:endDate
datestr(date)
for i=1:8
if i==1
hr='00';
elseif i==2
hr='03';
elseif i==3
hr='06';
elseif i==4
hr='09';
elseif i==5
hr='12';
elseif i==6
hr='15';
elseif i==7
hr='18';
elseif i==8
hr='21';
end
filename=[datestr(date,'yyyy') '-' ...
datestr(date,'mm') '-' ...
datestr(date,'dd') '-' hr];
try
ir_image=imread([...
'http://www.ncdc.noaa.gov/gibbs/image/GRD-1/IR/' ...
filename]);
imwrite(ir_image,[filename '.png'],'png');
catch
disp('no data')
end
end
end
這個script能把startDate和endDate間所有的雲圖抓下來
如果要從不同的來源抓圖
理論上來說只要知道圖片的網址和檔名形式
並依此修改filename和imread中的網址
如果手頭上沒有MATLAB
可以考慮安裝Octave
後者算是前者的免費版
多google應該就能把這個script改寫成Octave的版本
順帶一提 希望有人能提供python 3的script
--
Tags:
颱風
All Comments

By Barb Cronin
at 2016-07-09T13:53
at 2016-07-09T13:53

By Ina
at 2016-07-12T11:24
at 2016-07-12T11:24

By Gilbert
at 2016-07-15T08:54
at 2016-07-15T08:54

By Joseph
at 2016-07-18T06:25
at 2016-07-18T06:25

By Delia
at 2016-07-21T03:56
at 2016-07-21T03:56

By Sandy
at 2016-07-24T01:27
at 2016-07-24T01:27

By Elizabeth
at 2016-07-26T22:58
at 2016-07-26T22:58

By Skylar DavisLinda
at 2016-07-29T20:28
at 2016-07-29T20:28

By Necoo
at 2016-08-01T17:59
at 2016-08-01T17:59

By Hedy
at 2016-08-04T15:30
at 2016-08-04T15:30

By John
at 2016-08-07T13:01
at 2016-08-07T13:01

By Caroline
at 2016-08-10T10:32
at 2016-08-10T10:32

By Carol
at 2016-08-13T08:02
at 2016-08-13T08:02

By Wallis
at 2016-08-16T05:33
at 2016-08-16T05:33

By Hamiltion
at 2016-08-19T03:04
at 2016-08-19T03:04

By Donna
at 2016-08-22T00:35
at 2016-08-22T00:35

By Dinah
at 2016-08-24T22:06
at 2016-08-24T22:06

By George
at 2016-08-27T19:36
at 2016-08-27T19:36

By Freda
at 2016-08-30T17:07
at 2016-08-30T17:07
Related Posts
大家都怎麼抓連續的雲圖

By Tom
at 2016-07-06T15:27
at 2016-07-06T15:27
第1號(尼伯特)颱風飛機追風觀測啟動

By Leila
at 2016-07-06T15:15
at 2016-07-06T15:15
颱風警戒期間常見問題集錦

By Jack
at 2016-07-06T14:28
at 2016-07-06T14:28
尼伯特 海上颱風警報 第一報

By Jessica
at 2016-07-06T14:21
at 2016-07-06T14:21
尼伯特來襲 追風計畫下午出發

By Rosalind
at 2016-07-06T13:07
at 2016-07-06T13:07