How can I optimize my ncread function call
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I am using R2016b and I want to read a 4D variable from a local netCDF file. I am experiencing two issues:
1. I specify the input argument start as a vector of length 4 and height 4292 containing all the combined dimensions of the 4D variable. ncread() reads all columns independently, resulting to a 4292X4292X4292X4292 output. Instead I want to read row by row resulting to a 4292x1 vector.
2. If I specify the count input argument as [Inf Inf Inf Inf], ncread returns a 102x222x10x24 variable, If I specify [4292 4292 4292 4292] results to a memory error: Maximum variable size allowed by the program is exceeded.
VarSW=ncread(netCDFDB, Var, [nearLonIndxW(1,1), nearLatIndxS(1,1), zindex(1,1), timeIndx(1,1)], [Inf, Inf, Inf, Inf]);
Do let me know if additional information is required.
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur NetCDF dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!