Re: [讨论] 大家都怎么抓连续的云图

楼主: lavifoxbat (花次郎)   2016-07-06 16:22:35
※ 引述《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

Links booklink

Contact Us: admin [ a t ] ucptt.com