PURPOSE
This app can convert global to local coordinates for 2D XY or 3D XYZ points. It supports rectangle, spherical(3D) and polar(2D) coordinate systems.
INSTALLATION
Download the file Convert_Global_to_Local_Coordinates.opx, and then drag-and-drop onto the Origin workspace. An icon will appear in the Apps Gallery window.
OPERATION
Make a worksheet for input data active. Click on the Convert Global to Local Coordinates icon in the Apps Gallery window. A dialog will open. In the dialog, Input Data has two options: 2D (x, y) or (theta, r), or 3D (x, y, z) or (az, el, r). Choose the first and click OK, and it will open Convert Global to Local Coordinates for 2D Data dialog. Choose the second, and it will open Convert Global to Local Coordinates for 3D Data dialog. Dialog settings include:
- Convert Global to Local Coordinates for 2D Data
| Settings |
Description |
| XY Data |
Input XY data or polar (theta, r) data. |
| Global Coordinate System |
Specify global coordinate system. It has two options: Rectangle and Polar (theta, r). |
| Local Coordinate System |
Specify local coordinate system. It has two options: Rectangle and Polar (theta, r). |
| Column for Origin of Local Coordinate System |
Specify the column for origin of local coordinate system. And it should contain two values. |
| Local Axes |
Specify Axes of Local Coordinate System by |
Determine how to specify local axes. Two options: Two Columns for Local Axes and Rotation |
| Two Columns for Local Axes |
Specify two columns for local axes. First column for local X axis and second column for local Y axis. It is available when Two Columns for Local Axes is chosen in Specify Axes of Local Coordinate System by |
| Angle for CCW Rotation (degrees) |
Specify counter-clockwise(CCW) rotation angle in degrees unit. It is available when Rotation is chosen. |
| Output Local Axes |
Determine whether to output local axes. |
| Report Data |
Specify a worksheet to output results. |
- Convert Global to Local Coordinates for 3D Data
| Settings |
Description |
| XYZ Data |
Input XYZ data or spherical (az, el, r) data. |
| Global Coordinate System |
Specify global coordinate system. It has two options: Rectangle and Spherical (az, el, r). |
| Local Coordinate System |
Specify local coordinate system. It has two options: Rectangle and Spherical (az, el, r). |
| Column for Origin of Local Coordinate System |
Specify the column for origin of local coordinate system. And it should contain three values. |
| Local Axes |
Specify Axes of Local Coordinate System by |
Determine how to specify local axes. Two options: Three Columns for Local Axes and Rotation |
| Three Columns for Local Axes |
Specify three columns for local axes. First column for local X axis, second column for local Y axis and third column for local Z axis. It is available when Three Columns for Local Axes is chosen in Specify Axes of Local Coordinate System by |
| First Rotation around |
Specify axis for first rotation. It has four options: None, X, Y and Z. It is available when Rotation is chosen in Specify Axes of Local Coordinate System by |
| Angle for First Rotation (degrees) |
Specify first rotation angle in degrees unit. It is available when X, Y or Z is chosen in First Rotation around. |
| Second Rotation around |
Specify axis for 2nd rotation. It has four options: None, X, Y and Z. It is available when Rotation is chosen in Specify Axes of Local Coordinate System by |
| Angle for 2nd Rotation (degrees) |
Specify 2nd rotation angle in degrees unit. It is available when X, Y or Z is chosen in Second Rotation around. |
| Third Rotation around |
Specify axis for 3rdd rotation. It has four options: None, X, Y and Z. It is available when Rotation is chosen in Specify Axes of Local Coordinate System by |
| Angle for 3rd Rotation (degrees) |
Specify 3rd rotation angle in degrees unit. It is available when X, Y or Z is chosen in Third Rotation around. |
| Output Local Axes |
Determine whether to output local axes. |
| Report Data |
Specify a worksheet to output results. |
SAMPLE OPJU FILE
This app provides a sample OPJU file. Right click on the Convert Global to Local Coordinates icon in the Apps Gallery window, and choose Show Samples Folder from the short-cut menu. A folder will open. Drag-and-drop the project file G2LEx.opju from the folder onto Origin. The Notes window in the project shows detailed steps.
Note: If you wish to save the OPJU after changing, it is recommended that you save to a different folder location (e.g. User Files Folder).