diff --git a/ARPES/Base_Classes/New/nxdl/NXdistortion.nxdl.xml b/ARPES/Base_Classes/New/nxdl/NXdistortion.nxdl.xml index 54c30e68b7c5731b4688969a4e568977d2c26733..62d393fd1559d63da635a54dff2d0b37f330c8af 100644 --- a/ARPES/Base_Classes/New/nxdl/NXdistortion.nxdl.xml +++ b/ARPES/Base_Classes/New/nxdl/NXdistortion.nxdl.xml @@ -26,22 +26,25 @@ <dim index="1" value="2"/> </dimensions> </field> - <field name="original_points_x" type="NX_FLOAT" units="NX_UNITLESS"> - <doc>For symmetry-guided distortion correction. Here we record the x coordinates of the relevant symmetry points.</doc> - <dimensions rank="1"> + <field name="original_points" type="NX_FLOAT" units="NX_UNITLESS"> + <doc>For symmetry-guided distortion correction. Here we record the coordinates of the relevant symmetry points.</doc> + <dimensions rank="2"> <dim index="1" value="nsym"/> + <dim index="2" value="2"/> </dimensions> </field> - <field name="original_points_y" type="NX_FLOAT" units="NX_UNITLESS"> - <doc>For symmetry-guided distortion correction. Here we record the y coordinates of the relevant symmetry points.</doc> - <dimensions rank="1"> - <dim index="1" value="nsym"/> + <field name="cdeform_field" type="NX_FLOAT" units="NX_UNITLESS"> + <doc>Column deformation field for general non-rigid distortion corrections. 2D matrix holding the column information of the mapping of each original coordinate.</doc> + <dimensions rank="2"> + <dim index="1" value="ndx"/> + <dim index="2" value="ndy"/> </dimensions> </field> - <field name="field" type="NX_FLOAT" units="NX_UNITLESS"> - <doc>For general non-rigid distortion corrections. 2D matrix mapping the original distorted field in the undistorted one.</doc> + <field name="rdeform_field" type="NX_FLOAT" units="NX_UNITLESS"> + <doc>Row deformation field for general non-rigid distortion corrections. 2D matrix holding the row information of the mapping of each original coordinate.</doc> <dimensions rank="2"> - <dim index="ndx" value="ndy"/> + <dim index="1" value="ndx"/> + <dim index="2" value="ndy"/> </dimensions> </field> <group type="NXcollection"> diff --git a/ARPES/Base_Classes/New/yaml/NXdistortion.yml b/ARPES/Base_Classes/New/yaml/NXdistortion.yml index 26bd825a61f2dd48f2ad0b7fd6fa04eb4c81366a..7e72bcdbbd0af1b35b7fb0e8e495b0fe00d6006f 100644 --- a/ARPES/Base_Classes/New/yaml/NXdistortion.yml +++ b/ARPES/Base_Classes/New/yaml/NXdistortion.yml @@ -20,26 +20,26 @@ doc: "Draft subclass of NXprocess to describe post-processing distortion correct dimensions: dim: [[1,2]] rank: 1 - original_points_x(NX_FLOAT): - doc: "For symmetry-guided distortion correction. Here we record the x coordinates of + original_points(NX_FLOAT): + doc: "For symmetry-guided distortion correction. Here we record the coordinates of the relevant symmetry points." unit: NX_UNITLESS dimensions: - dim: [[1,nsym]] - rank: 1 - original_points_y(NX_FLOAT): - doc: "For symmetry-guided distortion correction. Here we record the y coordinates of - the relevant symmetry points." + dim: [[1,nsym], [2,2]] + rank: 2 + cdeform_field(NX_FLOAT): + doc: "Column deformation field for general non-rigid distortion corrections. 2D matrix holding + the column information of the mapping of each original coordinate." unit: NX_UNITLESS dimensions: - dim: [[1,nsym]] - rank: 1 - field(NX_FLOAT): - doc: "For general non-rigid distortion corrections. 2D matrix mapping the original - distorted field in the undistorted one." + dim: [[1,ndx], [2,ndy]] + rank: 2 + rdeform_field(NX_FLOAT): + doc: "Row deformation field for general non-rigid distortion corrections. 2D matrix holding + the row information of the mapping of each original coordinate." unit: NX_UNITLESS dimensions: - dim: [[ndx,ndy]] + dim: [[1,ndx], [2,ndy]] rank: 2 (NXcollection): doc: "Class to describe freely the procedures employed."