With the CARTA GUI, we can select 2-4 individual Stokes images to form a Stokes hypercube.

In the scripting interface, we would need to support this feature too. As in the GUI there is an extra step to do file to Stokes components mapping, I suggest we make a new function like Session.load_Stokes_hypercube() with args as
paths (a list of images) and Stokes_mapping (a list of Stokes components). For example,
session = Session.start_and_create(...)
img = session.load_Stokes_hypercube(paths=["M51_band3_I.fits", "M51_band3_Q.fits", "M51_band3_U.fits"], Stokes_mapping=["I", "Q", "U"])
With the CARTA GUI, we can select 2-4 individual Stokes images to form a Stokes hypercube.
In the scripting interface, we would need to support this feature too. As in the GUI there is an extra step to do file to Stokes components mapping, I suggest we make a new function like
Session.load_Stokes_hypercube()with args aspaths(a list of images) andStokes_mapping(a list of Stokes components). For example,