How to edit a particular variable in a netcdf file?
조회 수: 19 (최근 30일)
이전 댓글 표시
Hi, I am trying to modify a specific variable in a netcdf file. In my file a 4D-variable named MSUL_V(lat,lon,level,time) is there, i want to change the values of this variable at every lat and lon. I am not familiar with editing variables in netcdf package MATLAB.
Please help me about this. I do appreciate if everyone could help me about this. Thanks Angshuman
댓글 수: 0
채택된 답변
Ashish Uthama
2012년 1월 16일
편집: John Kelly
2015년 2월 26일
댓글 수: 2
Ashish Uthama
2012년 1월 18일
Yes, but it will need a bit more work. Have a look at this example: http://www.mathworks.com/help/techdoc/ref/netcdf.putvar.html (It creates a new file and write a new variable). You will have to code up something similar, i.e open a file in write mode, get the variable ID of your variable and then use putvar to overwrite it.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 NetCDF에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!