필터 지우기
필터 지우기

Generating multiple CSV files for data of each day in a time-series netCDF file

조회 수: 1 (최근 30일)
Hitesh Bugata
Hitesh Bugata 2020년 7월 29일
댓글: dpb 2020년 7월 29일
I have a netCDF file that is of size 330*470*47, 47 being the time size. I would like to create 47 separate CSV files of each 330*470 size, based on the data stored under each of the time stamp. I tried extracting by data(time=1) and saving it. It didn't work. How can it be solved? Thanking you in advance!
  댓글 수: 3
Hitesh Bugata
Hitesh Bugata 2020년 7월 29일
'It didn't work' mean 'data of variable I want to extract for a given time frame didn't happen'. If you can see the attached image, it has several variables. Focus on that fact that time variable size is 47. I want to create 47 CSV files with lat, lon, ET500 variable values for each time stamp. Rest variables' data can be discarded. i used ncread to read the variable data of required variables and tried to extract for all 47 times by putting ET_new=ET500(time=='....') in a loop from the beginning and end of time data. Am I missing something now?
dpb
dpb 2020년 7월 29일
Absolutely nothing anybody here can do w/ an image...

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 NetCDF에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by