how can I read huge asc files with textread?

조회 수: 1(최근 30일)
Honey
Honey 2020년 2월 14일
댓글: Honey 2020년 2월 14일
Hello everyone,
I want to read a huge .asc file wich are climate daily data. The file's name are according to the date.
for example this is "ppt_19990101_asc". I have also leap years in my data. How can I read these files and arange them in 1*366 matlab cell?
thanks in advance.

답변(1개)

Bhaskar R
Bhaskar R 2020년 2월 14일
편집: Bhaskar R 2020년 2월 14일
Get file names and apply
ext_date = datetime(extractBetween(<your file name(here ppt_19990101_asc)>, '_', '_'), 'Format', 'yyyyMMdd');
Then read each file using textread according to your data
  댓글 수: 2
Honey
Honey 2020년 2월 14일
thank you "Bhaskar R" for your answer. here is a part of my long code which I wrote it. I mean this kind of calling data to recognize leap years and date.

댓글을 달려면 로그인하십시오.

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by