how do I fix netcdf.putAtt error?

2 ビュー (過去 30 日間)
Mija Lovric
Mija Lovric 2015 年 5 月 5 日
回答済み: 俊 马 2022 年 6 月 13 日
I created a netcdf file, but I have a problem with writing an attribute. This is how I did it: netcdf.putAtt(ncid,varid2,'units','months_since_Jan_1999'); but it gives me this error:
Error using netcdflib The NetCDF library encountered an error during execution of 'putAttText' function - 'Operation not allowed in data mode (NC_ENOTINDEFINE)'. Error in netcdf.putAtt (line 82) netcdflib('putAttText',ncid,varid,attname,attvalue);

回答 (1 件)

俊 马
俊 马 2022 年 6 月 13 日
hi, have you fixed this issue? I have met the same problem, do you know how to solve it ? thanks

カテゴリ

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