turbustat.cube_tools.
SimCube
(cube, beam=None, mask=None, method='MAD', compute=True)[source] [edit on github]¶Bases: object
A wrapping class to prepare a simulated spectral data cube for comparison with another cube.
Attributes Summary
intint |
|
moment0 |
|
moment1 |
|
moment2 |
Methods Summary
Attributes Documentation
intint
¶moment0
¶moment1
¶moment2
¶Methods Documentation
add_noise
()[source] [edit on github]¶Use Noise to add synthetic noise to the data. Then update SpectralCube.
apply_mask
(mask=None)[source] [edit on github]¶Check if the given mask is acceptable abd apply to SpectralCube.
clean_cube
(algorithm=None)[source] [edit on github]¶compute_properties
()[source] [edit on github]¶Use SpectralCube to compute the moments. Also compute the integrated intensity based on the noise properties from Noise.
obs_prep
(mask=None)[source] [edit on github]¶Prepares the cube when being compared to observational data. This entails:
- Optionally applying a mask to the data.
- Add synthetic noise based on the cube’s properties.
- Computing the cube’s property arrays
sim_prep
(mask=None)[source] [edit on github]¶Prepares the cube when being compared to another simulation. This entails:
- Optionally applying a mask to the data.
- Computing the cube’s property arrays