Effacer les filtres
Effacer les filtres

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 vues (au cours des 30 derniers jours)
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?

Réponses (1)

Chad Greene
Chad Greene le 10 Août 2017
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.

Catégories

En savoir plus sur Manage Products dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by