nccreate overwrite existing file
조회 수: 2 (최근 30일)
이전 댓글 표시
How to use nccreate to create a new file clobbering any previous file with the same name?
Matlab's question-begging documentation doesn't help. Here's matlab's info on nccreate:
"If filename does not exist, then nccreate creates the file using the netcdf4_classic format."
Great, but if the filename does exist?
댓글 수: 0
채택된 답변
Stijn Haenen
2019년 11월 26일
Have you tried this:
if exist(filename)
delete filename
end
nccreate.....
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 NetCDF에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!