Do anyone know how to read ".nc" data?

2 ビュー (過去 30 日間)
Tony Castillo
Tony Castillo 2021 年 6 月 16 日
コメント済み: Tony Castillo 2021 年 6 月 16 日
Dear mathcoders, I have been searching how to read a file downloaded from Copernicus its extension is .nc I was attempting to deal it with ncread, but I am not sure of the procedure, could you give me a workaround to handle this?
vardata = ncread('data_prueba','varname')
Error using internal.matlab.imagesci.nc/openToRead (line 1274)
Could not open data_prueba for reading.
Error in internal.matlab.imagesci.nc (line 121)
this.openToRead();
Error in ncread (line 61)
ncObj = internal.matlab.imagesci.nc(ncFile);

回答 (1 件)

EmirBeg
EmirBeg 2021 年 6 月 16 日
Try adding the .nc in your filename.
vardata = ncread('data_prueba.nc','varname');
  1 件のコメント
Tony Castillo
Tony Castillo 2021 年 6 月 16 日
Thanks, I have tried it too, and this is the message,
vardata = ncread('data_prueba.nc','varname');
Error using internal.matlab.imagesci.nc/openToRead (line 1274)
Could not open data_prueba.nc for reading.
Error in internal.matlab.imagesci.nc (line 121)
this.openToRead();
Error in ncread (line 61)
ncObj = internal.matlab.imagesci.nc(ncFile);

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

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by