hexagon logo

How to get MAA output in HDF5?

​I know about the DMAP CRDB_IN and CRDB_OUT and CRDB_DBK to get various matrices out. How does one use these (or another method) to get ASET information out in the HDF5 database?
 
The answer below works to extract the matrices.  Is there a reference for how to interpret the IDENTITY and COLUMN data sets such that the matrices can be rebuilt?  I didn't see anything in the DMAP programmers guide about it.  For example, the demonstration below results in COLUMN containing
[0 1 3 5 6 8 10 11 12 13 13 13 13]
and IDENTITY containing
[(b'KGG', 6, 6, 6, 10, 0, 0, 1) (b'MGG', 6, 6, 6, 3, 6, 10, 1)]
I gather that this is the name, followed by the form, then the size, then the number of non-zero entries.  After that...
I don't know to interpret the column values. 
The DATA data set has rows and values and the row values make sense but I'm missing the connection to the columns.
 
Parents
  • Don is correct....this requires higher order thinking. But, once you get it, it's straight-forward. The concept of indices in 1 dataset pointing to values in other datasets is used with other datasets (for example it's used for SET and COORDINATE system data in the INPUT group). CRDB_MTX data is more complicated with the 1st dataset pointing to a 2nd dataset that points to a 3rd dataset.
    I investigated CRDB_MTX data several months ago and wrote a prototype Python function. It reads the MATRIX data and writes it to the screen in [Col#, Row#] = value format. It might be useful as a starting point (remember it's a prototype, and comes with all the usual caveats!!). See the attachment.

    Attached Files (1)
Reply
  • Don is correct....this requires higher order thinking. But, once you get it, it's straight-forward. The concept of indices in 1 dataset pointing to values in other datasets is used with other datasets (for example it's used for SET and COORDINATE system data in the INPUT group). CRDB_MTX data is more complicated with the 1st dataset pointing to a 2nd dataset that points to a 3rd dataset.
    I investigated CRDB_MTX data several months ago and wrote a prototype Python function. It reads the MATRIX data and writes it to the screen in [Col#, Row#] = value format. It might be useful as a starting point (remember it's a prototype, and comes with all the usual caveats!!). See the attachment.

    Attached Files (1)
Children
No Data