필터 지우기
필터 지우기

Txt file to NetCDF file

조회 수: 4 (최근 30일)
Felipe
Felipe 2014년 6월 9일
댓글: Kelly Kearney 2014년 6월 9일
How can i turn a txt file into a nc file in MatLab ?

채택된 답변

Chad Greene
Chad Greene 2014년 6월 9일
ncwrite can do it.

추가 답변 (1개)

Felipe
Felipe 2014년 6월 9일
But my txt file has no strings, only numbers. To use ncwrite i have to use nccreate and i am unable to use. How would be the correct syntax to use ncwrite in this case ?
Thanks
  댓글 수: 1
Kelly Kearney
Kelly Kearney 2014년 6월 9일
Before you can write a variable to a netcdf file, you need to first set up the netcdf file with the proper variable names, dimensions, etc. via nccreate.
Exactly what those variable names and dimensions will be depend on the data in your text file, which you haven't yet described. Perhaps if you give us some more info we can help you with the syntax.

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

카테고리

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