Add support for Matrix properties

This commit is contained in:
2023-01-30 18:27:22 +01:00
parent ed7e2c1a78
commit 024f770ee0
3 changed files with 105 additions and 7 deletions
+6
View File
@@ -48,6 +48,12 @@ int main(int argc, char **argv)
image.addProperty(Property("PropertyComplex64", Complex64{-3.0, 2.0}));
image.addProperty(Property("VectorUInt16", UI16Vector({23, 45, 86})));
image.addProperty(Property("VectorComplex32", C32Vector({{1, 2}, {3, 4}, {5, 6}})));
UI16Matrix m(2, 3);
m(0, 0) = 0;
m(0, 1) = 1;
m(0, 2) = 2;
m(1, 0) = 10;
image.addProperty(Property("UI16Matrix", m));
image.addFITSKeyword({"RA", "226.9751163116387", "Right ascension of the center of the image (deg)"});
image.addFITSKeyword({"DEC", "62.02302376908295", "Declination of the center of the image (deg)"});
writer.writeImage(image);