- loop over all files, see How can I process a sequence of files?
- read a csv-file with textscan or csvread. textscan is somewhat faster.
- write to the netCDF-file, see netcdf, Summary of MATLAB Network Common Data Form (NetCDF) capabilities
Convert .csv file(s) to netCDF file
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi,
I need to convert the attached .csv file to netCDF file.(I have hundreds of similar .csv files) Is there a way to do in MATLAB?
Thanks in advance.
댓글 수: 0
답변 (1개)
per isakson
2015년 3월 5일
편집: per isakson
2015년 3월 5일
AKAIK: There are good support to read csv-files and write netCDF-files, but no tool to convert csv-files to netCDF. (There are contributions in the File Exchange, which promise to convert the other way round.) Thus, you need to make your own function:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 NetCDF에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!