Txt file to NetCDF file

3 ビュー (過去 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 Center および File ExchangeNetCDF についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by