Can i use the function 'getnc' for a element that has four dimensions? if so, how? and if not what else can i use to make my extraction from a file in 'nc' format?

3 次查看(过去 30 天)
I have been using the command getnc for extracting sea surface temperatures from a database, but now that I've moved onto the next database I've encountered sst data in four dimensions (time zlev lon lat). The command works but it extracts all the data, but since i'm only working with a certain part of the ocean, i'm using the bl_corner, tr_corner and stride specifications. Once i do that, it says that it exceeds the dimensions. When i use 'help getnc' it doesn't mention or set an example for four dimensions. If someone can help, is there something i'm missing or can i just not do it with four dimensions?

回答(1 个)

Chad Greene
Chad Greene 2017-8-10
Hi Samantha,
Is there a reason you need to use getnc? That's old code that was developed 25 years ago. Matlab now comes standard with ncread, which allows specification of N-dimensional stride.

类别

Help CenterFile Exchange 中查找有关 Manage Products 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by