【发布时间】:2017-06-15 13:38:11
【问题描述】:
我正在下载并使用一些二进制卫星。 我有大约 1400 个 url 以矩阵格式下载和处理它们。
这是我的网址: 'nasanex.s3.amazonaws.com/AVHRR/GIMMS/FPAR3G/AVHRRBUVI01.1981auga.abf'
案例 1: 当我下载(通过我的浏览器)和处理(在 Matlab 中)文件时,我的矩阵输出似乎是正确的。 Correct Output
案例 2: 当我下载(通过 R)和处理(在 Matlab 中)文件时,我的矩阵输出似乎不正确。 Incorrect Output
我想知道为什么会这样。 我正在分享我用于下载的“R”:
download.file(myurl_1, destfile = myfile_1, mode ='w')
为了读取数据,我使用了简单的“matlab”代码。
myfile = allfiles(1,1:end);
fid = fopen(char(myfile), 'r');
data = fread(fid,[2160,4320],'uint8',0,'ieee-be');
data(data == 250)= nan;
fclose(fid);
【问题讨论】: