How to import 3GB netcdf file into matlab

조회 수: 2 (최근 30일)
Shakir Hussain
Shakir Hussain 2019년 1월 9일
댓글: Shakir Hussain 2019년 1월 12일
I know, how to read netcdf data into matlab and due to the size of this file (3gb) maltab is saying out of limit (array exceeds maximum array size preference. Creation of arraysgreater than this limit may take a long time and cause MATLAB to become unresponsive.)
I wan to read variables sparately and I did some to them by using simple ncread but the size of main variable is about 3gb and that evil is making problem here.
How Could I deal it ?
thank you in advance

채택된 답변

KSSV
KSSV 2019년 1월 9일
편집: KSSV 2019년 1월 9일
YOu are trying to load the enitre data from netCDF into MATLAB..this is not the right option..first get familiar with the data..if the data is 3D, you can read matrix one by one in a loop and process or plot. If your matrix is of long dimension and only one matrix..you can read chunk or part of it by providing indices. Read about ncread, you have maultiple options out there.
  댓글 수: 8
Shakir Hussain
Shakir Hussain 2019년 1월 10일
Off course, we need 3d matrix (i.e. lat*lon*precip) but I was asking about the possibility to get output and save in 5-10 small parts.
e.g 10902x6818x846 split into
10902x6818x100
10902x6818x100
10902x6818x100...... and so on and save each file separately but this execution must be carry put in sequence
Shakir Hussain
Shakir Hussain 2019년 1월 12일
How could we can regrid it directly from nc file and take result of regrid as output?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by