scopesim_templates.misc.source_from_cube¶
- scopesim_templates.misc.source_from_cube(cube, ext=1) Source ¶
Wrapper for Source(cube=cube) for completeness.
In the future more checks will be performed to translate most cubes into a suitable format.
TODO: Set the cube to a different flux level and different pixel scales. Redshift the cube
- Parameters:
- cubeFilename, ImageHDU or HDUList containing the cube
- extextension where the data is located