How to Import My Data into Tall Arrays?

18 次查看(过去 30 天)
Derek
Derek 2024-3-27
评论: Stephen23 2024-3-28,18:50
I have some very large datasets with corresponding metadata from some large finite element analyses that I would like to try and put into tall arrays.
I struggle to load these datasets on my computer and often have to go to a high performance computing cluster to just get enough memory to load it. Once I have the data loaded, I usually just do statistics on various blocks of rows of the data. Tall arrays seem like a good solution for this but my data does not align with any of the examples I have seen.
My datasets are currently formatted into a matrix where the rows are specific nodes or element results I've recovered and the columns are the specific loadcases I've run (e.g. static loadcase 1, 2, 3, ...etc or frequency 1, 2, 3 ...etc Hz). I have a corresponding loadcase/frequency/time vector matching the number of columns (500 - 10,000 columns) and a table of metadata corresponding to each row of data (10 - 1E7 rows). The table of metadata include a name of the recovered result (e.g. Element ID 100230 End A Force X or Grid ID 2103 Direction X), the type of result it is (e.g. Acceleration, Force, Moment, Displacement), and the associated units (e.g. G, lbf, in*lbf, in).
I've considered using some of the table metadata and custom metadata but it kind of feels like I'm trying to shove a square peg into a round hole. I've also started to look into time series and time tables but haven't made it very far.
  3 个评论
Derek
Derek 2024-3-28,15:37
@Stephen23, Sorry, should have been more clear. I have looked into datastores and the links you provided. My thought was, if I can figure out a good way to fit my data and metadata into tall arrays, I would use that out-of-memory approach you mentioned to load and analyze data. My main issue is that I'm not exactly sure how to format my data in the tall array format. For example, I could just take my matrix of data (N rows of results x M loadcases) and put it into a tall array of equivalent size and then either have another tall array for my metadata or insert the metadata in front of the matrix of data. I would then have something more managable in the rows direction but I would still have M or M+3 columns to deal with. I guess maybe what I'm getting at is that I want to use the tall array approach in both the rows and columns direction. Is that possible?
Stephen23
Stephen23 2024-3-28,18:50
In general, having a few columns of meta-data together with lots of rows is the recommended approach.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Tall Arrays 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by