How can I import asc.gz files into matlab?

4 次查看(过去 30 天)
I need to get files from this directory: <ftp://sidads.colorado.edu/pub/DATASETS/NOAA/G02156/24km/2011/> into MATLAB however when I use URLREAD, it incorrectly reads in each file. Instead of reading in what should approximately be a 6400x6400 array, it reads in a supposed "1x24331" dimensional array something like this when I open up the variable: ')>N'

回答(2 个)

Walter Roberson
Walter Roberson 2012-7-24
Use gunzip after you have downloaded the file but before you read the content.
  3 个评论
Ryan
Ryan 2012-7-25
Walter- I think I got it. Thanks again for your help.
Walter Roberson
Walter Roberson 2012-7-25
ftp() instead of urlread() I would think.

请先登录,再进行评论。


tuncay tuncay
tuncay tuncay 2017-6-13
How can I access the contents of .gz files with matlab
  1 个评论
Walter Roberson
Walter Roberson 2017-6-13
gunzip the files.
There is no direct facility in MATLAB to access individual files within a .gz archive.
If you know a bit of Java, it is possible to place calls to appropriate java routines.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Downloads 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by