create_proto#
- radiosim.ppdisks.create_proto(img_size: int, alpha: float, ratio: float, size_ratio: float, device: str = 'cpu', seed: int = None)[source]#
Generates a simulated protoplanetary disk image
- Parameters:
- img_size: int
The size of the image (height and width)
- alpha: float
The inclination angle of the disk in degrees
- ratio: float
The ratio the minor axis should be of the major axis a / b
- size_ratio: float
The ratio of the image size the disk should take up
- device: str, optional
The name of the device to run the simulations on (with torch)
- seed: int, optional
The seed for the random generator. If set to
None, the seed is ignored.
- Returns:
- proto: torch.tensor
The simulated image of the protoplanetary disk