필터 지우기
필터 지우기

How can i convert an ASCII file to NetCDF?

조회 수: 3 (최근 30일)
kopparthi
kopparthi 2013년 11월 8일
편집: Walter Roberson 2013년 12월 18일
sir/madam i'm trying to convert a large ASCII file into a NetCDF file through mat lab.
sir i have a data which was recorded in ADCP(Acoustic Doppler Current profiler),and downloaded it using ADCP(winsc) software,now i want to processes that file matlab,so that i need convert that raw data file .nc(netcdf) file.i executed commands like nccreate,ncwrite etc.but i am getting required file.can you suggest the sequence steps and coding,the size of file is 28Mb.

채택된 답변

Ashish Uthama
Ashish Uthama 2013년 11월 8일
Kopparthi, I assume you meant to upload only the meta data in the text file. I am not familiar with ADCP so I am not sure how your raw data is organized. Please add more information to your question (eg - what are the data dimensions? (not file size), what are the dimension variables? how is the data organized in the text file? (row-major or col-major?) what type is it? (integer, double?) etc.
Note - The meta data can be written using ncwriteatt.
You mentioned you tried using nccreate and ncwrite, what did you try and how was it not the required file you wanted?
The help for ncwrite has an example which shows you how to 2D data.
  댓글 수: 1
kopparthi
kopparthi 2013년 12월 4일
I attached adcp tool box,please go thourgh it and kindly guide me to convert binary file into .nc file. ->(demo-9991wh000.00)=binary file..

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 NetCDF에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by