Append Data to New Dimensions of Variable in NetCDF File
4 次查看(过去 30 天)
显示 更早的评论
I am working on reading in multidimensional variables (time, lat, lon) from one NetCDF file as single vectors (along the time dimension), performing some computations, and would like to write them out to a new NetCDF file with the same structure but I cannot find any documentation that is clear enough to assure me I would be writing the columns back to their exact locations as in the original NetCDF. My transformations change the data values in the individual variables but not the length of any of their respective dimensions so it would be possible to state from the outset the size of each dimension.
My question is fairly similar to this one but in that case the user is trying to append entire three-dimensional matrices. In my case the transformations I am applying require single vectors and I run the risk of maxing out my memory if I retain the entire 3D matrix prior to writing to disk.
0 个评论
回答(1 个)
Niraj Gadakari
2017-9-26
Here is the link to a post that discusses how to append new data to an existing variable in a NetCDF file. I hope this helps.
However, I am not sure about the risk of maxing out the memory.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NetCDF 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!