Global Referential orientations
The reference system of the global shading scene is based on the cardinal points:
In the northern hemisphere: the X-direction corresponds to the West, Y to the SOUTH, Z to the ZENITH.
As for the usual definition of the PV fields orientation, the azimuths are given with respect to the South (OY), and positively towards the WEST, that is clockwise (antitrigonometric direction).
In the southern hemisphere, the X-direction points to the EAST, and Y to the NORTH.
The azimuths are given with respect to the North (OY), and positively towards WEST, that is anticlockwise (trigonometric direction).
Geographic and engineering referentials
To simplify the construction of complex systems, the system may be constructed in a referential attached to the building, i.e., (X, Y, Z) coordinates referred to the architect's plane.
Then you can rotate the whole scene according to the geographical coordinates.
Passing from one coordinates system to the other one is straightforward using the concerned buttons in the 3D editor toolbar.