How can i create a NetCDF file ?

4 ビュー (過去 30 日間)
Felipe
Felipe 2014 年 6 月 26 日
コメント済み: Felipe 2014 年 10 月 30 日
I'm trying to create a NetCDF file using netcdf.create ou nccreate but i'm not getting.
When i try to use netcdf.create:
>> netcdf.create('file','netcdf4'); ??? Error using ==> netcdflib Unrecognized operation: "NETCDF4"
Error in ==> getConstant at 28 param = netcdflib('parameter', param_name);
Error in ==> create at 45 mode = netcdf.getConstant(mode);
If you can help me i will be greatfull. Thanks.

採用された回答

Ashish Uthama
Ashish Uthama 2014 年 6 月 26 日
Felipe, Consider starting with the example in the nccreate doc page (Towards the bottom). You can start to build on this example.
Post back if you run into specific issues.
  2 件のコメント
Felipe
Felipe 2014 年 6 月 26 日
When i use nccreate:
>> nccreate('arquivo','lat','nc_double'); ??? Undefined function or method 'nccreate' for input arguments of type 'char'.
Ashish Uthama
Ashish Uthama 2014 年 6 月 26 日
Felipe, you probably have an older version. Please upgrade if possible. Else, look at the examples for netcdf.putvar, the low-level direct interface to the NetCDF library.

サインインしてコメントする。

その他の回答 (1 件)

Carlos Batista
Carlos Batista 2014 年 10 月 29 日
Felipe Lyra,
vc conseguiu criar o arquivo netcdf? Estou tentando também!!!
  1 件のコメント
Felipe
Felipe 2014 年 10 月 30 日

Fala Carlos ... consegui sim ! Mas não sei se está abrindo em todos os programas não ... No MatLab e no Python o arquivo está abrindo normal. Se quiser eu te mando por e-mail o script que eu fiz pra salvar em NetCDF. Abraço.

サインインしてコメントする。

カテゴリ

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