MATLAB Answers

How to import 3GB netcdf file into matlab

6 views (last 30 days)
Shakir Hussain
Shakir Hussain on 9 Jan 2019
Commented: Shakir Hussain on 12 Jan 2019
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

Accepted Answer

KSSV on 9 Jan 2019
Edited: KSSV on 9 Jan 2019
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 can read chunk or part of it by providing indices. Read about ncread, you have maultiple options out there.
Shakir Hussain
Shakir Hussain on 12 Jan 2019
How could we can regrid it directly from nc file and take result of regrid as output?

Sign in to comment.

More Answers (0)




Community Treasure Hunt

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

Start Hunting!