How can I optimize my ncread function call
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su NetCDF in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!