How to extract data from a nc file with grid like axbxc
1 view (last 30 days)
Anirban Mandal on 27 Dec 2021
I have a .nc file iin which some datas are stored. But some of the datas are stored in a grid like axbxc format (eg the cdodtot in the file attached below). How to extract these types of data?
Drive link of the file: https://drive.google.com/file/d/1LZoMNokrOpHYl5TtSGXQJXjQfVc42ctV/view?usp=sharing
Walter Roberson on 27 Dec 2021
See https://www.mathworks.com/matlabcentral/answers/1608670-how-to-process-nc-file-in-matlab#comment_1885785 for an example of working with the same kind of grid, also indexed by latitude, longitude, and time.
That particular example also works with a shape file to define the region of interest. (But read to the end of the thread there to see more about the limitations of the shape processing that I did there.)